Difference between revisions of "Template:Rwbox/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Changed category.)
Line 12: Line 12:
 
  }}
 
  }}
 
  </pre>
 
  </pre>
 +
 +
Color can be specified by setting the type to manual and designating a color in an rbg code.
  
 
=== Type previews ===
 
=== Type previews ===
Line 59: Line 61:
 
| text  = type=<u>info</u>
 
| text  = type=<u>info</u>
 
}}
 
}}
 
+
{{rwbox
 +
|nocat=true
 +
| type  = manual
 +
| color = #6bb6bb
 +
| text  = This example has been colored biotech teal.
 +
}}
 
<includeonly>[[Category:Mbox templates]]</includeonly>
 
<includeonly>[[Category:Mbox templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 03:14, 6 October 2022

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
 |nocat=true
 | 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