Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Using imax to specify how many items a tie item can hold, at base.)
(Setting 'chromatic' to automatically add the "Morph items" and "Color morph items" categories.)
 
(14 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| ]]}}{{
IfMatch| luckstone | {{{special}}} | true=*This item is a [[Luckstone enchantment|luckstone]] and fills up [[prediction]] pools. [[has item property::luckstone| ]]}}{{
#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::@@@@]] | &#32;or&#32; }} slot.}} | *This item is worn in an [[missing::Infobox entry on location worn|''unknown'']] or unset slot. }} }}{{
#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::@@@@]] | &#32;or&#32; }} 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| ]]}}.}}{{
Line 55: 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.}}{{
IfMatch| divination tool | {{{special}}} | true=*This item is used in [[prediction]]s. [[has item property::divination tool| ]]}}
{{
IfMatch| material | {{{special}}} | true=*This item is used as a [[has item property::material]] in another process, either as a [[Crafting Materials|base for crafting]] or [[alteration]] fodder.}}{{
IfMatch| material | {{{special}}} | true=*This item is used as a [[has item property::material]] in another process, either as a [[Crafting Materials|base for crafting]] or [[alteration]] fodder.}}{{
IfMatch| mirror weapon | {{{special}}} | true=*This item is a [[T'Kashi mirror weapon]]. [[has item property::mirror weapon| ]]{{cat|T'Kashi Mirror Weapons}}}}{{
IfMatch| mirror weapon | {{{special}}} | true=*This item is a [[T'Kashi mirror weapon]]. [[has item property::mirror weapon| ]]{{cat|T'Kashi Mirror Weapons}}}}{{
Line 62: 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| 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 74: 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 105: 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.