Template:Tag: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
m (Protected "Template:Tag" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
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;">{{{tags|<Information Missing>}}}{{#if:{{{tags|}}}|<!--true-->{{#switch: {{{tags}}} | ScrapWood = <includeonly>[[Category:Tags/ScrapWood]]</includeonly> | Ore  = <includeonly>[[Category:Tags/Ore]]</includeonly> | OreIron = <includeonly>[[Category:Tags/OreIron]]</includeonly> | Ingot = <includeonly>[[Category:Tags/Ingot]]</includeonly> | IngotIron = <includeonly>[[Category:Tags/IngotIron]]</includeonly> | Meat = <includeonly>[[Category:Tags/Meat]]</includeonly> | Berry = <includeonly>[[Category:Tags/Berry]]</includeonly> | Timber = <includeonly>[[Category:Tags/Timber]]</includeonly> | ProjectileCatapult = <includeonly>[[Category:Tags/ProjectileCatapult]]</includeonly> | Torch = <includeonly>[[Category:Tags/Torch]]</includeonly> | Flag = <includeonly>[[Category:Tags/Flag]]</includeonly> | Harvest = <includeonly>[[Category:Tags/Harvest]]</includeonly> | Dish = <includeonly>[[Category:Tags/Dish]]</includeonly> | Rope = <includeonly>[[Category:Tags/Rope]]</includeonly> | }}|<!--false--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><noinclude>
<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 tags in their definitions.
The Tag template is meant to be used by items that have tag in their definitions.
<pre>{{Tag|tags=<tags?>}}</pre>
<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:Tags/ScrapWood]]
:* [[:Category:tag/ScrapWood]]
:* [[:Category:Tags/Ore]]
:* [[:Category:tag/Ore]]
:* [[:Category:Tags/OreIron]]
:* [[:Category:tag/OreIron]]
:* [[:Category:Tags/Ingot]]
:* [[:Category:tag/Ingot]]
:* [[:Category:Tags/IngotIron]]
:* [[:Category:tag/IngotIron]]
:* [[:Category:Tags/Meat]]
:* [[:Category:tag/Meat]]
:* [[:Category:Tags/Berry]]
:* [[:Category:tag/Berry]]
:* [[:Category:Tags/Timber]]
:* [[:Category:tag/Timber]]
:* [[:Category:Tags/ProjectileCatapult]]
:* [[:Category:tag/ProjectileCatapult]]
:* [[:Category:Tags/Torch]]
:* [[:Category:tag/Torch]]
:* [[:Category:Tags/Flag]]
:* [[:Category:tag/Flag]]
:* [[:Category:Tags/Harvest]]
:* [[:Category:tag/Harvest]]
:* [[:Category:Tags/Dish]]
:* [[:Category:tag/Dish]]
:* [[:Category:Tags/Rope]]
:* [[: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: