Difference between revisions of "Template:Infobox/Thing"

From RimWorld Wiki
Jump to navigation Jump to search
(It's not)
(Maybe?)
Line 5: Line 5:
 
{{Entry/Heading| Base Stats }}
 
{{Entry/Heading| Base Stats }}
 
<!--Don't remove my life's work - the mass parser PLZ-->
 
<!--Don't remove my life's work - the mass parser PLZ-->
{{Entry| [[Mass]] | {{#if:{{P|Mass}}|{{P|Mass}}|{{#switch:{{{3}}}
+
{{#switch:{{{3}}}
 +
|Plant=
 +
|#default={{Entry| [[Mass]] | {{#if:{{P|Mass}}|{{P|Mass}}|{{#switch:{{{3}}}
 
|Raw Inedible=0.03
 
|Raw Inedible=0.03
 
|#default={{#switch:{{BASEPAGENAME}}<!--This can also be used to define masses on certain pages.-->
 
|#default={{#switch:{{BASEPAGENAME}}<!--This can also be used to define masses on certain pages.-->
Line 16: Line 18:
 
}}
 
}}
 
}}kg
 
}}kg
}}
+
}}}}
 
{{#ask: [[Category: Stat]]
 
{{#ask: [[Category: Stat]]
 
| format  = template
 
| format  = template

Revision as of 22:26, 23 December 2016

Documentation icon Template documentation[view] [edit] [history] [purge]
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