Difference between revisions of "Template:Tag/Basics"
Jump to navigation
Jump to search
(Fixed line-wrapping for Mass.) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <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 Base }} | ||
}}{{#vardefine: stacklimit | {{Q| {{#var:name}} | Stack Limit }} | }}{{#vardefine: stacklimit | {{Q| {{#var:name}} | Stack Limit }} | ||
}}{| {{Tag/ST| c_02 }} | }}{| {{Tag/ST| c_02 }} | ||
{{Tag/H1}} Market Value | {{Tag/H1}} Market Value | ||
{{Tag/HN}}{{Format/Market Value | {{#var:worth | 0 }}}} | {{Tag/HN}}{{Format/Market Value | {{#var:worth | 0 }}}} | ||
+ | |- | ||
+ | {{Tag/HR}} Mass | ||
+ | | {{Format/Value | {{#var:mass | 0 }}|kg}}<span style='margin-left: 12px'></span> | ||
|- | |- | ||
{{Tag/HR}} Stack Limit | {{Tag/HR}} Stack Limit | ||
| {{Format/Value | {{#var:stacklimit | 0 }}}}<span style='margin-left: 18px'></span> | | {{Format/Value | {{#var:stacklimit | 0 }}}}<span style='margin-left: 18px'></span> | ||
− | |} | + | |- |
+ | |}</onlyinclude> | ||
+ | |||
+ | {{documentation}} | ||
+ | |||
+ | [[Category:Tag]] |
Latest revision as of 07:25, 10 January 2021
Market Value | 1.2 |
---|---|
Mass | 0.4 kg
|
Stack Limit | 75
|
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.
The above documentation is transcluded from Template:Tag/Basics/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |