Template:Nerf: Difference between revisions

From Inkipedia, the Splatoon wiki
(Removed newline that caused ugly spacing in articles.)
(Improved Nerf template so that the stat name can be excluded (causing the colon to not appear). Also overhauled the documentation accordingly.)
 
Line 1: Line 1:
{{color|▼|red}} {{{1}}}{{#if: {{{2|}}} |<nowiki>:</nowiki> {{{2}}} → {{{3|N/A}}}}}<noinclude>
<includeonly>{{color|▼|red}} {{{1}}}{{#if: {{{2|}}}{{{3|}}} |{{#if: {{{1|}}}|<nowiki>: </nowiki>}}{{{2|N/A}}} → {{{3|N/A}}}}}</includeonly><noinclude>
==Documentation==
Indicates a nerf to a weapon, ability, etc.
The first value is the starting text and the only required variable. The other values can be used for a direct comparison of statistics and are optional.</noinclude>
=== Parameters ===
<code><nowiki>{{Nerf|stat|old|new}}</nowiki></code>
{| class="wikitable"
|- style="vertical-align: top;"
|<code>stat</code>||Unnamed, optional.||The stat being changed
|-
|<code>old, new</code>||Unnamed, optional.||The values before / after the change. If "new" is not included, it will default to "N/A"
|}
 
=== Markup ===
<nowiki>{{Nerf|Damage reduced by 10%}}<br />
{{Nerf|Damage|30.0|27.0}}<br />
{{Nerf||30.0|27.0}}<br />
{{Nerf|Shot delay|N/A|4/60 second}}<br />
{{Nerf|Invulnerability time|4/60}}</nowiki>
 
=== Output ===
{{Nerf|Damage reduced by 10%}}<br />
{{Nerf|Damage|30.0|27.0}}<br />
{{Nerf||30.0|27.0}}<br />
{{Nerf|Shot delay|N/A|4/60 second}}<br />
{{Nerf|Invulnerability time|4/60}}
</noinclude>

Latest revision as of 09:30, 16 January 2018

Indicates a nerf to a weapon, ability, etc.

Parameters

{{Nerf|stat|old|new}}

stat Unnamed, optional. The stat being changed
old, new Unnamed, optional. The values before / after the change. If "new" is not included, it will default to "N/A"

Markup

{{Nerf|Damage reduced by 10%}}<br />
{{Nerf|Damage|30.0|27.0}}<br />
{{Nerf||30.0|27.0}}<br />
{{Nerf|Shot delay|N/A|4/60 second}}<br />
{{Nerf|Invulnerability time|4/60}}

Output

Damage reduced by 10%
Damage: 30.0 → 27.0
30.0 → 27.0
Shot delay: N/A → 4/60 second
Invulnerability time: 4/60 → N/A