Template:Tag: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) m (Protected "Template:Tag" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<h2>Tag</h2> | <h2>Tag</h2> | ||
;This item has the following tag(s) | ;This item has the following tag(s) | ||
<p style="margin-left: 1.6em;">{{{ | <p style="margin-left: 1.6em;">{{{tag|<Information Missing>}}}{{#if:{{{tag|}}}|<!--true-->{{#switch: {{{tag}}} | ScrapWood = <includeonly>[[Category:tag/ScrapWood]]</includeonly> | Ore = <includeonly>[[Category:tag/Ore]]</includeonly> | OreIron = <includeonly>[[Category:tag/OreIron]]</includeonly> | Ingot = <includeonly>[[Category:tag/Ingot]]</includeonly> | IngotIron = <includeonly>[[Category:tag/IngotIron]]</includeonly> | Meat = <includeonly>[[Category:tag/Meat]]</includeonly> | Berry = <includeonly>[[Category:tag/Berry]]</includeonly> | Timber = <includeonly>[[Category:tag/Timber]]</includeonly> | ProjectileCatapult = <includeonly>[[Category:tag/ProjectileCatapult]]</includeonly> | Torch = <includeonly>[[Category:tag/Torch]]</includeonly> | Flag = <includeonly>[[Category:tag/Flag]]</includeonly> | Harvest = <includeonly>[[Category:tag/Harvest]]</includeonly> | Dish = <includeonly>[[Category:tag/Dish]]</includeonly> | Rope = <includeonly>[[Category:tag/Rope]]</includeonly> | }}|<!--false--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><noinclude> | ||
==Usage== | ==Usage== | ||
The Tag template is meant to be used by items that have | The Tag template is meant to be used by items that have tag in their definitions. | ||
<pre>{{Tag| | <pre>{{Tag|tag=<tag?>}}</pre> | ||
*The code above can be pasted into your page and edited. | *The code above can be pasted into your page and edited. | ||
*Items marked with a "?" will display <Information Missing> if they are not filled in. | *Items marked with a "?" will display <Information Missing> if they are not filled in. | ||
*Template conditionally adds the following categories: | *Template conditionally adds the following categories: | ||
:* [[:Category:Missing_information]] | :* [[:Category:Missing_information]] | ||
:* [[:Category: | :* [[:Category:tag/ScrapWood]] | ||
:* [[:Category: | :* [[:Category:tag/Ore]] | ||
:* [[:Category: | :* [[:Category:tag/OreIron]] | ||
:* [[:Category: | :* [[:Category:tag/Ingot]] | ||
:* [[:Category: | :* [[:Category:tag/IngotIron]] | ||
:* [[:Category: | :* [[:Category:tag/Meat]] | ||
:* [[:Category: | :* [[:Category:tag/Berry]] | ||
:* [[:Category: | :* [[:Category:tag/Timber]] | ||
:* [[:Category: | :* [[:Category:tag/ProjectileCatapult]] | ||
:* [[:Category: | :* [[:Category:tag/Torch]] | ||
:* [[:Category: | :* [[:Category:tag/Flag]] | ||
:* [[:Category: | :* [[:Category:tag/Harvest]] | ||
:* [[:Category: | :* [[:Category:tag/Dish]] | ||
:* [[:Category: | :* [[:Category:tag/Rope]] | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 10:36, 3 January 2018
Tag
- This item has the following tag(s)
<Information Missing>
Usage
The Tag template is meant to be used by items that have tag in their definitions.
{{Tag|tag=<tag?>}}
- The code above can be pasted into your page and edited.
- Items marked with a "?" will display <Information Missing> if they are not filled in.
- Template conditionally adds the following categories:
- Category:Missing_information
- Category:tag/ScrapWood
- Category:tag/Ore
- Category:tag/OreIron
- Category:tag/Ingot
- Category:tag/IngotIron
- Category:tag/Meat
- Category:tag/Berry
- Category:tag/Timber
- Category:tag/ProjectileCatapult
- Category:tag/Torch
- Category:tag/Flag
- Category:tag/Harvest
- Category:tag/Dish
- Category:tag/Rope