Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added support for dimentions)
(bugfix)
Line 63: Line 63:
}} }}
}} }}
|-
|-
| '''Size:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} {{{lsize|?}}} x {{{hsize|?}}} x {{{wsize|?}}} spans
| '''Dimentions:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} {{{lsize|?}}} x {{{hsize|?}}} x {{{wsize|?}}} spans
|-
|-
{{#if: ]]}}{{IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} }} |
{{#if: {{IfMatch| container | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}}|true=1 }} | {{#switch: {{{ilsize|}}} |-=|
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} {{{ilsize|?}}} x {{{ihsize|?}}} x{{{iwsize|?}}} spans x {{{csize|?}}} stones}}
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{{ilsize|?}}} x {{{ihsize|?}}} x{{{iwsize|?}}} spans x {{{csize|?}}} stones}}}}
|-
|-
| '''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]] | ,  }} 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}}} | + | x | [[sold by::x]] | ,  }} 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'']]}}{{
Line 76: Line 76:
#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}}} | + | x | [[shop cost is::x]]}} | [[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}}} | + | x | [[shop cost is::x]]}} | [[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|true|{{#ask: [[{{{source}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source2}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source3}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source4}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source5}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source6}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source7}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source8}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source9}}}]]|?Festival shop=|link=none}}}}|[[rare item::true| ]]|{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[rare item::true| ]]|false=[[rare item::false| ]]}}}}}}{{#ask:[[Creature drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -= | <br />}}Dropped by_}}</includeonly><noinclude>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. {{cat | Templates,Templates for Templates}} </noinclude>
#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|true|{{#ask: [[{{{source}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source2}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source3}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source4}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source5}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source6}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source7}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source8}}}]]|?Festival shop=|link=none}}|{{#ask: [[{{{source9}}}]]|?Festival shop=|link=none}}}}|[[rare item::true| ]]|{{IfMatch| quest | {{{special}}} | {{{special2}}} | {{{special3}}} | {{{special4}}} | {{{special5}}} | {{{special6}}} | true=[[rare item::true| ]]|false=[[rare item::false| ]]}}}}}}{{#ask:[[Creature drops::{{FULLPAGENAME}}]] | format=list | default= | limit=5 | intro={{#switch:{{lc:{{{sourcetype}}}}} | -= | <br />}}Dropped by_}}</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 01:38, 15 January 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.