Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(Trying to fix item hider bug)
Line 69: Line 69:
IfMatch| smoking | {{{special}}} | true=*This is a [[has item property::smoking]] instrument or type of tobacco.}}{{
IfMatch| smoking | {{{special}}} | true=*This is a [[has item property::smoking]] instrument or type of tobacco.}}{{
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[item category is::housing| ]]}}{{
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[item category is::housing| ]]}}{{
IfMatch| hood | {{{special}}} | true=*This item can hide the wearer's features or worn items.[[has item property::hood| ]]}}{{#If:{{IfMatch | hiding | {{{special}}}}}{{{hidetype|}}}|{{Cat|Item hiders}}[[has item property::hiding| ]]{{#if:{{{hidetype|}}}|{{#switch:{{lc:{{{hidetype}}}}} | n | -= | *This item hides {{#arraymap:{{{hidetype}}}|,|@@@@|[[hides item type::@@@@]]| and }}.}} | *This item hides [[missing::Infobox entry on items hidden|''unknown'']] objects and/or features.}}}}{{
IfMatch| hood | {{{special}}} | true=*This item can hide the wearer's features or worn items.[[has item property::hood| ]]}}{{#If:{{IfMatch | hiding | {{{special}}}}}{{{hidetype|}}}|{{Cat|Item hiders}}[[has item property::hiding| ]]{{#if:{{{hidetype|}}}|{{#switch:{{lc:{{{hidetype}}}}} | n= | -= | *This item hides {{#arraymap:{{{hidetype}}}|,|@@@@|[[hides item type::@@@@]]| and }}.}} | *This item hides [[missing::Infobox entry on items hidden|''unknown'']] objects and/or features.}}}}{{
IfMatch| writing | {{{special}}} | true=*This item can be written on or with.[[has item property::writing| ]]}}{{
IfMatch| writing | {{{special}}} | true=*This item can be written on or with.[[has item property::writing| ]]}}{{
IfMatch| ritual focus | {{{special}}} | true=*This item is a [[Focus_(item)#Ritual_Focus|ritual focus]].[[has item property::ritual focus| ]]}}{{
IfMatch| ritual focus | {{{special}}} | true=*This item is a [[Focus_(item)#Ritual_Focus|ritual focus]].[[has item property::ritual focus| ]]}}{{

Revision as of 18:04, 21 September 2022

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.