Difference between revisions of "Template:Infobox/Thing/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page. Example infobox is not yet complete.)
 
(Changed category.)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
;Description
 
;Description
:This template renders an infobox for items. An item is initially defined using [[Template:Define]] which calls a secondary template including [[Template:Medicine]], [[Template:Material]], or [[Template:Textile]]. The secondary template calls the Infobox/Thing template.
+
:This template renders an infobox for items. An item is initially defined using [[Template:Define]] which calls a secondary template including [[Template:Medicine]], [[Template:Material]], [[Template:Plant]], or [[Template:Textile]]. The secondary template calls the Infobox/Thing template.
  
 
;Syntax
 
;Syntax
:<code>{{t|Infobox/Thing|paramater1|paramater2|paramater3|paramater4|paramater5}}</code>
+
:<code>{{t|Infobox/Thing|parameter1|parameter2|parameter3|parameter4|parameter5}}</code>
  
:''<paramater1>'': Displayed in the infobox as the item type; This is also used used a category.
+
:''<parameter1>'': Displayed in the infobox as the item type; This is also used used a category.
:''<paramater2>'': Provides the page name link for option 1.
+
:''<parameter2>'': Provides the page name link for parameter1.
:''<paramater3>'': Optional, sets sub-type.
+
:''<parameter3>'': Optional, sets sub-type; This is also used used a category.
:''<paramater4>'': Provides the page name for option 3; This is also used used a category.
+
:''<parameter4>'': Provides the page name link for parameter3.
:''<paramater5>'': Sets the infobox color. See [[Templates]].
+
:''<parameter5>'': Sets the infobox color. See [[Templates]].
  
 
;Example
 
;Example
Line 27: Line 27:
 
{{Entry/Bottom}}
 
{{Entry/Bottom}}
  
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
 
 +
<includeonly>[[Category:Infobox templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 21:53, 17 January 2021

Description
This template renders an infobox for items. An item is initially defined using Template:Define which calls a secondary template including Template:Medicine, Template:Material, Template:Plant, or Template:Textile. The secondary template calls the Infobox/Thing template.
Syntax
{{Infobox/Thing|<parameter1>|<parameter2>|<parameter3>|<parameter4>|<parameter5>}}
<parameter1>: Displayed in the infobox as the item type; This is also used used a category.
<parameter2>: Provides the page name link for parameter1.
<parameter3>: Optional, sets sub-type; This is also used used a category.
<parameter4>: Provides the page name link for parameter3.
<parameter5>: Sets the infobox color. See Templates.
Example

When properly called from the Define template and secondary template,
{{Infobox/Thing|Medical Item|Medical Items|Medicine|Medicine|c_01}}
results in...

Medicine

Medicine industrial a.png

Medical staff use these supplies to heal the wounded.


Type
Medical ItemMedicine

Base Stats

Stat Modifiers