Difference between revisions of "Template:Rwbox/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Removed link to non-existent 'languages' template.)
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
+
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.
This is the {{Tl|rwbox}} or '''Article message box''' meta-template.
 
  
=== Type preview ===
+
== 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.
 +
 
 +
<pre>
 +
{{rwbox
 +
|nocat=true
 +
| type  = speedy|delete|edit|warning|cleanup|move|protect|info
 +
| text  = <Insert Your Text Here>
 +
}}
 +
</pre>
 +
 
 +
Color can be specified by setting the type to manual and designating a color in an rbg code.
 +
 
 +
=== Type previews ===
 
{{rwbox
 
{{rwbox
 
|nocat=true
 
|nocat=true
Line 12: Line 25:
 
| type  = delete
 
| type  = delete
 
| text  = type=<u>delete</u>
 
| text  = type=<u>delete</u>
 +
}}
 +
{{rwbox
 +
|nocat=true
 +
| type  = safe
 +
| text  = type=<u>safe</u>
 +
}}
 +
{{rwbox
 +
|nocat=true
 +
| type  = edit
 +
| text  = type=<u>edit</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
Line 20: Line 43:
 
{{rwbox
 
{{rwbox
 
|nocat=true
 
|nocat=true
| type  = style
+
| type  = cleanup
| text  = type=<u>style</u>.
+
| text  = type=<u>cleanup</u>.
 
}}
 
}}
 
{{rwbox
 
{{rwbox
 
|nocat=true
 
|nocat=true
| type  = notice
+
| type  = move
| text  = type=<u>notice</u>
+
| text  = type=<u>move</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
 
|nocat=true
 
|nocat=true
| type  = move
+
| type  = protect
| text  = type=<u>move</u>
+
| text  = type=<u>protect</u>
 +
}}
 +
{{rwbox
 +
|nocat=true
 +
| type  = info
 +
| text  = type=<u>info</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
 
|nocat=true
 
|nocat=true
| type  = protection
+
| type  = manual
| text  = type=<u>protection</u>
+
| color = #6bb6bb
 +
| text  = This example has been colored biotech teal.
 
}}
 
}}
<includeonly>
+
<includeonly>[[Category:Mbox templates]]</includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<noinclude>[[Category:Template documentation]]</noinclude>
 
 
[[Category:Template Mbox]]
 
</includeonly>
 

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