Difference between revisions of "Template:Rwbox"

From RimWorld Wiki
Jump to navigation Jump to search
(simplification. removed calls to non-existent or unused and supposed-to-be-deleted templates)
(simplification. Template:Category handler does nothing if nocat=true. So it shouldn't be called in the first place in that case)
Line 27: Line 27:
 
  }}
 
  }}
 
  |info = {{{info|}}}
 
  |info = {{{info|}}}
}}{{Category handler
+
}}{{#ifeq:{{{nocat|<noinclude>true</noinclude>}}}|true||{{Category handler
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 
|main=
 
 
  |template={{#switch:Template:{{{name|}}}
 
  |template={{#switch:Template:{{{name|}}}
 
   |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
 
   |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
Line 38: Line 36:
 
   |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
 
   |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
 
  }}
 
  }}
}}<noinclude>
+
}} }}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 11:57, 9 December 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is the core for all of the Modal templates. It allows easier use of these modals and it's styles from the AMBox Template.

Use

In order to use the below types, you can look at the edit page of this page for examples. However use can be simplified by the following code.

 {{rwbox
 | type  = speedy|delete|edit|warning|cleanup|move|protect|info
 | text  = <Insert Your Text Here>
 }}
 

Color can be specified by setting the type to manual and designating a color in an rbg code.

Type previews