Template:ItemProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(simplication and minor change that hopefully won't blow the server up. Here goes...)
Line 79: Line 79:
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{ilsize|}}}|[[interior length is::{{{ilsize}}}]]|''?''}} length x {{#if:{{{iwsize|}}}|[[interior width is::{{{iwsize}}}]]|''?''}} width x {{#if:{{{ihsize|}}}|[[interior height is::{{{ihsize}}}]]|''?''}} height x {{#if:{{{csize|}}}|[[weight capacity is::{{{csize}}}]]|''?''}} weight}}}}
{{!}} '''Capacity:''' {{!}}{{!}} {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}}}} {{#if:{{{ilsize|}}}|[[interior length is::{{{ilsize}}}]]|''?''}} length x {{#if:{{{iwsize|}}}|[[interior width is::{{{iwsize}}}]]|''?''}} width x {{#if:{{{ihsize|}}}|[[interior height is::{{{ihsize}}}]]|''?''}} height x {{#if:{{{csize|}}}|[[weight capacity is::{{{csize}}}]]|''?''}} weight}}}}
|-
|-
| '''Sources:''' || {{#switch:{{{span}}} | 3=colspan="3"{{!}} | 2=colspan="2" {{!}} | 1 | }}{{#switch:{{lc: {{{sourcetype}}} }} | -= | {{#if:{{{source|}}} | {{#switch: {{lc: {{{sourcetype}}} }} | sold by=Sold by {{#arraymap: {{{source}}} | + | @@@@ | [[sold by::@@@@]] | ,  }} for {{#if:{{{cost|}}} | {{#arraymap:{{{cost}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[source is::@@@@]] | ,  }} for {{#if:{{{cost|}}} | {{{cost}}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost2|}}} | {{#arraymap:{{{cost2}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[source is::@@@@]] | ,&#32; }} for {{#if:{{{cost2|}}} | {{{cost2}}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost3|}}} | {{#arraymap:{{{cost3}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[source is::@@@@]] | ,&#32; }} for {{#if:{{{cost3|}}} | {{{cost3}}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost4|}}} | {{#arraymap:{{{cost4}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[source is::@@@@]] | ,&#32; }} for {{#if:{{{cost4|}}} | {{{cost4}}} | [[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}}} | + | @@@@ | [[sold by::@@@@]] | ,&#32; }} for {{#if:{{{cost5|}}} | {{#arraymap:{{{cost5}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[source is::@@@@]] | ,&#32; }} for {{#if:{{{cost5|}}} | {{{cost5}}} | [[missing::Infobox entry on cost|an ''unknown'' amount]] }} | other={{{source5}}} | [[missing::Infobox entry on source|''Unknown'']] }} }} }}{{
#If:{{{rare|}}}|[[rare source::rare item::{{{rare}}}| ]]|{{#if:{{#arraymaptemplate:{{#if:{{{source|}}}|{{{source}}}}}{{#if:{{{source2|}}}|+{{{source2}}}}}{{#if:{{{source3|}}}|+{{{source3}}}}}{{#if:{{{source4|}}}|+{{{source4}}}}}{{#if:{{{source5|}}}|+{{{source5}}}}}{{#ask:[[source for::{{FULLPAGENAME}}]]|format=list|default=|sep=+|intro=+|link=none}}|Template:RareItemProcess|+|}}|[[rare source::rare item::false| ]]|[[rare source::rare item::true| ]]}}}}{{#switch:{{{sourcetype|}}}|-=|<br \>}}{{#ask:[[source for::{{FULLPAGENAME}}]] | format=list | default= | limit=15 | order=desc | intro=Source is&nbsp;}}{{#if:{{{shop|}}}{{{traderapp|}}}|[[Needs updating::true| ]]}}{{#arraymap:{{{sources|}}}|%%%%|@@@@|[[source is::@@@@| ]]|}}{{#if:{{{rev|}}}|[[ireview::{{{rev}}}| ]]|[[ireview::0| ]]}}</includeonly><noinclude>This template is a display and categorization plug-in for other templates, including [[Template:Item]], [[Template:Shield]],[[Template:Armor]], and [[Template:Weapon]].
#if:{{{source7|}}} | <br />{{#switch:{{lc:{{{sourcetype7}}}}} | sold by=Sold by [[sold by::{{{source7}}}]] for {{#if:{{{cost7|}}} | {{#arraymap:{{{cost7}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source8}}} | [[missing::Infobox entry on source|''Unknown'']]}} }}{{
This is because several of the basic ones share features in addition to becoming too large. {{cat | Templates,Templates for Templates}} </noinclude>
#if:{{{source9|}}} | <br />{{#switch:{{lc:{{{sourcetype9}}}}} | sold by=Sold by [[sold by::{{{source9}}}]] for {{#if:{{{cost9|}}} | {{#arraymap:{{{cost9}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[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}}} | + | @@@@ | [[shop cost is::@@@@]]}} | [[missing::Infobox entry on cost|an ''unknown'' amount]]}} | other={{{source10}}} | [[missing::Infobox entry on source|''Unknown'']]}} }} }}{{#If:{{{rare|}}}|[[rare source::rare item::{{{rare}}}| ]]|{{#if:{{IfMatch| quest | {{{special}}}+{{{special2}}}+{{{special3}}}+{{{special4}}}+{{{special5}}}+{{{special6}}} }}|[[rare source::rare item::true| ]]|{{#if:{{#arraymaptemplate:{{#if:{{{source|}}}|{{{source}}}}}{{#if:{{{source2|}}}|+{{{source2}}}}}{{#if:{{{source3|}}}|+{{{source3}}}}}{{#if:{{{source4|}}}|+{{{source4}}}}}{{#if:{{{source5|}}}|+{{{source5}}}}}{{#if:{{{source6|}}}|+{{{source6}}}}}{{#if:{{{source7|}}}|+{{{source7}}}}}{{#if:{{{source8|}}}|+{{{source8}}}}}{{#if:{{{source9|}}}|+{{{source9}}}}}{{#if:{{{source10|}}}|+{{{source10}}}}}{{#ask:[[source for::{{FULLPAGENAME}}]]|format=list|default=|sep=+|intro=+|link=none}}|Template:RareItemProcess|+|}}|[[rare source::rare item::false| ]]|[[rare source::rare item::true| ]]}}}}}}{{#switch:{{{sourcetype|}}}|-=|<br \>}}{{#ask:[[source for::{{FULLPAGENAME}}]] | format=list | default= | limit=15 | order=desc | intro=Source is&nbsp;}}{{#if:{{{shop|}}}{{{traderapp|}}}|[[Needs updating::true| ]]}}{{#arraymap:{{{sources|}}}|%%%%|@@@@|[[sold by::@@@@| ]]|}}{{#if:{{{rev|}}}|[[ireview::{{{rev}}}| ]]|[[ireview::0| ]]}}</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 05:20, 19 August 2013

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.