Template:Infobox weapon: Difference between revisions

Template: infobox weapon
 
Drop the preset field; the cost label links to how costs work
Line 14: Line 14:
{{#if:{{{cost|}}}|
{{#if:{{{cost|}}}|
{{!}}-
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Cost
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} [[Classes#Items cost points|Cost]]
{{!}} style="padding:4px 6px;" {{!}} {{{cost}}}
{{!}} style="padding:4px 6px;" {{!}} {{{cost}}}
}}
{{#if:{{{classes|}}}|
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Default for
{{!}} style="padding:4px 6px;" {{!}} {{{classes}}}
}}
}}
{{#if:{{{stats|}}}|
{{#if:{{{stats|}}}|
Line 37: Line 32:
| type = Hitscan
| type = Hitscan
| cost = Free
| cost = Free
| classes = [[Trooper]]
| stats =
| stats =
{{Stat row|Damage|18}}
{{Stat row|Damage|18}}
Line 49: Line 43:
* <code>type</code>: type
* <code>type</code>: type
* <code>cost</code>: cost
* <code>cost</code>: cost
* <code>classes</code>: default for


Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>.
Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>.