Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
{{#if: {{{ptype|}}} | {{!}} '''Item Type:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} This item is {{#If:{{
{{#if: {{{ptype|}}} | {{!}} '''Item Type:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} This item is {{#If:{{
IfMatch| clothing | {{{ptype}}} | an article of [[item category is::clothing]]. }}{{
IfMatch| clothing | {{{ptype}}} | an article of [[item category is::clothing]]. }}{{
IfMatch| clothing | {{{ptype}}} | a [[item category is::container]]. }}{{
IfMatch| container | {{{ptype}}} | a [[item category is::container]]. }}{{
IfMatch| clothing | {{{ptype}}} | [[item category is::jewelry]]. }}{{
IfMatch| jewelry | {{{ptype}}} | [[item category is::jewelry]]. }}{{
IfMatch| clothing | {{{ptype}}} | a [[item category is::tool]]. }}
IfMatch| tool | {{{ptype}}} | a [[item category is::tool]]. }}
IfMatch| clothing | {{{ptype}}} | is [[item category is::other|something else]]. }}
IfMatch| other | {{{ptype}}} | is [[item category is::other|something else]]. }}
}}
}}
|-
|-

Revision as of 16:08, 11 December 2021

Essential Template
  • This template is so essential that it has been protected to prevent tampering.
  • If you have suggestions to extend its function or have observed bugs, please post to the discussion page.

This template is a display and categorization plug-in for other templates, including Template:Item, Template:Shield,Template:Armor, and Template:Weapon.

This is because several of the basic ones share features in addition to becoming too large.