Template:Tag: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
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;">{{{tag|<Information Missing>}}}{{#if:{{{tag|}}}|<!--true-->{{#switch: {{{tag}}} | [[:Category:Tag/ScrapWood{{!}}link]]ScrapWood = <includeonly>[[Category:Tag/ScrapWood]]</includeonly> | [[:Category:Tag/Log{{!}}Log]] = <includeonly>[[Category:Tag/Log]]</includeonly> | [[:Category:Tag/Ore{{!}}Ore]] = <includeonly>[[Category:Tag/Ore]]</includeonly> | [[:Category:Tag/OreIron{{!}}OreIron]] = <includeonly>[[Category:Tag/OreIron]]</includeonly> | [[:Category:Tag/OreCopper{{!}}OreCopper]] = <includeonly>[[Category:Tag/OreCopper]]</includeonly> | [[:Category:Tag/OreTin{{!}}OreTin]] = <includeonly>[[Category:Tag/OreTin]]</includeonly> | [[:Category:Tag/OreSilver{{!}}OreSilver]] = <includeonly>[[Category:Tag/OreSilver]]</includeonly> | [[:Category:Tag/OreGold{{!}}OreGold]] = <includeonly>[[Category:Tag/OreGold]]</includeonly> | [[:Category:Tag/Ingot{{!}}Ingot]] = <includeonly>[[Category:Tag/Ingot]]</includeonly> | [[:Category:Tag/IngotIron{{!}}IngotIron]] = <includeonly>[[Category:Tag/IngotIron]]</includeonly> | [[:Category:Tag/IngotCopper{{!}}IngotCopper]] = <includeonly>[[Category:Tag/IngotCopper]]</includeonly> | [[:Category:Tag/Plow{{!}}Plow]] = <includeonly>[[Category:Tag/Plow]]</includeonly> | [[:Category:Tag/IngotTin{{!}}IngotTin]] = <includeonly>[[Category:Tag/IngotTin]]</includeonly> | [[:Category:Tag/IngotBronze{{!}}IngotBronze]] = <includeonly>[[Category:Tag/IngotBronze]]</includeonly> | [[:Category:Tag/IngotSteel{{!}}IngotSteel]] = <includeonly>[[Category:Tag/IngotSteel]]</includeonly> | [[:Category:Tag/IngotGold{{!}}IngotGold]] = <includeonly>[[Category:Tag/IngotGold]]</includeonly> | [[:Category:Tag/IngotSilver{{!}}IngotSilver]] = <includeonly>[[Category:Tag/IngotSilver]]</includeonly> | [[:Category:Tag/Meat{{!}}Meat]] = <includeonly>[[Category:Tag/Meat]]</includeonly> | [[:Category:Tag/Berry{{!}}Berry]] = <includeonly>[[Category:Tag/Berry]]</includeonly> | [[:Category:Tag/Flour{{!}}Flour]] = <includeonly>[[Category:Tag/Flour]]</includeonly> | [[:Category:Tag/Timber{{!}}Timber]] = <includeonly>[[Category:Tag/Timber]]</includeonly> | [[:Category:Tag/Plank{{!}}Plank]] = <includeonly>[[Category:Tag/Plank]]</includeonly> | [[:Category:Tag/RoofTileStack{{!}}RoofTileStack]] = <includeonly>[[Category:Tag/RoofTileStack]]</includeonly> | [[:Category:Tag/HammerBuilding{{!}}HammerBuilding]] = <includeonly>[[Category:Tag/HammerBuilding]]</includeonly> | [[:Category:Tag/Schematic{{!}}Schematic]] = <includeonly>[[Category:Tag/Schematic]]</includeonly> | [[:Category:Tag/ProjectileCatapult{{!}}ProjectileCatapult]] = <includeonly>[[Category:Tag/ProjectileCatapult]]</includeonly> | [[:Category:Tag/Torch{{!}}Torch]] = <includeonly>[[Category:Tag/Torch]]</includeonly> | [[:Category:Tag/Flag{{!}}Flag]] = <includeonly>[[Category:Tag/Flag]]</includeonly> | [[:Category:Tag/Harvest{{!}}Harvest]] = <includeonly>[[Category:Tag/Harvest]]</includeonly> | [[:Category:Tag/Dish{{!}}Dish]] = <includeonly>[[Category:Tag/Dish]]</includeonly> | [[:Category:Tag/Rope{{!}}Rope]] = <includeonly>[[Category:Tag/Rope]]</includeonly> | [[:Category:Tag/Map{{!}}Map]] = <includeonly>[[Category:Tag/Map]]</includeonly> <!--| [[:Category:Tag/Bowl{{!}}Bowl]] = <includeonly>[[Category:Tag/Bowl]]</includeonly> -->| [[:Category:Tag/SeedBag{{!}}SeedBag]] = <includeonly>[[Category:Tag/SeedBag]]</includeonly> | [[:Category:Tag/Fruit{{!}}Fruit]] = <includeonly>[[Category:Tag/Fruit]]</includeonly> | [[:Category:Tag/Vegetable{{!}}Vegetable]] = <includeonly>[[Category:Tag/Vegetable]]</includeonly> | [[:Category:Tag/Flavoring{{!}}Flavoring]] = <includeonly>[[Category:Tag/Flavoring]]</includeonly> | }}|<!--false--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><noinclude>
<p style="margin-left: 1.6em;">{{#if:{{{tag|}}}|<!--true-->{{#switch: {{{tag}}}  
| ScrapWood = [[:Category:Tag/ScrapWood{{!}}link]]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>  
| Plow = [[:Category:Tag/Plow{{!}}Plow]]<includeonly>[[Category:Tag/Plow]]</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>  
| Flour = [[:Category:Tag/Flour{{!}}Flour]]<includeonly>[[Category:Tag/Flour]]</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]]</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> <!--
| Bowl = [[:Category:Tag/Bowl{{!}}Bowl]]<includeonly>[[Category:Tag/Bowl]]</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>
| <Tag Not Recognized>}}|<!--false--><Information Missing><includeonly>[[Category:Missing_information]]</includeonly>}}</p>gory:Tag/Vegetable]]</includeonly> | [[:Category:Tag/Flavoring{{!}}Flavoring]] = <includeonly>[[Category:Tag/Flavoring]]</includeonly> | }}|<!--false--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><noinclude>





Revision as of 14:37, 3 January 2018

Tag

This item has the following tag(s)

<Information Missing>

gory:Tag/Vegetable]]</includeonly> | Flavoring = | }}|}}


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:

Category:Missing_information
Category:tag/ScrapWood
Category:Tag/Log
Category:tag/Ore
Category:tag/OreIron
Category:tag/OreCopper
Category:tag/OreTin
Category:tag/OreSilver
Category:tag/OreGold
Category:tag/Ingot
Category:tag/IngotIron
Category:tag/IngotCopper

Category:tag/Plow
Category:tag/IngotTin
Category:tag/IngotBronze
Category:tag/IngotSteel
Category:tag/IngotGold
Category:tag/IngotSilver
Category:tag/Meat
Category:tag/Berry
Category:tag/Flour
Category:tag/Timber
Category:tag/Plank
Category:tag/RoofTileStack
Category:tag/HammerBuilding
Category:tag/Schematic

Category:tag/ProjectileCatapult
Category:tag/Torch
Category:tag/Flag
Category:tag/Harvest
Category:tag/Dish
Category:tag/Rope
Category:tag/Map
Category:tag/SeedBag
Category:tag/Fruit
Category:tag/Vegetable
Category:tag/Flavoring