Template:ItemProperties: Difference between revisions
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:''' || |
| '''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}}} | + | @@@@ | [[ |
#if:{{{source2|}}} | <br />{{#switch: {{lc: {{{sourcetype2}}} }} | sold by=Sold by {{#arraymap: {{{source2}}} | + | @@@@ | [[source is::@@@@]] | ,  }} 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}}} | + | @@@@ | [[ |
#if:{{{source3|}}} | <br />{{#switch: {{lc: {{{sourcetype3}}} }} | sold by=Sold by {{#arraymap: {{{source3}}} | + | @@@@ | [[source is::@@@@]] | ,  }} 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}}} | + | @@@@ | [[ |
#if:{{{source4|}}} | <br />{{#switch: {{lc: {{{sourcetype4}}} }} | sold by=Sold by {{#arraymap: {{{source4}}} | + | @@@@ | [[source is::@@@@]] | ,  }} 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}}} | + | @@@@ | [[ |
#if:{{{source5|}}} | <br />{{#switch: {{lc: {{{sourcetype5}}} }} | sold by=Sold by {{#arraymap: {{{source5}}} | + | @@@@ | [[source is::@@@@]] | ,  }} 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 }}{{#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'']]}} }}{{ |
|||
⚫ |
Revision as of 04: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.