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

From Paragon Wiki Archive
Jump to: navigation, search
m
(using {{CenterAlignIcon}})
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{type|none}}}| [[File:E origin generic.png|24px|None]] | [[File:TO Training {{{1}}}.png|24px|{{{2}}}]] {{{3}}}%}}<noinclude>[[Category:Incarnate System Templates]]</noinclude>
+
<includeonly>{{#switch: {{{type|}}}
 +
|none=[[File:E origin generic.png|24px|None]]
 +
|#default={{CenterAlignIcon|width=24|text={{{amt}}}%|image=File:TO Training {{{type}}}.png|hover={{{type}}} }} }}</includeonly><noinclude>
 +
== Usage ==
 +
For use on Incarnate Boost and Incarnate Slot pages for an "at a glance" boost amount.
 +
 
 +
One required variable, plus one:
 +
* '''type''' = The type of boost. '''Required.'''
 +
**If none (e.g. a boost with no secondary or tertiary component), use ''none''.
 +
**Otherwise, use the enhancement value name from the [[:Category:Training Generic Enhancement Icons|TO Icons]] category, preserving proper capitalization.
 +
* '''amt''' = If '''type''' is not ''none'', the amount of percentage boost, minus the percent symbol.
 +
 
 +
== Examples ==
 +
{| class="wikitable" width="50%" style="text-align:center;"
 +
! width="50%" | Input !! width="50%" | Results
 +
|-
 +
|<nowiki>{{BoostType|type=none}}</nowiki> || {{BoostType|type=none}}
 +
|-
 +
| <nowiki>{{BoostType|type=Endurance Cost|amt=33}}</nowiki> || {{BoostType|type=Endurance Cost|amt=33}}
 +
|-
 +
| <nowiki>{{BoostType|type=Fear Duration|amt=33}}</nowiki> || {{BoostType|type=Fear Duration|amt=33}}
 +
|}
 +
[[Category:Incarnate System Templates]]</noinclude>

Latest revision as of 03:58, 15 November 2010

Usage

For use on Incarnate Boost and Incarnate Slot pages for an "at a glance" boost amount.

One required variable, plus one:

  • type = The type of boost. Required.
    • If none (e.g. a boost with no secondary or tertiary component), use none.
    • Otherwise, use the enhancement value name from the TO Icons category, preserving proper capitalization.
  • amt = If type is not none, the amount of percentage boost, minus the percent symbol.

Examples

Input Results
{{BoostType|type=none}} None
{{BoostType|type=Endurance Cost|amt=33}} 33%Endurance Cost
{{BoostType|type=Fear Duration|amt=33}} 33%Fear Duration