Difference between revisions of "Template:Rwbox"

From RimWorld Wiki
Jump to navigation Jump to search
(simplification. removed parameters that weren't used by Template:Rwbox/core)
(simplification. removed calls to non-existent or unused and supposed-to-be-deleted templates)
Line 29: Line 29:
 
}}{{Category handler
 
}}{{Category handler
 
  |nocat={{{nocat|<noinclude>true</noinclude>}}}
 
  |nocat={{{nocat|<noinclude>true</noinclude>}}}
  |main={{rwbox/category
+
  |main=
  |cat={{{cat|{{{category|}}}}}}
 
  |all={{{all|}}}
 
  |date={{{date|}}}
 
}}{{rwbox/category
 
  |cat={{{cat2|{{{category2|}}}}}}
 
  |all={{{all2|}}}
 
  |date={{{date|}}}
 
}}{{Ambox/category
 
  |cat={{{cat3|{{{category3|}}}}}}
 
  |all={{{all3|}}}
 
  |date={{{date|}}}
 
}}
 
 
  |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}}

Revision as of 11:51, 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