Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
mNo edit summary
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}}} | + | x | [[appraised cost is::x Kronars]] |  or  }} }}
#arraymap: {{{appcost}}} | + | @@@@ | [[appraised cost is::@@@@ Kronars]] |  or  }} }}
|{{#if:{{IfMatch| housing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }} | | {{!}} '''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}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }} | | {{!}} '''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 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 {{#arraymap: {{{wearloc}}} | , | x | [[worn in slot::x]] | &#32;or&#32; }} 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 {{#arraymap: {{{wearloc}}} | , | x | [[worn in slot::x]] | &#32;or&#32; }} 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 | -= * 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 {{#arraymap: {{{wearloc}}} | , | @@@@ | [[worn in slot::@@@@]] | &#32;or&#32; }} 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 {{#arraymap: {{{wearloc}}} | , | @@@@ | [[worn in slot::@@@@]] | &#32;or&#32; }} 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 69: Line 69:
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{ilsize|}}}|[[interior length is::{{{ilsize}}}]]|''?''}} length x {{#if:{{{iwsize|}}}|[[interior width is::{{{iwsize}}}]]|''?''}} width x {{#if:{{{ihsize|}}}|[[interior height is::{{{ihsize}}}]]|''?''}} height x {{#if:{{{csize|}}}|[[weight capacity is::{{{csize}}}]]|''?''}} weight}}}}
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{ilsize|}}}|[[interior length is::{{{ilsize}}}]]|''?''}} length x {{#if:{{{iwsize|}}}|[[interior width is::{{{iwsize}}}]]|''?''}} width x {{#if:{{{ihsize|}}}|[[interior height is::{{{ihsize}}}]]|''?''}} height x {{#if:{{{csize|}}}|[[weight capacity is::{{{csize}}}]]|''?''}} weight}}}}
|-
|-
| '''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]] | ,&#32; }} 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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost|}}} | {{#arraymap:{{{cost}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost2|}}} | {{#arraymap:{{{cost2}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost3|}}} | {{#arraymap:{{{cost3}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source3}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source4|}}} | <br />{{#switch:{{lc:{{{sourcetype4}}}}} | sold by=Sold by {{#arraymap: {{{source4}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost4|}}} | {{#arraymap:{{{cost4}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source4}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source4|}}} | <br />{{#switch:{{lc:{{{sourcetype4}}}}} | sold by=Sold by {{#arraymap: {{{source4}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost4|}}} | {{#arraymap:{{{cost4}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source4}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source5|}}} | <br />{{#switch:{{lc:{{{sourcetype5}}}}} | sold by=Sold by {{#arraymap: {{{source5}}} | + | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost5|}}} | {{#arraymap:{{{cost5}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source5}}} | [[missing::Infobox entry on source | ''Unknown'']]}} }}{{#if:{{{source6|}}} | <br />{{#switch:{{lc:{{{sourcetype6}}}}} | sold by=Sold by [[sold by::{{{source6}}}]] for {{#if:{{{cost6|}}} | {{#arraymap:{{{cost6}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source6}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source5|}}} | <br />{{#switch:{{lc:{{{sourcetype5}}}}} | sold by=Sold by {{#arraymap: {{{source5}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost5|}}} | {{#arraymap:{{{cost5}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source5}}} | [[missing::Infobox entry on source | ''Unknown'']]}} }}{{#if:{{{source6|}}} | <br />{{#switch:{{lc:{{{sourcetype6}}}}} | sold by=Sold by [[sold by::{{{source6}}}]] for {{#if:{{{cost6|}}} | {{#arraymap:{{{cost6}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source6}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source7|}}} | <br />{{#switch:{{lc:{{{sourcetype7}}}}} | sold by=Sold by [[sold by::{{{source7}}}]] for {{#if:{{{cost7|}}} | {{#arraymap:{{{cost7}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source7}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source7|}}} | <br />{{#switch:{{lc:{{{sourcetype7}}}}} | sold by=Sold by [[sold by::{{{source7}}}]] for {{#if:{{{cost7|}}} | {{#arraymap:{{{cost7}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source7}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source8|}}} | <br />{{#switch:{{lc:{{{sourcetype8}}}}} | sold by=Sold by [[sold by::{{{source8}}}]] for {{#if:{{{cost8|}}} | {{#arraymap:{{{cost8}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source8}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source8|}}} | <br />{{#switch:{{lc:{{{sourcetype8}}}}} | sold by=Sold by [[sold by::{{{source8}}}]] for {{#if:{{{cost8|}}} | {{#arraymap:{{{cost8}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source8}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source9|}}} | <br />{{#switch:{{lc:{{{sourcetype9}}}}} | sold by=Sold by [[sold by::{{{source9}}}]] for {{#if:{{{cost9|}}} | {{#arraymap:{{{cost9}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source9}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source9|}}} | <br />{{#switch:{{lc:{{{sourcetype9}}}}} | sold by=Sold by [[sold by::{{{source9}}}]] for {{#if:{{{cost9|}}} | {{#arraymap:{{{cost9}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source9}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source10|}}} | <br />{{#switch:{{lc:{{{sourcetype10}}}}} | sold by=Sold by [[sold by::{{{source10}}}]] for {{#if:{{{cost10|}}} | {{#arraymap:{{{cost10}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source10}}} | [[missing::Infobox entry on source|''Unknown'']]}} }} }}{{#If:{{{rare|}}}|[[rare item::{{{rare}}}| ]]|{{#if:{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}{{#arraymaptemplate:{{#if:{{{source|}}}|{{{source}}}}}{{#if:{{{source2|}}}|+{{{source2}}}}}{{#if:{{{source3|}}}|+{{{source3}}}}}{{#if:{{{source4|}}}|+{{{source4}}}}}{{#if:{{{source5|}}}|+{{{source5}}}}}{{#if:{{{source6|}}}|+{{{source6}}}}}{{#if:{{{source7|}}}|+{{{source7}}}}}{{#if:{{{source8|}}}|+{{{source8}}}}}{{#if:{{{source9|}}}|+{{{source9}}}}}{{#if:{{{source10|}}}|+{{{source10}}}}}|Template:RareItemProcess|+|}}|[[rare item::true| ]]|[[rare item::false| ]]}}}}{{#ask:[[quest drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -= | <br />}}Quest treasure from&nbsp;}}{{#ask:[[Creature drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -={{#if:{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}| <br /> | }} | <br />}}Dropped by&nbsp;}}{{#if:{{{shop|}}}{{{traderapp|}}}|[[Needs updating::true| ]]}}</includeonly><noinclude>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. {{cat | Templates,Templates for Templates}} </noinclude>
#if:{{{source10|}}} | <br />{{#switch:{{lc:{{{sourcetype10}}}}} | sold by=Sold by [[sold by::{{{source10}}}]] for {{#if:{{{cost10|}}} | {{#arraymap:{{{cost10}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source10}}} | [[missing::Infobox entry on source|''Unknown'']]}} }} }}{{#If:{{{rare|}}}|[[rare item::{{{rare}}}| ]]|{{#if:{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}{{#arraymaptemplate:{{#if:{{{source|}}}|{{{source}}}}}{{#if:{{{source2|}}}|+{{{source2}}}}}{{#if:{{{source3|}}}|+{{{source3}}}}}{{#if:{{{source4|}}}|+{{{source4}}}}}{{#if:{{{source5|}}}|+{{{source5}}}}}{{#if:{{{source6|}}}|+{{{source6}}}}}{{#if:{{{source7|}}}|+{{{source7}}}}}{{#if:{{{source8|}}}|+{{{source8}}}}}{{#if:{{{source9|}}}|+{{{source9}}}}}{{#if:{{{source10|}}}|+{{{source10}}}}}|Template:RareItemProcess|+|}}|[[rare item::true| ]]|[[rare item::false| ]]}}}}{{#ask:[[quest drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -= | <br />}}Quest treasure from&nbsp;}}{{#ask:[[Creature drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -={{#if:{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}| <br /> | }} | <br />}}Dropped by&nbsp;}}{{#if:{{{shop|}}}{{{traderapp|}}}|[[Needs updating::true| ]]}}</includeonly><noinclude>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. {{cat | Templates,Templates for Templates}} </noinclude>

Revision as of 09:05, 31 January 2013

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.