Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(want template to indicate that an item can't be worn)
m (Reverted edits by Isharon (Talk) to last revision by Juugcatm)
Line 22: Line 22:
IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This {{{itype}}} is a [[has item property::container]] or has pockets.}}{{
IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This {{{itype}}} is a [[has item property::container]] or has pockets.}}{{
IfMatch| lock | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item can be locked.[[has item property::lock| ]]}}{{
IfMatch| lock | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item can be locked.[[has item property::lock| ]]}}{{
#switch:{{{itype}}} | item={{#If:{{IfMatch| clothing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{IfMatch| jewelry | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{{wearloc|}}} | {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n | -|This item cannot be worn. | hair|hair (?)=* This item needs to be allocated to either "tied to the hair" or "placed in the hair."[[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::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)| ]]|{{#ifeq:{{lc:{{{wearloc}}} }} | generic | *This item is worn in a [[worn in slot::generic]] slot. | *This item is worn in the [[worn in slot::{{{wearloc}}}]] slot.}} }} | *This item is worn in an [[missing::Infobox entry on location worn|''unknown'' ]] slot. }} }} | weapon={{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n | -= | {{#ifeq:{{lc:{{{wearloc}}} }} | generic | *This weapon is worn in a [[worn in slot::generic]] slot. | *This weapon is worn in the [[worn in slot::{{{wearloc}}}]] slot.}} }} }} }}{{
#switch:{{{itype}}} | item={{#If:{{IfMatch| clothing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{IfMatch| jewelry | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}}}}{{{wearloc|}}} | {{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n | -= | hair|hair (?)=* This item needs to be allocated to either "tied to the hair" or "placed in the hair."[[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::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)| ]]|{{#ifeq:{{lc:{{{wearloc}}} }} | generic | *This item is worn in a [[worn in slot::generic]] slot. | *This item is worn in the [[worn in slot::{{{wearloc}}}]] slot.}} }} | *This item is worn in an [[missing::Infobox entry on location worn|''unknown'' ]] slot. }} }} | weapon={{#if:{{{wearloc|}}} | {{#switch:{{lc:{{{wearloc}}}}} | n | -= | {{#ifeq:{{lc:{{{wearloc}}} }} | generic | *This weapon is worn in a [[worn in slot::generic]] slot. | *This weapon is worn in the [[worn in slot::{{{wearloc}}}]] slot.}} }} }} }}{{
IfMatch| food | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is [[has item property::food]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| food | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is [[has item property::food]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| drink | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is a [[has item property::drink]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
IfMatch| drink | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is a [[has item property::drink]]{{#if:{{{uses|}}} | | [[missing::Infobox entry on number of uses| ]]}}.}}{{
Line 58: Line 58:
IfMatch| trader style | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::trader|Traders]].[[has item property::trader style| ]]}}{{
IfMatch| trader style | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::trader|Traders]].[[has item property::trader style| ]]}}{{
IfMatch| warrior mage style | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::warrior mage|Warrior Mages]].[[has item property::warrior mage style| ]]}}{{
IfMatch| warrior mage style | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This {{{itype}}} is styled or has special functions for [[guild association is::warrior mage|Warrior Mages]].[[has item property::warrior mage style| ]]}}{{
IfMatch| anatomy chart | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This is an anatomy chart for a compendium.[[has item property::anatomy chart| ]]}}{{
IfMatch| anatomy chart | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=*This item is an anatomy chart and can be added to a compendium.[[has item property::anatomy chart| ]]}}{{
IfMatch| toy | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is a toy.[[has item property::toy| ]]}}
IfMatch| toy | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=*This item is a toy.[[has item property::toy| ]]}}
}} }}
}} }}
|-
|-
| '''Sources:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#switch:{{lc: {{{sourcetype}}} }} | -= | {{#if:{{{source|}}} | {{#switch: {{lc: {{{sourcetype}}} }} | sold by=Sold by {{#arraymap: {{{source}}} | + | x | [[sold by::x]] | ,  }} for {{#if:{{{cost|}}} | {{#arraymap:{{{cost}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source}}} | [[missing::Infobox entry on source|''Unknown'']]}} | [[missing::Infobox entry on source|''Unknown'']]}}{{
| '''Sources:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#switch:{{lc: {{{sourcetype}}} }} | -= | {{#if:{{{source|}}} | {{#switch: {{lc: {{{sourcetype}}} }} | sold by=Sold by {{#arraymap: {{{source}}} | + | x | [[sold by::x]] | ,  }} for {{#if:{{{cost|}}} | {{#arraymap:{{{cost}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source}}} | [[missing::Infobox entry on source|''Unknown'']]}} | [[missing::Infobox entry on source|''Unknown'']]}}{{
#if:{{{source2|}}} | <br />{{#switch: {{lc: {{{sourcetype2}}} }} | sold by=Sold by {{#arraymap: {{{source2}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost2|}}} | {{#arraymap:{{{cost2}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source2}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source2|}}} | <br />{{#switch: {{lc: {{{sourcetype2}}} }} | sold by=Sold by {{#arraymap: {{{source2}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost2|}}} | {{#arraymap:{{{cost2}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source2}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source3|}}} | <br />{{#switch:{{lc:{{{sourcetype3}}}}} | sold by=Sold by {{#arraymap: {{{source3}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost3|}}} | {{#arraymap:{{{cost3}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source3}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source3|}}} | <br />{{#switch:{{lc:{{{sourcetype3}}}}} | sold by=Sold by {{#arraymap: {{{source3}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost3|}}} | {{#arraymap:{{{cost3}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source3}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{

Revision as of 18:57, 20 May 2011

This template is a display and categorization "plug in" for other templates because several of the basic ones share features in addition to becoming too large.