Template:NumEnhs: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Lin Chiao Feng
(New page: {{#switch:{{{1}}}|0=No|1=One|2=Two|3=Three|4=Four|5=Five|6=Six}} enhancement{{#ifexpr: ({{{1}}})!=1|s}})
 
imported>Sekoia
m (more efficient parser function call)
 
(3 intermediate revisions by 2 users 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}}
<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>

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