Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added display of present appraise price even if housing style is present, removed trader appraised value)
(update for weapon display)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
{{#if: {{{uses|}}} | {{!}}'''Uses:'''{{!}}{{!}} {{{uses}}} }}
{{#if: {{{uses|}}} | {{!}}'''Uses:'''{{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{{uses}}} }}
|-
|-


{{#if: {{{appcost|}}}
{{#if: {{{appcost|}}}
| {{!}} '''Appraised Cost:''' {{!}}{{!}} {{
| {{!}} '''Appraised Cost:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{
#arraymap: {{{appcost}}} | + | x | [[appraised cost is::x Kronars]] | &#32;or&#32; }}
#arraymap: {{{appcost}}} | + | x | [[appraised cost is::x Kronars]] | &#32;or&#32; }}
|{{#if:{{IfMatch| housing | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }} | | {{!}} '''Appraised Cost:''' {{!}}{{!}} [[missing::Infobox entry on appraised cost|''Unknown'']] }} }}
|{{#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: {{{special|}}} | {{#ifeq: {{{special}}} | - | | {{!}} '''Special Properties:'''
{{#if: {{{special|}}} | {{#ifeq: {{{special}}} | - | | {{!}} '''Special Properties:'''
{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#If:
{{!}} {{#If:
{{IfMatch| magic | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}
{{IfMatch| magic | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}
{{IfMatch| cambrinth | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}
{{IfMatch| cambrinth | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} }}
Line 107: Line 107:
| * 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:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#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:33, 8 February 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.