Template:Infobox Weapon: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- Requires ParserFunctions --> | |||
<!-- Optional: set the page image for search/preview, but don't break if empty --> | |||
<div style="display:none">{{#if:{{{image|}}}|{{#pageimage:{{{image}}}}}}}</div> | |||
{{#if: {{{image|}}} | |||
}} | |||
{{# | <!-- Responsive / demo-safe wrapper --> | ||
|- | <div class="infobox-weapon-wrap" | ||
style="{{#ifeq:{{{demo|0}}}|1 | |||
| {{{ | |float:none;clear:both;margin:0 0 1em 0;max-width:520px; | ||
}} | |{{#switch:{{{float|right}}} | ||
| none = float:none;clear:both;margin:0 0 1em 0; | |||
| left = float:left; margin:0 1em 1em 0; | |||
| #default = float:right; margin:0 0 1em 1em; | |||
}}max-width:320px;}}"> | |||
<table class="infobox infobox-weapon" style="width:100%"> | |||
<caption>{{{title|{{PAGENAME}}}}}</caption> | |||
| {{ | |||
}} | |||
{{#if: {{{ | <!-- IMAGE --> | ||
|- | {{#if: {{{image|}}} | ||
| <tr> | |||
| {{{ | <td colspan="2" class="infobox-weapon-image" style="text-align:center; padding:.4em .6em;"> | ||
}} | [[File:{{{image}}}|frameless|center|300px|link={{{link|{{PAGENAME}}}}}]] | ||
</td> | |||
</tr> | |||
}} | |||
{{#if: {{{ | <!-- 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: {{{bullet|}}} | <tr><th>Bullet</th> <td>{{{bullet}}}</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 (bars can be disabled with bars=0) --> | ||
| | {{#if: {{{damage|}}} | ||
| <tr><th>Damage</th> | |||
| {{{ | <td> | ||
}} | <div class="statline"> | ||
<span class="statnum">{{{damage}}}</span> | |||
{{#ifeq:{{{bars|1}}}|1|{{#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> | |||
{{#ifeq:{{{bars|1}}}|1|{{#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> | |||
{{#ifeq:{{{bars|1}}}|1|{{#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> | |||
{{#ifeq:{{{bars|1}}}|1|{{#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>Beastmode</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> | |||
</div> | |||
Latest revision as of 14:09, 6 September 2025