Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added support for itemtype)
(bugfix)
Line 5: Line 5:
#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}}} | + | x | [[appraised cost is::x 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|}}}|[[item type is::{{{itemtype}}}]]}}
|{{#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|}}}|[[item type is::{{{itemtype}}}| ]]}}
|-
|-
{{#if: {{{special|}}} | {{#ifeq: {{{special}}} | - | | {{!}} '''Special Properties:'''
{{#if: {{{special|}}} | {{#ifeq: {{{special}}} | - | | {{!}} '''Special Properties:'''

Revision as of 07:43, 10 February 2012

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.