Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
|-
|-
| '''Properties:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }} {{#if:{{{ptype|}}}| This is {{#switch:{{{ptype}}}|clothing=an article of [[item category is::clothing]]|container=a [[item category is::container]]|crafting tool=a [[item category is::crafting tool]]|housing=designed to be used in or on [[item category is::housing| ]][[Homes|player houses]]|instrument=an [[item category is::instrument]]|jewelry=[[item category is::jewelry]]|other=[[item category is::other|an item]]|''?''}}. }}{{#if:{{{rarity|}}}| {{#switch:{{{rarity}}}|common=[[rarity is::common| ]][[rare source::false| ]][[rare item::false| ]]|festival=[[rarity is::festival| ]][[rare source::true| ]][[rare item::true| ]]|incidental=[[rarity is::incidental| ]][[rare source::true| ]][[rare item::true| ]]|end loot=[[rarity is::end loot| ]][[rare source::true| ]][[rare item::true| ]]|auction=[[rarity is::auction| ]][[rare source::true| ]][[rare item::true| ]]{{Cat|Auction-Tier Items}}|}} }}{{#switch:{{lc:{{{verby}}}}}|true|yes=*This item has more than normal or unusual verbs.[[verby is::true| ]]}}{{#switch:{{lc:{{{atmos}}}}}|true|yes=*This is an [[Atmospheric item|atmo item]] that will periodically emit messaging to the entire room.[[atmo is::true| ]]}}{{#if: {{{ptype|}}}{{{special|}}}{{{wearloc|}}}{{{enchanted|yes}}} | {{#ifeq: {{{special}}} | -+++++++++++ | | {{#If:{{
| '''Properties:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }} {{#if:{{{ptype|}}}| This is {{#switch:{{{ptype}}}|clothing=an article of [[item category is::clothing]]|container=a [[item category is::container]]|crafting tool=a [[item category is::crafting tool]]|housing=designed to be used in or on [[item category is::housing| ]][[Homes|player houses]]|instrument=an [[item category is::instrument]]|jewelry=[[item category is::jewelry]]|other=[[item category is::other|an item]]|''?''}}. }}{{#if:{{{rarity|}}}| {{#switch:{{{rarity}}}|common=[[rarity is::common| ]][[rare source::false| ]][[rare item::false| ]]|festival=[[rarity is::festival| ]][[rare source::true| ]][[rare item::true| ]]|incidental=[[rarity is::incidental| ]][[rare source::true| ]][[rare item::true| ]]|end loot=[[rarity is::end loot| ]][[rare source::true| ]][[rare item::true| ]]|auction=[[rarity is::auction| ]][[rare source::true| ]][[rare item::true| ]]{{Cat|Auction-Tier Items}}|}} }}{{#switch:{{lc:{{{verby}}}}}|true|yes=*This item has more than normal or unusual verbs.[[verby is::true| ]]}}{{#switch:{{lc:{{{atmos}}}}}|true|yes=*This is an [[Atmospheric item|atmo item]] that will periodically emit messaging to the entire room.[[atmo is::true| ]]}}{{#if: {{{ptype|}}}{{{special|}}}{{{wearloc|}}}{{{enchanted|yes}}} | {{#ifeq: {{{special}}} | -+++++++++++ | | {{#If:{{
#If:{{IfMatch| clothing | {{{special}}}}}{{IfMatch| jewelry | {{{special}}}}}{{IfMatch| container | {{{special}}}}}{{{wearloc|}}} | {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n= | -=[[worn in slot::-| ]] | hair|hair (?)=* This item needs to be allocated to either "tied to the hair" or "placed in the hair."[[missing::Infobox is missing specific hair location| ]]|hair (tied)=*This item is tied to the hair[[worn in slot::hair (tied)| ]].|hair (placed)=*This item is placed in the hair[[worn in slot::hair (placed)| ]].|shirt=* This item needs to be allocated to either "shirt+" (worn with armor) or "shirt-" (worn without armor).[[missing::Infobox is missing specific shirt location| ]]|shirt-=* This item is worn in the shirt slot but cannot be worn with armor.[[worn in slot::shirt (without armor)| ]]|shirt+=* This item is worn in the shirt slot and can be worn with armor.[[worn in slot::shirt (with armor)| ]]| generic=*This item is worn in a [[worn in slot::generic]] slot. | *This item is worn in the {{#arraymap: {{{wearloc}}} | , | @@@@ | [[worn in slot::@@@@]] |  or  }} slot.}} | *This item is worn in an [[missing::Infobox entry on location worn|''unknown'']] or unset slot. }} }}{{
IfMatch| magic | {{{special}}} }}{{
IfMatch| magic | {{{special}}} }}{{
IfMatch| cambrinth | {{{special}}} }}{{
IfMatch| cambrinth | {{{special}}} }}{{
Line 26: Line 27:
IfMatch| pockets | {{{special}}} | true=*This {{{itype}}} has [[has item property::pockets]].{{#if:{{{ilsize|}}}||[[missing::Infobox entry on internal size| ]]}} }}| }} }}{{
IfMatch| pockets | {{{special}}} | true=*This {{{itype}}} has [[has item property::pockets]].{{#if:{{{ilsize|}}}||[[missing::Infobox entry on internal size| ]]}} }}| }} }}{{
IfMatch| lock | {{{special}}} | true=*This item can be locked.[[has item property::lock| ]]}}{{
IfMatch| lock | {{{special}}} | true=*This item can be locked.[[has item property::lock| ]]}}{{
#If:{{IfMatch| clothing | {{{special}}}}}{{IfMatch| jewelry | {{{special}}}}}{{IfMatch| container | {{{special}}}}}{{{wearloc|}}} | {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n= | -=[[worn in slot::-| ]] | hair|hair (?)=* This item needs to be allocated to either "tied to the hair" or "placed in the hair."[[missing::Infobox is missing specific hair location| ]]|hair (tied)=*This item is tied to the hair[[worn in slot::hair (tied)| ]].|hair (placed)=*This item is placed in the hair[[worn in slot::hair (placed)| ]].|shirt=* This item needs to be allocated to either "shirt+" (worn with armor) or "shirt-" (worn without armor).[[missing::Infobox is missing specific shirt location| ]]|shirt-=* This item is worn in the shirt slot but cannot be worn with armor.[[worn in slot::shirt (without armor)| ]]|shirt+=* This item is worn in the shirt slot and can be worn with armor.[[worn in slot::shirt (with armor)| ]]| generic=*This item is worn in a [[worn in slot::generic]] slot. | *This item is worn in the {{#arraymap: {{{wearloc}}} | , | @@@@ | [[worn in slot::@@@@]] |  or  }} slot.}} | *This item is worn in an [[missing::Infobox entry on location worn|''unknown'']] or unset slot. }} }}{{
IfMatch| food | {{{special}}} | true=*This item is [[has item property::food]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| food | {{{special}}} | true=*This item is [[has item property::food]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| drink | {{{special}}} | true=*This item is a [[has item property::drink]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| drink | {{{special}}} | true=*This item is a [[has item property::drink]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{

Revision as of 22:15, 3 February 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.