Template:Infobox Weapon: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<!-- Requires ParserFunctions --> | |||
<table class="infobox infobox-weapon" style="width:320px"> | |||
<caption>{{{title|{{PAGENAME}}}}}</caption> | |||
| | <!-- IMAGE --> | ||
| colspan="2" class="infobox-weapon-image" style="text-align:center; padding:.4em .6em;" | {{#if: {{{image|}}} | ||
| <tr> | |||
<td colspan="2" class="infobox-weapon-image" style="text-align:center; padding:.4em .6em;"> | |||
}} | [[File:{{{image}}}|frameless|center|300px|link={{{link|}}}]] | ||
</td> | |||
</tr> | |||
}} | |||
{{#if: {{{type|}}} | <!-- SIMPLE FIELDS --> | ||
| | {{#if: {{{type|}}} | <tr><th>Type</th> <td>{{{type}}}</td></tr> }} | ||
{{#if: {{{rarity|}}} | <tr><th>Rarity</th> <td>{{{rarity}}}</td></tr> }} | |||
| {{{ | {{#if: {{{slot|}}} | <tr><th>Slot</th> <td>{{{slot}}}</td></tr> }} | ||
}} | {{#if: {{{ammo|}}} | <tr><th>Ammo</th> <td>{{{ammo}}}</td></tr> }} | ||
{{#if: {{{source|}}} | <tr><th>Source</th> <td>{{{source}}}</td></tr> }} | |||
{{#if: {{{cost|}}} | <tr><th>Cost</th> <td>{{{cost}}}</td></tr> }} | |||
{{#if: {{{first|}}} | <tr><th>First appearance</th><td>{{{first}}}</td></tr> }} | |||
{{#if: {{{ | <!-- STATS WITH OPTIONAL BARS --> | ||
| | {{#if: {{{damage|}}} | ||
| <tr><th>Damage</th> | |||
| {{{ | <td><div class="statline"><span class="statnum">{{{damage}}}</span>{{#if: {{{damage_pct|}}} | <div class="statbar"><div class="statbar__fill" style="width:{{{damage_pct}}}%"></div></div> }}</div></td> | ||
}} | </tr> | ||
}} | |||
{{#if: {{{rof|}}} | |||
| <tr><th>Rate of fire</th> | |||
<td><div class="statline"><span class="statnum">{{{rof}}}</span>{{#if: {{{rof_pct|}}} | <div class="statbar"><div class="statbar__fill" style="width:{{{rof_pct}}}%"></div></div> }}</div></td> | |||
</tr> | |||
}} | |||
{{#if: {{{sustain|}}} | |||
| <tr><th>Sustained DPS</th> | |||
<td><div class="statline"><span class="statnum">{{{sustain}}}</span>{{#if: {{{sustain_pct|}}} | <div class="statbar"><div class="statbar__fill" style="width:{{{sustain_pct}}}%"></div></div> }}</div></td> | |||
</tr> | |||
}} | |||
{{#if: {{{magazine|}}} | <tr><th>Magazine</th> <td>{{{magazine}}}</td></tr> }} | |||
{{#if: {{{reload|}}} | <tr><th>Reload</th> <td>{{{reload}}}</td></tr> }} | |||
{{#if: {{{recoil|}}} | |||
| <tr><th>Recoil</th> | |||
<td><div class="statline"><span class="statnum">{{{recoil}}}</span>{{#if: {{{recoil_pct|}}} | <div class="statbar"><div class="statbar__fill" style="width:{{{recoil_pct}}}%"></div></div> }}</div></td> | |||
</tr> | |||
}} | |||
{{#if: {{{proj_speed|}}} | <tr><th>Projectile speed</th><td>{{{proj_speed}}}</td></tr> }} | |||
{{#if: {{{ | <!-- UPGRADES --> | ||
| | {{#if: {{{upgrade_name|}}} | ||
| <tr><th>Upgrade</th> | |||
| {{{ | <td>'''{{{upgrade_name}}}'''{{#if: {{{upgrade_cost|}}}| – {{{upgrade_cost}}}}}{{#if: {{{upgrade_note|}}}|<br/>{{{upgrade_note}}}}}</td> | ||
}} | </tr> | ||
}} | |||
{{#if: {{{alt_upgrades|}}} | <tr><th>Alt upgrades</th> <td>{{{alt_upgrades}}}</td></tr> }} | |||
{{#if: {{{ | <!-- NOTES --> | ||
{{#if: {{{notes|}}} | <tr><th>Notes</th> <td>{{{notes}}}</td></tr> }} | |||
| {{{ | |||
}} | |||
</table> | |||