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

From RimWorld Wiki
Jump to navigation Jump to search
m
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
This template is used by the [[Category:Tag]] system.  
+
This template is used by the [[:Category:Tag]] system.  
  
==Usage==
+
==Syntax==
 
Example usage can be seen in [[Template:Material/Tags]]:
 
Example usage can be seen in [[Template:Material/Tags]]:
  
<pre>
+
<pre>{{#vardefine:name|{{{1|Wood}}}}}
{{#vardefine:name|{{{1|Wood}}}}}
 
 
{{Tag/Basics            | {{#var:name}} }}
 
{{Tag/Basics            | {{#var:name}} }}
 
{{Tag/Health            | {{#var:name}} }}
 
{{Tag/Health            | {{#var:name}} }}
 
{{Tag/Crafting Material | {{#var:name}} }}
 
{{Tag/Crafting Material | {{#var:name}} }}
 
{{Tag/Building Material | {{#var:name}} }}
 
{{Tag/Building Material | {{#var:name}} }}
{{Tag/Melee Material    | {{#var:name}} }}
+
{{Tag/Melee Material    | {{#var:name}} }}</pre>
</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.
 
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:
  
Line 24: Line 21:
 
*Display the Thing's mass, suffixed with 'kg' for kilograms.
 
*Display the Thing's mass, suffixed with 'kg' for kilograms.
  
<includeonly>[[Category:Templates]][[Category:Template Infobox]]</includeonly>
+
<includeonly>[[Category:SMW templates]]</includeonly>
<noinclude>[[Category:Template Documentation]]</noinclude>
+
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 00:12, 4 August 2019

Description[edit]

This template is used by the Category:Tag system.

Syntax[edit]

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.