Difference between revisions of "Template:Tag/Basics/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Probably going to do a lot of documentation on this stuff.)
 
Line 3: Line 3:
  
 
==Usage==
 
==Usage==
 +
Example usage can be seen in [[Template:Material/Tags]]:
 +
 +
<pre>
 +
{{#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}} }}
 +
</pre>
 +
 +
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.
 +
 +
==Function
 
This [[Template:Tag]] is used for the following:
 
This [[Template:Tag]] is used for the following:
  

Revision as of 05:22, 22 December 2016

Description

This template is used by the system.

Usage

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.

==Function 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.