Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added minor semantic support)
(added handling for multiple appraisal costs)
Line 4: Line 4:
|'''Weight:'''||{{#if:{{{weight|}}}|[[weight of::{{{weight}}}]] stones|''Unknown''}}
|'''Weight:'''||{{#if:{{{weight|}}}|[[weight of::{{{weight}}}]] stones|''Unknown''}}
|-
|-
|'''Appraised Cost:''' ||{{#if:{{{appcost|}}}|[[appraised cost is::{{{appcost}}} Kronars]]|''Unknown''}}{{#switch:{{lc:{{{traderapp}}}}}|y|yes=[[was trader appraised::true| ]]|n|no=[[was trader appraised::false| ]]}}
|'''Appraised Cost:''' ||{{#if:{{{appcost|}}}|{{#arraymap:{{{appcost}}}|+|x|[[appraised cost is::x Kronars]]| _or_}}|''Unknown''}}{{#switch:{{lc:{{{traderapp}}}}}|y|yes=[[was trader appraised::true| ]]|n|no=[[was trader appraised::false| ]]}}
|-
|-
| '''Special Properties:'''
| '''Special Properties:'''

Revision as of 12:04, 1 November 2008

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.