Difference between revisions of "Template:Rwbox"

From RimWorld Wiki
Jump to navigation Jump to search
(simplification. Turns out no page actually uses the category handler via this template. See Special:WhatLinksHere/Template:Category_handler)
m (Reverted edits by Ceddin Deden (talk) to last revision by Hordes)
Tag: Rollback
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
+
{{Rwbox/core
|{{#if:{{{name|}}}
 
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
 
}}[[Category:Pages with incorrectly substituted templates]]
 
}}{{Rwbox/core
 
 
  |type = {{{type|}}}
 
  |type = {{{type|}}}
 
  |color = {{{color|}}}
 
  |color = {{{color|}}}

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]