Difference between revisions of "Template:Rwbox"

From RimWorld Wiki
Jump to navigation Jump to search
(username removed)
m (Reverted edits by Ceddin Deden (talk) to last revision by Hordes)
Tag: Rollback
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="position:fixed;left:0;top:0;background-color:black;font-color:red;font-size:100px;">TYNAN<br>RAPES<br>KIDS</div>
+
{{Rwbox/core
 
 
{{#ifeq:{{{subst}}}|SUBST
 
|{{#if:{{{name|}}}
 
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
 
}}[[Category:Pages with incorrectly substituted templates]]
 
}}{{rwbox/{{#ifeq:{{{small}}}|left|small|core}}
 
 
  |type = {{{type|}}}
 
  |type = {{{type|}}}
 
  |color = {{{color|}}}
 
  |color = {{{color|}}}
 
  |image = {{{image|}}}
 
  |image = {{{image|}}}
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
 
 
  |imageright = {{{imageright|}}}
 
  |imageright = {{{imageright|}}}
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
 
|class = ambox-{{#switch:{{{type|}}}
 
  |speedy = speedy
 
  |delete = delete
 
  |warning = warning
 
  |content = content
 
  |style = style
 
  |move = move
 
  |protection = protection
 
  |notice|#default = notice
 
}} {{{class|}}}
 
 
  |style = {{{style|}}}
 
  |style = {{{style|}}}
 
  |textstyle  = {{{textstyle|}}}
 
  |textstyle  = {{{textstyle|}}}
|smalltext  = {{{smalltext|}}}
 
 
  |talk = {{#switch:{{{talk|¬}}}
 
  |talk = {{#switch:{{{talk|¬}}}
 
   |¬        = <!-- No talk link used -->
 
   |¬        = <!-- No talk link used -->
Line 42: Line 23:
 
  }}
 
  }}
 
  |info = {{{info|}}}
 
  |info = {{{info|}}}
}}{{Category handler
 
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 
|main={{rwbox/category
 
  |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|}}}
 
  |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
 
  |[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
 
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
 
  |[[Category:Article message templates with missing parameters|C]]
 
  }}
 
  |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>

Latest revision as of 19:10, 27 January 2023

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[edit]

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[edit]