Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (test for easier to read formatting and minor updates)
m (typo fix)
Line 2: Line 2:
{{#if: {{{uses|}}} | {{!}}'''Uses:'''{{!}}{{!}} {{{uses}}} }}
{{#if: {{{uses|}}} | {{!}}'''Uses:'''{{!}}{{!}} {{{uses}}} }}
| -
| -
| '''Appraised Cost:''' | | {{#if: {{{appcost|}}} | {{
| '''Appraised Cost:''' || {{#if: {{{appcost|}}} | {{
#arraymap: {{{appcost}}} | + | x | [[appraised cost is::x Kronars]] |  or  }} | [[missing::Infobox entry on appraised cost|''Unknown'']] }}{{
#arraymap: {{{appcost}}} | + | x | [[appraised cost is::x Kronars]] |  or  }} | [[missing::Infobox entry on appraised cost|''Unknown'']] }}{{
#switch:{{lc:{{{traderapp}}} }} | y|yes= [[was trader appraised::true| ]] | n|no= [[was trader appraised::false| ]] }}
#switch:{{lc:{{{traderapp}}} }} | y|yes= [[was trader appraised::true| ]] | n|no= [[was trader appraised::false| ]] }}
Line 105: Line 105:
| * None{{#ifeq:{{{itype}}} | item | {{IfMatch| clothing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[has item property::clothing | ]]}} }}{{#ifeq:{{{itype}}} | item | {{IfMatch| jewelry | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[has item property::jewelry | ]]}} }}{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=[[has item property::quest | ]]}} }} }} | }}
| * None{{#ifeq:{{{itype}}} | item | {{IfMatch| clothing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[has item property::clothing | ]]}} }}{{#ifeq:{{{itype}}} | item | {{IfMatch| jewelry | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[has item property::jewelry | ]]}} }}{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | true=[[has item property::quest | ]]}} }} }} | }}
| -
| -
| '''Sources:''' | | {{#switch:{{lc: {{{sourcetype}}} }} | -= | {{#if:{{{source|}}} | {{#switch: {{lc: {{{sourcetype}}} }} | sold by=Sold by [[sold by::{{{source}}}]] 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:{{lc: {{{sourcetype}}} }} | -= | {{#if:{{{source|}}} | {{#switch: {{lc: {{{sourcetype}}} }} | sold by=Sold by [[sold by::{{{source}}}]] 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 [[sold by::{{{source2}}}]] 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 [[sold by::{{{source2}}}]] 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 [[sold by::{{{source3}}}]] 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 [[sold by::{{{source3}}}]] 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 23:50, 13 January 2009

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.