Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(Setting 'chromatic' to automatically add the "Morph items" and "Color morph items" categories.)
 
(10 intermediate revisions by 2 users not shown)
Line 4: Line 4:
{{#if: {{{appcost|}}} | {{
{{#if: {{{appcost|}}} | {{
#ifeq: {{{appcost}}} | - | | {{!}} '''Appraised Cost:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{
#ifeq: {{{appcost}}} | - | | {{!}} '''Appraised Cost:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{
#arraymap:{{{appcost}}}|+|@@@@| [[appraised cost is::@@@@ Kronars]]| or }} }}
#arraymap:{{{appcost}}}|+|@@@@| [[appraised cost is::{{formatnum:{{#replace:@@@@|,|}}|R}} Kronars | {{formatnum:{{#replace:@@@@|,|}}}} Kronars]]| or }} }}
|{{#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::@@@@| ]]|}}}}
|-
|-
Line 32: Line 32:
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| chakrel | {{{special}}} | true=*This item has [[has item property::chakrel]] and can aid with [[:Category:Meditations|meditations]].}}{{
IfMatch| chakrel | {{{special}}} | true=*This item has [[has item property::chakrel]] and can aid with [[:Category:Meditations|meditations]].}}{{
IfMatch| chromatic | {{{special}}} | true=*This item is [[:Category:Chromatic enchantment items|chromatic]] and can change colors.[[has item property::chromatic| ]]{{cat|Chromatic enchantment items, Morph items, Color morph items}}}}{{
IfMatch| sanowret crystal | {{{special}}} | true=*This item is a [[has item property::sanowret crystal| ]] [[sanowret crystal]] and can train [[Arcana]].}}{{
IfMatch| sanowret crystal | {{{special}}} | true=*This item is a [[has item property::sanowret crystal| ]] [[sanowret crystal]] and can train [[Arcana]].}}{{
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| ]]}}{{
Line 56: Line 57:
IfMatch| magical tattoo | {{{special}}} | true=*This item gives you a [[magical tattoo]] that casts [[item casts spell::{{{spellcast}}}]].{{Cat|magical tattoo}} [[has item property::magical tattoo| ]]}}{{
IfMatch| magical tattoo | {{{special}}} | true=*This item gives you a [[magical tattoo]] that casts [[item casts spell::{{{spellcast}}}]].{{Cat|magical tattoo}} [[has item property::magical tattoo| ]]}}{{
IfMatch| heroic tattoo | {{{special}}} | true=*This item gives you a [[heroic tattoo]] that boosts stats and/or skills.{{Cat|heroic tattoo}} [[has item property::heroic tattoo| ]]}}{{
IfMatch| heroic tattoo | {{{special}}} | true=*This item gives you a [[heroic tattoo]] that boosts stats and/or skills.{{Cat|heroic tattoo}} [[has item property::heroic tattoo| ]]}}{{
IfMatch| teleportation tattoo | {{{special}}} | true=*This item gives you a [[teleportation tattoo]] that can take you to a different location.{{Cat|teleportation tattoo}} [[has item property::teleportation tattoo| ]]}}{{
IfMatch| drifter | {{{special}}} | true=* This item is magically animated to [[has item property::drifter|hover]] around a body part.{{Cat|Drifter}}}}{{
IfMatch| drifter | {{{special}}} | true=* This item is magically animated to [[has item property::drifter|hover]] around a body part.{{Cat|Drifter}}}}{{
IfMatch| creation | {{{special}}} | true=*This item is related to a [[has item property::creation]] process that is not part of the updated [[crafting|crafting]] systems.}}{{
IfMatch| creation | {{{special}}} | true=*This item is related to a [[has item property::creation]] process that is not part of the updated [[crafting|crafting]] systems.}}{{
Line 65: Line 67:
IfMatch| chipper weapon | {{{special}}} | true=*This item is a [[:Category:Chippable Weapons|chipper weapon]]. [[has item property::chipper weapon| ]]{{cat|Chippable Weapons}}}}{{
IfMatch| chipper weapon | {{{special}}} | true=*This item is a [[:Category:Chippable Weapons|chipper weapon]]. [[has item property::chipper weapon| ]]{{cat|Chippable Weapons}}}}{{
IfMatch| energy weapon | {{{special}}} | true=*This item is an [[energy weapon]]. [[has item property::energy weapon| ]]{{cat|Energy Weapons}}}}{{
IfMatch| energy weapon | {{{special}}} | true=*This item is an [[energy weapon]]. [[has item property::energy weapon| ]]{{cat|Energy Weapons}}}}{{
IfMatch| wind weapon | {{{special}}} | true=*This item is a [[:Category:Wind Weapon|wind weapon]]. [[has item property::wind weapon| ]]{{cat|Wind Weapon}}}}{{
IfMatch| weapon of return | {{{special}}} | true=*This item is a [[:Category:Weapon of Return|weapon of return]]. [[has item property::weapon of return| ]]{{cat|Weapon of Return}}}}{{
IfMatch| weapon of return | {{{special}}} | true=*This item is a [[:Category:Weapon of Return|weapon of return]]. [[has item property::weapon of return| ]]{{cat|Weapon of Return}}}}{{
IfMatch| permablessed | {{{special}}} | true=*This item is a [[:Category:Permablessed Weapon|permablessed]]. [[has item property::permablessed| ]]{{cat|Permablessed Weapon}}}}{{
IfMatch| juggling | {{{special}}} | true=*This item is trains a skill with its use.[[has item property::trainer| ]]}}{{
IfMatch| juggling | {{{special}}} | true=*This item is trains a skill with its use.[[has item property::trainer| ]]}}{{
IfMatch| pet | {{{special}}} | true=*This item is part of the [[vanity pet]] system.[[has item property::pet| ]]}}{{
IfMatch| pet | {{{special}}} | true=*This item is part of the [[vanity pet]] system.[[has item property::pet| ]]}}{{
Line 78: Line 82:
IfMatch| anatomy | {{{special}}} | true=*This item teaches [[Anatomy charts|anatomy]] through a chart or textbook. {{Cat|Anatomy Charts}} [[has item property::anatomy| ]]}}{{
IfMatch| anatomy | {{{special}}} | true=*This item teaches [[Anatomy charts|anatomy]] through a chart or textbook. {{Cat|Anatomy Charts}} [[has item property::anatomy| ]]}}{{
IfMatch| verby | {{{special}}} | true=*This {{{itype}}} has more than normal or unusual verbs.[[has item property::verby| ]]}}{{
IfMatch| verby | {{{special}}} | true=*This {{{itype}}} has more than normal or unusual verbs.[[has item property::verby| ]]}}{{
IfMatch| instrument tool| {{{special}}} | true=*This item is a tool to play, repair, or clean an instrument.[[has item property::instrument tool| ]]}}{{
#if:{{
<!-- Only count plain 'instrument' if NOT 'instrument tool' -->
IfMatch| instrument | {{{special}}} }}{{
#if:
IfMatch| wind instrument | {{{special}}} }}{{
<!-- include "instrument" only if NOT "instrument tool" -->
IfMatch| string instrument | {{{special}}} }}{{
IfMatch| percussion instrument | {{{special}}} }}|
{{#if:{{IfMatch| instrument tool | {{lc:{{{special|}}}}} | true=1}}||{{IfMatch| instrument | {{lc:{{{special|}}}}} }} }}
*This is a musical [[item category is::instrument]] (or a tool to play, repair, or clean one).}}{{
{{IfMatch| wind instrument | {{lc:{{{special|}}}}} }}
{{IfMatch| string instrument | {{lc:{{{special|}}}}} }}
{{IfMatch| percussion instrument | {{lc:{{{special|}}}}} }}
|
*This is a musical [[item category is::instrument]] (or a tool to play, repair, or clean one).
}}{{
IfMatch| gives light | {{{special}}} | true=*This item is a [[has item property::gives light| ]][[light source]] or is used to start fires.}}{{
IfMatch| gives light | {{{special}}} | true=*This item is a [[has item property::gives light| ]][[light source]] or is used to start fires.}}{{
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.}}{{
Line 109: Line 118:
IfMatch| regenerator (wilderness) | {{{special}}} | true=*This is a [[Ranger]] [[Wilderness regeneration|Wilderness bonus regeneration]] item.[[has item property::regenerator (wilderness)| ]]}}{{
IfMatch| regenerator (wilderness) | {{{special}}} | true=*This is a [[Ranger]] [[Wilderness regeneration|Wilderness bonus regeneration]] item.[[has item property::regenerator (wilderness)| ]]}}{{
IfMatch| regenerator (voice pool) | {{{special}}} | true=*This is a [[Barbarian]] [[Voice Pool regeneration]] item.[[has item property::regenerator (voice pool)| ]]}}{{
IfMatch| regenerator (voice pool) | {{{special}}} | true=*This is a [[Barbarian]] [[Voice Pool regeneration]] item.[[has item property::regenerator (voice pool)| ]]}}{{
IfMatch| vampiric (fatigue) | {{{special}}} | true=*This is a [[:Category:Vampiric Weapons|vampiric]] (fatigue) item.[[has item property::vampiric (fatigue)| ]]{{cat|Vampiric Weapons}}}}{{
IfMatch| vampiric (mana) | {{{special}}} | true=*This is a [[:Category:Vampiric Weapons|vampiric]] (mana) item.[[has item property::vampiric (mana)| ]]{{cat|Vampiric Weapons}}}}{{
IfMatch| vampiric (spirit) | {{{special}}} | true=*This is a [[:Category:Vampiric Weapons|vampiric]] (spirit) item.[[has item property::vampiric (spirit)| ]]{{cat|Vampiric Weapons}}}}{{
IfMatch| vampiric (vitality) | {{{special}}} | true=*This is a [[:Category:Vampiric Weapons|vampiric]] (vitality) item.[[has item property::vampiric (vitality)| ]]{{cat|Vampiric Weapons}}}}{{
IfMatch| repair (weapon) | {{{special}}} | true=*This item repairs weapons.[[has item property::repair (weapon)| ]]}}{{
IfMatch| repair (weapon) | {{{special}}} | true=*This item repairs weapons.[[has item property::repair (weapon)| ]]}}{{
IfMatch| repair (armor) | {{{special}}} | true=*This item repairs armor.[[has item property::repair (armor)| ]]}}{{
IfMatch| repair (armor) | {{{special}}} | true=*This item repairs armor.[[has item property::repair (armor)| ]]}}{{
IfMatch| repair (tool) | {{{special}}} | true=*This item repairs tools.[[has item property::repair (tool)| ]]}}{{
IfMatch| repair (tool) | {{{special}}} | true=*This item repairs tools.[[has item property::repair (tool)| ]]}}{{
IfMatch| stun hider | {{{special}}} | true=*This item hides you when stunned.[[has item property::stun hider| ]]{{Cat|Stun hider}}}}{{
IfMatch| area marker | {{{special}}} | true=*This {{{itype}}} is an [[:Category:Area markers|area marker]] that will persist for {{#if:{{{markerduration|}}} | [[Area marker duration is::{{{markerduration}}}]] | [[missing::Infobox entry for area marker duration|''?'']]}} day(s).[[has item property::area marker| ]]{{Cat|Area markers}}}}{{
IfMatch| area marker | {{{special}}} | true=*This {{{itype}}} is an [[:Category:Area markers|area marker]] that will persist for {{#if:{{{markerduration|}}} | [[Area marker duration is::{{{markerduration}}}]] | [[missing::Infobox entry for area marker duration|''?'']]}} day(s).[[has item property::area marker| ]]{{Cat|Area markers}}}}{{
IfMatch| warhorn | {{{special}}} | true=*This item is a [[warhorn]].[[has item property::warhorn| ]]{{Cat|Warhorn}}}}{{
IfMatch| weapon frog | {{{special}}} | true=*This item is a [[has item property::weapon frog| ]] [[weapon frog]] and can display up to two weapons that are {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | waist|belt =one-handed (but not polearm)| shoulder=any melee (but not polearm) |back=of any size | ???}} }}.[[has item property::weapon frog| ]]{{cat|Weapon frogs}}}}{{
IfMatch| weapon frog | {{{special}}} | true=*This item is a [[has item property::weapon frog| ]] [[weapon frog]] and can display up to two weapons that are {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | waist|belt =one-handed (but not polearm)| shoulder=any melee (but not polearm) |back=of any size | ???}} }}.[[has item property::weapon frog| ]]{{cat|Weapon frogs}}}}{{
IfMatch| whisper charm | {{{special}}} | true=*This item is a [[has item property::whisper charm]].{{cat|Whisper charms}}}}{{
IfMatch| whisper charm | {{{special}}} | true=*This item is a [[has item property::whisper charm]].{{cat|Whisper charms}}}}{{

Latest revision as of 20:54, 1 December 2025

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.