Difference between revisions of "Template:Rwbox/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Removed link to non-existent 'languages' template.)
(no longer necessary)
 
(6 intermediate revisions by 3 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
 +
| 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
 
 
| type  = speedy
 
| type  = speedy
 
| text  = type=<u>speedy</u>
 
| text  = type=<u>speedy</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
 
 
| type  = delete
 
| type  = delete
 
| text  = type=<u>delete</u>
 
| text  = type=<u>delete</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
+
| type  = safe
 +
| text  = type=<u>safe</u>
 +
}}
 +
{{rwbox
 +
| type  = edit
 +
| text  = type=<u>edit</u>
 +
}}
 +
{{rwbox
 
| type  = warning
 
| type  = warning
 
| text  = type=<u>warning</u>
 
| text  = type=<u>warning</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
+
| type  = cleanup
| type  = style
+
| text  = type=<u>cleanup</u>.
| text  = type=<u>style</u>.
 
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
+
| type  = move
| type  = notice
+
| text  = type=<u>move</u>
| text  = type=<u>notice</u>
+
}}
 +
{{rwbox
 +
| type  = protect
 +
| text  = type=<u>protect</u>
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
+
| type  = info
| type  = move
+
| text  = type=<u>info</u>
| text  = type=<u>move</u>
 
 
}}
 
}}
 
{{rwbox
 
{{rwbox
|nocat=true
+
| type  = manual
| type  = protection
+
| color = #6bb6bb
| text  = type=<u>protection</u>
+
| 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>
 

Latest revision as of 12:35, 10 December 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[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]