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:NumEnhs"

From Paragon Wiki Archive
Jump to: navigation, search
(fixing placement of noinclude tag so that it doesn't add a newline to the output)
m (more efficient parser function call)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1}}}|0=No|1=One|2=Two|3=Three|4=Four|5=Five|6=Six}} enhancement{{#ifexpr: ({{{1}}})!=1|s}}<noinclude>
+
<includeonly>{{#switch:{{{1}}}|0=No|1=One|2=Two|3=Three|4=Four|5=Five|6=Six}} {{#ifeq:{{{1}}}|1|enhancement|enhancements}}</includeonly><noinclude>{{documentation}}</noinclude>
 
+
[[Category:Invention System Templates]]</noinclude>
+

Latest revision as of 23:19, 29 December 2010

[edit] [purge] Documentation

Usage

Provides textual representation for a number of enhancements. Primarily intended for use within {{Set Bonus}}. Can be called in one of seven ways:

Template call Result
{{NumEnhs|0}} No enhancements
{{NumEnhs|1}} One enhancement
{{NumEnhs|2}} Two enhancements
{{NumEnhs|3}} Three enhancements
{{NumEnhs|4}} Four enhancements
{{NumEnhs|5}} Five enhancements
{{NumEnhs|6}} Six enhancements