Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(Added "gift" as an item rarity that counts as rare, since they may only be available from a certain event, or for a limited time)
Line 7: Line 7:
|{{#if:{{IfMatch| housing | {{{special}}} }} | | {{!}} '''Appraised Cost:''' {{!}}{{!}}{{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }} <!-- [[missing::Infobox entry on appraised cost|-->''Unknown''<!--]]--> }} }}{{#if:{{{itemtype|}}}|{{#arraymap:{{{itemtype}}}|,|@@@@|[[item type is::@@@@| ]]|}}}}
|{{#if:{{IfMatch| housing | {{{special}}} }} | | {{!}} '''Appraised Cost:''' {{!}}{{!}}{{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }} <!-- [[missing::Infobox entry on appraised cost|-->''Unknown''<!--]]--> }} }}{{#if:{{{itemtype|}}}|{{#arraymap:{{{itemtype}}}|,|@@@@|[[item type is::@@@@| ]]|}}}}
|-
|-
| '''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=a designed to be used in or on [[item category is::housing| ]][[Homes|player houses]] ({{#if:{{{htype|}}} | [[housing item type::{{{htype}}}]] {{#switch:{{{htype}}}|Armor Stand|General Storage|Large Item|Wall|Weapon Rack=- holds {{#if:{{{imax|}}}|[[item capacity is::{{{imax}}}]]|''?''[[missing::Infobox entry on item capacity max| ]]}} items| }} | [[missing::Infobox entry on housing item type|''?'']]}})|instrument=an [[item category is::instrument]]{{Cat|Instruments}}|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:{{{pcrystal}}}}}|true|yes=*This item can be upgraded with {{ilink|i|potency crystal}}s.[[pcrystal is::true| ]]}}{{#switch:{{lc:{{{istone}}}}}|true|yes=*This item can have its power restored with {{ilink|i|infuser stone}}s.[[istone 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| ]]{{Cat|Atmospheric items}}}}{{#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=a designed to be used in or on [[item category is::housing| ]][[Homes|player houses]] ({{#if:{{{htype|}}} | [[housing item type::{{{htype}}}]] {{#switch:{{{htype}}}|Armor Stand|General Storage|Large Item|Wall|Weapon Rack=- holds {{#if:{{{imax|}}}|[[item capacity is::{{{imax}}}]]|''?''[[missing::Infobox entry on item capacity max| ]]}} items| }} | [[missing::Infobox entry on housing item type|''?'']]}})|instrument=an [[item category is::instrument]]{{Cat|Instruments}}|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| ]]|gift=[[rarity is::gift| ]][[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:{{{pcrystal}}}}}|true|yes=*This item can be upgraded with {{ilink|i|potency crystal}}s.[[pcrystal is::true| ]]}}{{#switch:{{lc:{{{istone}}}}}|true|yes=*This item can have its power restored with {{ilink|i|infuser stone}}s.[[istone 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| ]]{{Cat|Atmospheric items}}}}{{#if: {{{ptype|}}}{{{special|}}}{{{wearloc|}}}{{{enchanted|yes}}} | {{#ifeq: {{{special}}} | -+++++++++++ | | {{#If:{{
IfMatch| magic | {{{special}}} }}{{
IfMatch| magic | {{{special}}} }}{{
IfMatch| cambrinth | {{{special}}} }}{{
IfMatch| cambrinth | {{{special}}} }}{{

Revision as of 15:29, 2 April 2023

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.