Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added special support for multiple versions of a shop selling and item at the same price)
mNo edit summary
Line 60: Line 60:
}} }}
}} }}
|-
|-
| '''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'']]}}{{
#if:{{{source2|}}} | <br />{{#switch: {{lc: {{{sourcetype2}}} }} | sold by=Sold by {{#arraymap: {{{source2}}} | , | x | [[sold by::x]] | &#32;,&#32; }} 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 {{#arraymap: {{{source2}}} | , | x | [[sold by::x]] | ,&#32; }} 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 {{#arraymap: {{{source3}}} | , | x | [[sold by::x]] | &#32;,&#32; }} 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 {{#arraymap: {{{source3}}} | , | x | [[sold by::x]] | ,&#32; }} 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:{{{source4|}}} | <br />{{#switch:{{lc:{{{sourcetype4}}}}} | sold by=Sold by {{#arraymap: {{{source4}}} | , | x | [[sold by::x]] | &#32;,&#32; }} for {{#if:{{{cost4|}}} | {{#arraymap:{{{cost4}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ‘‘unknown’’ amount]]}} | other={{{source4}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source4|}}} | <br />{{#switch:{{lc:{{{sourcetype4}}}}} | sold by=Sold by {{#arraymap: {{{source4}}} | , | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost4|}}} | {{#arraymap:{{{cost4}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ‘‘unknown’’ amount]]}} | other={{{source4}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source5|}}} | <br />{{#switch:{{lc:{{{sourcetype5}}}}} | sold by=Sold by {{#arraymap: {{{source5}}} | , | x | [[sold by::x]] | &#32;,&#32; }} for {{#if:{{{cost5|}}} | {{#arraymap:{{{cost5}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source5}}} | [[missing::Infobox entry on source | ''Unknown'']]}} }}{{#if:{{{source6|}}} | <br />{{#switch:{{lc:{{{sourcetype6}}}}} | sold by=Sold by [[sold by::{{{source6}}}]] for {{#if:{{{cost6|}}} | {{#arraymap:{{{cost6}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source6}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source5|}}} | <br />{{#switch:{{lc:{{{sourcetype5}}}}} | sold by=Sold by {{#arraymap: {{{source5}}} | , | x | [[sold by::x]] | ,&#32; }} for {{#if:{{{cost5|}}} | {{#arraymap:{{{cost5}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source5}}} | [[missing::Infobox entry on source | ''Unknown'']]}} }}{{#if:{{{source6|}}} | <br />{{#switch:{{lc:{{{sourcetype6}}}}} | sold by=Sold by [[sold by::{{{source6}}}]] for {{#if:{{{cost6|}}} | {{#arraymap:{{{cost6}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source6}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source7|}}} | <br />{{#switch:{{lc:{{{sourcetype7}}}}} | sold by=Sold by [[sold by::{{{source7}}}]] for {{#if:{{{cost7|}}} | {{#arraymap:{{{cost7}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source7}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
#if:{{{source7|}}} | <br />{{#switch:{{lc:{{{sourcetype7}}}}} | sold by=Sold by [[sold by::{{{source7}}}]] for {{#if:{{{cost7|}}} | {{#arraymap:{{{cost7}}} | + | x | [[shop cost is::x]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source7}}} | [[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:{{{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'']]}} }}{{

Revision as of 18:45, 8 November 2010

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.