Template:Tag: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary Tag: Categorization |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{hideheading|}}}|true|<!--TRUE-->|<!--FALSE--><h2>Tag</h2> | {{#ifeq:{{{hideheading|}}}|true|<!--TRUE-->|<!--FALSE--><h2>Tag</h2> | ||
;This item has the following tag(s)}} | ;This item has the following tag(s)}} | ||
<p style="margin-left: 1.6em;">{{#if:{{{tag|}}}|<!--true-->{{#switch: {{{tag}}} | ScrapWood = [[:Category:Tag/ScrapWood{{!}}ScrapWood]]<includeonly>[[Category:Tag/ScrapWood]]</includeonly> | Log = [[:Category:Tag/Log{{!}}Log]]<includeonly>[[Category:Tag/Log]]</includeonly> | Ore = [[:Category:Tag/Ore{{!}}Ore]] <includeonly>[[Category:Tag/Ore]]</includeonly> | <p style="margin-left: 1.6em;">{{#if:{{{tag|}}}|<!--true-->{{#switch: {{{tag}}} <!-- | ||
-->| ScrapWood = [[:Category:Tag/ScrapWood{{!}}ScrapWood]]<includeonly>[[Category:Tag/ScrapWood]]</includeonly> <!-- | |||
-->| Log = [[:Category:Tag/Log{{!}}Log]]<includeonly>[[Category:Tag/Log]]</includeonly> <!-- | |||
-->| Ore = [[:Category:Tag/Ore{{!}}Ore]] <includeonly>[[Category:Tag/Ore]]</includeonly> <!-- | |||
-->| OreIron = [[:Category:Tag/OreIron{{!}}OreIron]]<includeonly>[[Category:Tag/OreIron]]</includeonly> <!-- | |||
-->| OreCopper = [[:Category:Tag/OreCopper{{!}}OreCopper]]<includeonly>[[Category:Tag/OreCopper]]</includeonly> <!-- | |||
-->| OreTin = [[:Category:Tag/OreTin{{!}}OreTin]]<includeonly>[[Category:Tag/OreTin]]</includeonly> <!-- | |||
-->| OreSilver = [[:Category:Tag/OreSilver{{!}}OreSilver]]<includeonly>[[Category:Tag/OreSilver]]</includeonly> <!-- | |||
-->| OreGold = [[:Category:Tag/OreGold{{!}}OreGold]]<includeonly>[[Category:Tag/OreGold]]</includeonly> <!-- | |||
-->| Ingot = [[:Category:Tag/Ingot{{!}}Ingot]]<includeonly>[[Category:Tag/Ingot]]</includeonly> <!-- | |||
-->| IngotIron = [[:Category:Tag/IngotIron{{!}}IngotIron]]<includeonly>[[Category:Tag/IngotIron]]</includeonly> <!-- | |||
-->| IngotCopper = [[:Category:Tag/IngotCopper{{!}}IngotCopper]]<includeonly>[[Category:Tag/IngotCopper]]</includeonly> <!-- | |||
-->| IngotTin = [[:Category:Tag/IngotTin{{!}}IngotTin]]<includeonly>[[Category:Tag/IngotTin]]</includeonly> <!-- | |||
-->| IngotBronze = [[:Category:Tag/IngotBronze{{!}}IngotBronze]]<includeonly>[[Category:Tag/IngotBronze]]</includeonly> <!-- | |||
-->| IngotSteel = [[:Category:Tag/IngotSteel{{!}}IngotSteel]]<includeonly>[[Category:Tag/IngotSteel]]</includeonly> <!-- | |||
-->| IngotGold = [[:Category:Tag/IngotGold{{!}}IngotGold]]<includeonly>[[Category:Tag/IngotGold]]</includeonly> <!-- | |||
-->| IngotSilver = [[:Category:Tag/IngotSilver{{!}}IngotSilver]]<includeonly>[[Category:Tag/IngotSilver]]</includeonly> <!-- | |||
-->| Meat = [[:Category:Tag/Meat{{!}}Meat]]<includeonly>[[Category:Tag/Meat]]</includeonly> <!-- | |||
-->| Berry = [[:Category:Tag/Berry{{!}}Berry]]<includeonly>[[Category:Tag/Berry]]</includeonly> <!-- | |||
-->| Timber = [[:Category:Tag/Timber{{!}}Timber]]<includeonly>[[Category:Tag/Timber]]</includeonly> <!-- | |||
-->| Plank = [[:Category:Tag/Plank{{!}}Plank]]<includeonly>[[Category:Tag/Plank]]</includeonly> <!-- | |||
-->| RoofTileStack = [[:Category:Tag/RoofTileStack{{!}}RoofTileStack]]<includeonly>[[Category:Tag/RoofTileStack]]</includeonly> <!-- | |||
-->| HammerBuilding = [[:Category:Tag/HammerBuilding{{!}}HammerBuilding]]<includeonly>[[Category:Tag/HammerBuilding]]</includeonly> <!-- | |||
-->| Schematic = [[:Category:Tag/Schematic{{!}}Schematic]]<includeonly>[[Category:Tag/Schematic]]</includeonly> <!-- | |||
-->| ProjectileCatapult = [[:Category:Tag/ProjectileCatapult{{!}}ProjectileCatapult]]<includeonly>[[Category:Tag/ProjectileCatapult]]</includeonly> <!-- | |||
-->| Torch = [[:Category:Tag/Torch{{!}}Torch]]<includeonly>[[Category:Tag/Torch]]</includeonly> <!-- | |||
-->| Flag = [[:Category:Tag/Flag{{!}}Flag]]<includeonly>[[Category:Tag/Flag]]</includeonly> <!-- | |||
-->| Harvest = [[:Category:Tag/Harvest{{!}}Harvest]]<includeonly>[[Category:Tag/Harvest]][[Category:Farming]]</includeonly> <!-- | |||
-->| Dish = [[:Category:Tag/Dish{{!}}Dish]]<includeonly>[[Category:Tag/Dish]]</includeonly> <!-- | |||
-->| Rope = [[:Category:Tag/Rope{{!}}Rope]]<includeonly>[[Category:Tag/Rope]]</includeonly> <!-- | |||
-->| Map = [[:Category:Tag/Map{{!}}Map]]<includeonly>[[Category:Tag/Map]]</includeonly> <!-- | |||
-->| SeedBag = [[:Category:Tag/SeedBag{{!}}SeedBag]]<includeonly>[[Category:Tag/SeedBag]]</includeonly> <!-- | |||
-->| Fruit = [[:Category:Tag/Fruit{{!}}Fruit]]<includeonly>[[Category:Tag/Fruit]]</includeonly> <!-- | |||
-->| Vegetable = [[:Category:Tag/Vegetable{{!}}Vegetable]]<includeonly>[[Category:Tag/Vegetable]]</includeonly> <!-- | |||
-->| Flavoring = [[:Category:Tag/Flavoring{{!}}Flavoring]]<includeonly>[[Category:Tag/Flavoring]]</includeonly> <!-- | |||
-->| WeaponMelee = [[:Category:Tag/WeaponMelee{{!}}WeaponMelee]]<includeonly>[[Category:Tag/WeaponMelee]]</includeonly> <!-- | |||
-->| AxeCutting = [[:Category:Tag/AxeCutting{{!}}AxeCutting]]<includeonly>[[Category:Tag/AxeCutting]]</includeonly> <!-- | |||
-->| Pickaxe = [[:Category:Tag/Pickaxe{{!}}Pickaxe]]<includeonly>[[Category:Tag/Pickaxe]]</includeonly> <!-- | |||
-->| Shovel = [[:Category:Tag/Shovel{{!}}Shovel]]<includeonly>[[Category:Tag/Shovel]]</includeonly> <!-- | |||
-->| WeaponRanged = [[:Category:Tag/WeaponRanged{{!}}WeaponRanged]]<includeonly>[[Category:Tag/WeaponRanged]]</includeonly> <!-- | |||
-->| <Tag Not Recognized. New Tag?><includeonly>[[Category:Bad Tag]]</includeonly>}}<!-- | |||
-->|<!--false--><Information Missing><includeonly>[[Category:Missing_information]]</includeonly>}}</p><noinclude><!-- | |||
==Usage== | -->==Usage== | ||
The Tag template is meant to be used by items that have tag in their definitions. | The Tag template is meant to be used by items that have tag in their definitions. | ||
<pre>{{Tag|tag=<tag?>}}</pre> | <pre>{{Tag|tag=<tag?>}}</pre> | ||
Line 47: | Line 88: | ||
[[:Category:tag/Dish]]<br/> | [[:Category:tag/Dish]]<br/> | ||
[[:Category:tag/Rope]]<br/> | [[:Category:tag/Rope]]<br/> | ||
[[:Category:tag/Map]]<br/ | [[:Category:tag/Map]]<br/> | ||
[[:Category:tag/SeedBag]]<br/> | [[:Category:tag/SeedBag]]<br/> | ||
[[:Category:tag/Fruit]]<br/> | [[:Category:tag/Fruit]]<br/> |
Revision as of 00:21, 3 June 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.
- To add additional tags, include the template again for each tag but use
|hideheading=true
- Items marked with a "?" will display <Information Missing> if they are not filled in.
- Template conditionally adds the following categories:
ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.