Difference between revisions of "Template:Infobox/Thing"

From RimWorld Wiki
Jump to navigation Jump to search
((; _ ;) RIP)
(Keep the template so that if you look at the old versions of the pages it'll still display properly.)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>[[Category:{{{1}}}]]{{#ifeq:{{{3|}}}|||[[Category:{{{3}}}]]}}
+
<noinclude>{{Obsolete|reason = I'm proud to announce that the changeover from ''Define'' to ''Infobox main'' is complete! This template is no longer used by any page. Template retained to keep page histories legible.}}</noinclude><includeonly>[[Category:{{{1}}}]]{{#ifeq:{{{3|}}}|||[[Category:{{{3}}}]]}}{{Entry/Top|{{{5}}}}}{{#set:Type = {{{1}}}}}{{#set:Type2 = {{{3}}}}}
{{Entry/Top|{{{5}}}}}
 
 
{{Entry| Type        | [[{{{2}}}|{{{1}}}]] {{#ifeq:{{{3|}}}||| &ndash; [[{{{4}}}|{{{3}}}]]}} }}
 
{{Entry| Type        | [[{{{2}}}|{{{1}}}]] {{#ifeq:{{{3|}}}||| &ndash; [[{{{4}}}|{{{3}}}]]}} }}
 
{{Entry| Stack Limit | {{P|Stack Limit}} }}
 
{{Entry| Stack Limit | {{P|Stack Limit}} }}
 
{{Entry/Heading| Base Stats }}
 
{{Entry/Heading| Base Stats }}
<!--Don't remove my life's work - the mass parser PLZ--><!--Time to remove my life's work don't delete it though
 
{{#switch:{{{3}}}
 
|Plant=
 
|#default={{Entry| [[Mass]] | {{#if:{{P|Mass}}|{{P|Mass}}|{{#switch:{{{3}}}<!--Define masses of entire categories-->
 
|Raw Inedible=0.03
 
|#default={{#switch:{{BASEPAGENAME}}<!--This can also be used to define masses of certain pages.-->
 
|Muffalo wool
 
|Megatherium wool
 
|Megasloth wool
 
|Camelhair
 
|Alpaca wool=0.028
 
}}
 
}}
 
}}kg
 
}}}}-->
 
 
{{#ask: [[Category: Stat]]
 
{{#ask: [[Category: Stat]]
 
| format  = template
 
| format  = template
Line 31: Line 15:
 
| link    = none
 
| link    = none
 
| limit    = 250
 
| limit    = 250
}}
+
}}{{Entry/Bottom}}</includeonly><noinclude>{{documentation}}</noinclude>
{{Entry/Bottom}}</includeonly>
 
<noinclude>{{documentation}}</noinclude>
 

Latest revision as of 13:15, 20 April 2022

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