Template:WeaponProperties: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
(added support for multiple weights)
Line 34: Line 34:
| '''Metal:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#switch: {{lc: {{{metal|}}} }} | yes|y= [[is metal::true|Yes]] | no|n= [[is metal::false|No]] | [[missing::Infobox entry for metal|''Unknown'']]}}
| '''Metal:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#switch: {{lc: {{{metal|}}} }} | yes|y= [[is metal::true|Yes]] | no|n= [[is metal::false|No]] | [[missing::Infobox entry for metal|''Unknown'']]}}
|-
|-
| '''Weight:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#if: {{{weight|}}} | [[weight of::{{{weight}}}]] stones | [[missing::Infobox entry for weight|''Unknown'']]}}
{{!}} '''Weight:''' || {{#if:{{{puncture2|}}}{{{slice2|}}}{{{impact2|}}}{{{balance2|}}}{{{suitability2|}}} | {{#if:{{{puncture3|}}}{{{slice3|}}}{{{impact3|}}}{{{balance3|}}}{{{suitability3|}}} | colspan="3"{{!}} | colspan="2" {{!}} }} }}{{#if: {{{weight|}}} | {{#arraymap:{{{weight}}}|,|x|[[weight of::x]]|, }} stones | [[missing::Infobox entry for weight|''Unknown'']]}}
</includeonly><noinclude>A plug in for [[Template:Weapon|Weapon template]].{{cat|templates,Templates for Templates}}</noinclude>
</includeonly><noinclude>A plug in for [[Template:Weapon|Weapon template]].{{cat|templates,Templates for Templates}}</noinclude>

Revision as of 05:05, 28 March 2010

A plug in for Weapon template.