Template:EnhEffectRow: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Lin Chiao Feng (historical)
No edit summary
imported>Lin Chiao Feng (historical)
No edit summary
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
! {{{type}}}<!--
! {{{type}}}
-->{{#if: {{{1|}}}|{{!!}} {{#ifexpr: ({{{1}}})>=0|+}}{{{1}}}% }}<!--
{{#if: {{{1|}}}|{{!!}} {{#ifexpr: ({{{1}}})>=0|+}}{{{1}}}% }}<!--
-->{{#if: {{{2|}}}|{{!!}} {{#ifexpr: ({{{2}}})>=0|+}}{{{2}}}% }}<!--
-->{{#if: {{{2|}}}|{{!!}} {{#ifexpr: ({{{2}}})>=0|+}}{{{2}}}% }}<!--
-->{{#if: {{{3|}}}|{{!!}} {{#ifexpr: ({{{3}}})>=0|+}}{{{3}}}% }}<!--
-->{{#if: {{{3|}}}|{{!!}} {{#ifexpr: ({{{3}}})>=0|+}}{{{3}}}% }}<!--
Line 20: Line 20:


== Example ==
== Example ==
<pre>{|
<pre>{| class="wikitable"
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
|}
|}
</pre>
</pre>
{|
{| class="wikitable"
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
|}
|}


</noinclude>
</noinclude>

Revision as of 13:14, 27 April 2007

This template renders a row of an enhancement effects table.

The type parameter names the row (i.e. effect type).

Up to 12 unnamed parameters can be given for the row's columns. These values will be prefixed with a '+' if positive, and suffixed with '%'.

Example

{| class="wikitable"
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
|}
Accuracy -1% +0% +1% +2%