Difference between revisions of "Template:Tag/Basics"

From RimWorld Wiki
Jump to navigation Jump to search
(I made a silly mistake.)
Line 1: Line 1:
  {{#vardefine: name          | {{{1|Wood}}}
+
<onlyinclude>{{#vardefine: name          | {{{1|Wood}}}
 
}}{{#vardefine: worth        | {{Q| {{#var:name}} | Market Value Base      }}
 
}}{{#vardefine: worth        | {{Q| {{#var:name}} | Market Value Base      }}
 
}}{{#vardefine: mass          | {{Q| {{#var:name}} | Mass                    }}
 
}}{{#vardefine: mass          | {{Q| {{#var:name}} | Mass                    }}
Line 13: Line 13:
 
|        {{Format/Value        | {{#var:stacklimit | 0 }}}}<span style='margin-left: 18px'></span>
 
|        {{Format/Value        | {{#var:stacklimit | 0 }}}}<span style='margin-left: 18px'></span>
 
|-
 
|-
|}
+
|}</onlyinclude>
<noinclude>{{documentation}}[[Category:Tag]]</noinclude>
+
 
 +
{{documentation}}
 +
 
 +
[[Category:Tag]]

Revision as of 05:32, 22 December 2016

Market Value 1.2 Silver
Mass 0

kg

Stack Limit 75

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

Description

This template is used by the Category:Tag system.

Syntax

Example usage can be seen in Template:Material/Tags:

{{#vardefine:name|{{{1|Wood}}}}}
{{Tag/Basics            | {{#var:name}} }}
{{Tag/Health            | {{#var:name}} }}
{{Tag/Crafting Material | {{#var:name}} }}
{{Tag/Building Material | {{#var:name}} }}
{{Tag/Melee Material    | {{#var:name}} }}

By including this Tag in Template:Material/Tags, it will be used in Template:Material, which will finally be used by Template:Infobox/Thing to parse which properties should be displayed by the infobox.

This Template:Tag is used for the following:

  • Display the Thing's name
  • Display the Thing's market value in silver.
  • Display the Thing's stack limit.
  • Display the Thing's mass, suffixed with 'kg' for kilograms.