Difference between revisions of "Template:ItemProperties"

From elanthipedia
Jump to: navigation, search
m (updating "gives light" line)
 
(29 intermediate revisions by one other user not shown)
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::@@@@| ]]|}}}}
 
|-
 
|-
{{#if: {{{special|}}}{{{wearloc|}}}{{{hides|}}} | {{#ifeq: {{{special}}} | -+++++++++++ | | {{!}} '''Special Properties:'''
+
{{#if: {{{special|}}}{{{wearloc|}}} | {{#ifeq: {{{special}}} | -+++++++++++ | | {{!}} '''Special Properties:'''
 
{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#If:{{
 
{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#If:{{
 
IfMatch| magic | {{{special}}} }}{{
 
IfMatch| magic | {{{special}}} }}{{
Line 38: Line 38:
 
IfMatch| horse | {{{special}}} | true=*This item is designed to be worn by or used on a {{Cat|Tack items}} [[:Category:Horses|horse or mount]].[[has item property::tack| ]]}}{{
 
IfMatch| horse | {{{special}}} | true=*This item is designed to be worn by or used on a {{Cat|Tack items}} [[:Category:Horses|horse or mount]].[[has item property::tack| ]]}}{{
 
IfMatch| mount | {{{special}}} | true=*This item is or summons a [[:Category:Mount|mount]].{{Cat|mount}}}}{{
 
IfMatch| mount | {{{special}}} | true=*This item is or summons a [[:Category:Mount|mount]].{{Cat|mount}}}}{{
IfMatch| magical tattoo | {{{special}}} | true=*This item gives you a [[magical tattoo]] that casts [[item casts spell::{{{spellcast}}}]].{{Cat|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| 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| 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.}}{{
Line 54: Line 54:
 
IfMatch| percussion instrument | {{{special}}} }}|
 
IfMatch| percussion instrument | {{{special}}} }}|
 
*This is a musical [[has item property::instrument]] (or a tool to play, repair, or clean one).}}{{
 
*This is a musical [[has item property::instrument]] (or a tool to play, repair, or clean one).}}{{
IfMatch| gives light | {{{special}}} | true=*This item [[has item property::gives light]] 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.}}{{
 
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[has item property::housing| ]]}}{{
 
IfMatch| housing | {{{special}}} | true=*This item is designed to be used in or on [[Homes|player houses]].[[has item property::housing| ]]}}{{
IfMatch| hood | {{{special}}} | true=*This item can hide the wearer's features or worn items.[[has item property::hood| ]]}}{{
+
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::@@@@]]|&#32;and&#32;}}.}} | *This item hides [[missing::Infobox entry on items hidden|''unknown'']] objects and/or features.}}}}{{
IfMatch| hiding | {{{special}}} | true=*This item can hide the wearer's features or worn items. {{{hides|}}} {{Cat|Item hiders}}[[has item property::hiding| ]]}}{{IfMatch | hiding | {{{special}}}{{{hides|}}} | true=*ifteststart
 
{{#if:
 
{{{hides|}}}  
 
|  
 
{{
 
#switch:
 
{{
 
lc:{{{hides}}}
 
}}  
 
| n  
 
| -=  
 
| *This item is worn in the {{#arraymap:
 
{{{hides}}}  
 
| ,  
 
| @@@@  
 
| @@@@
 
| &#32;or&#32;  
 
}}  
 
slot.}}  
 
| *Hiding array still won't load!
 
}}iftestend
 
}}{{
 
 
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| dwarf style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[race association is::dwarf|Dwarves]].[[has item property::Dwarf style| ]]}}{{
 
IfMatch| dwarf style | {{{special}}} | true=*This {{{itype}}} is styled or has special functions for [[race association is::dwarf|Dwarves]].[[has item property::Dwarf style| ]]}}{{

Latest revision as of 21:40, 11 October 2020

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.