« Modèle:Buff » : différence entre les versions
De Inkipédia
Improved Buff template so that the stat name can be excluded (causing the colon to not appear). Also overhauled the documentation accordingly.
m (1 révision importée) |
FRInki>Inkrid (Improved Buff template so that the stat name can be excluded (causing the colon to not appear). Also overhauled the documentation accordingly.) |
||
Ligne 1 : | Ligne 1 : | ||
{{color|▲|green}} {{{1}}}{{#if: {{{2|}}} |<nowiki>:</nowiki> {{{2}}} → {{{3|N/A}}}}} | <includeonly>{{color|▲|green}} {{{1}}}{{#if: {{{2|}}}{{{3|}}} |{{#if: {{{1|}}}|<nowiki>: </nowiki>}}{{{2|N/A}}} → {{{3|N/A}}}}}</includeonly><noinclude> | ||
<noinclude> | Indicates a buff to a weapon, ability, etc. | ||
== | === Parameters === | ||
The | <code><nowiki>{{Buff|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>{{Buff|Damage increased by 10%}}<br /> | |||
{{Buff|Damage|30.0|33.0}}<br /> | |||
{{Buff||30.0|33.0}}<br /> | |||
{{Buff|Invulnerability time|N/A|4/60}}<br /> | |||
{{Buff|Shot delay|4/60 second}}</nowiki> | |||
=== Output === | |||
{{Buff|Damage increased by 10%}}<br /> | |||
{{Buff|Damage|30.0|33.0}}<br /> | |||
{{Buff||30.0|33.0}}<br /> | |||
{{Buff|Invulnerability time|N/A|4/60}}<br /> | |||
{{Buff|Shot delay|4/60 second}} | |||
</noinclude> |