Difference between revisions of "Template:Define/Mass"

From RimWorld Wiki
Jump to navigation Jump to search
m (Don't break everything U beg you spdskatr)
(Back to square one)
Line 1: Line 1:
<onlyinclude>
+
 
 
{{{2|
 
{{{2|
{{#switch:{{{1}}} <!--Exclusion zone-->
+
{{Entry| [[Mass]] | {{#if:{{{2|}}}|{{P|{{{2}}}}}|{{#switch:{{{1}}}<!--Define masses of entire categories-->
|Plant=
 
|#default={{Entry| [[Mass]] | {{#if:{{{2|}}}|{{P|{{{2}}}}}|{{#switch:{{{1}}}<!--Define masses of entire categories-->
 
 
|Raw Inedible=0.03
 
|Raw Inedible=0.03
 
|#default={{#switch:{{BASEPAGENAME}}<!--This can also be used to define masses of certain pages.-->
 
|#default={{#switch:{{BASEPAGENAME}}<!--This can also be used to define masses of certain pages.-->
Line 11: Line 9:
 
|Camelhair
 
|Camelhair
 
|Alpaca wool=0.028
 
|Alpaca wool=0.028
}}
+
}}}}}}}}}}} <!--So many mustaches-->
}}
 
}}
 
}}}}
 
}}}
 
</onlyinclude>
 
  
 +
<noinclude>
 
{{documentation}}
 
{{documentation}}
 +
</noinclude>

Revision as of 10:15, 28 December 2016



Documentation icon Template documentation[view] [edit] [history] [purge]

A lazy editor's tool to define masses for objects using Template:Define on the go. Define/Mass is transcluded into Template:Define as a template inside a {{#switch:}} parser function. To define an object's mass, type {{!}}Name=Value. For steel, I would type:

{{!}}Steel=0.5
<!--Note that Template:! stands for the | symbol.-->