Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:EnhEffectRow"

From Paragon Wiki Archive
Jump to: navigation, search
(Enhancement effects table row)
 
m (using {{Documentation}})
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>|-
 
<includeonly>|-
 
! {{{type}}}
 
! {{{type}}}
-->{{#if: {{{1|}}}|{{!!}} {{#ifexpr: ({{{1}}})>=0|+}}{{{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 12: Line 12:
 
-->{{#if: {{{10|}}}|{{!!}} {{#ifexpr: ({{{10}}})>=0|+}}{{{10}}}% }}<!--
 
-->{{#if: {{{10|}}}|{{!!}} {{#ifexpr: ({{{10}}})>=0|+}}{{{10}}}% }}<!--
 
-->{{#if: {{{11|}}}|{{!!}} {{#ifexpr: ({{{11}}})>=0|+}}{{{11}}}% }}<!--
 
-->{{#if: {{{11|}}}|{{!!}} {{#ifexpr: ({{{11}}})>=0|+}}{{{11}}}% }}<!--
-->{{#if: {{{12|}}}|{{!!}} {{#ifexpr: ({{{12}}})>=0|+}}{{{12}}}% }}</includeonly><noinclude>
+
-->{{#if: {{{12|}}}|{{!!}} {{#ifexpr: ({{{12}}})>=0|+}}{{{12}}}% }}</includeonly><noinclude>{{Documentation}}</noinclude>
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 ==
+
<pre>{|
+
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
+
|}
+
</pre>
+
{|
+
{{EnhEffectRow|type=Accuracy|-1|0|1|2}}
+
|}
+
 
+
</noinclude>
+

Latest revision as of 07:03, 20 February 2008

[edit] [purge] Documentation

Overview

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|-4|-3|-2|-1|0|1|2|3|4}}
|}
Accuracy -4% -3% -2% -1% +0% +1% +2% +3% +4%