Difference between revisions of "Template:BoostType"
From Paragon Wiki Archive
(Reverting to revision 181245 -- attempt to center icon did not work on FireFox) |
(trying a different approach to center-aligning image icons) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch: {{{type|}}}| none=[[File:E origin generic.png|24px|None]] | #default=[[File:TO Training {{{type}}}.png|24px|{{{type}}}]] | + | <includeonly>{{#switch: {{{type|}}} |
+ | |none=[[File:E origin generic.png|24px|None]] | ||
+ | |#default=<span style="position: relative;"><span style="position: absolute; left: 28px;">{{{amt}}}%</span>[[File:TO Training {{{type}}}.png|24px|{{{type}}}]]</span></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
For use on Incarnate Boost and Incarnate Slot pages for an "at a glance" boost amount. | For use on Incarnate Boost and Incarnate Slot pages for an "at a glance" boost amount. | ||
Line 10: | Line 12: | ||
== Examples == | == Examples == | ||
− | {| class="wikitable" width="50%" | + | {| class="wikitable" width="50%" style="text-align:center;" |
! width="50%" | Input !! width="50%" | Results | ! width="50%" | Input !! width="50%" | Results | ||
|- | |- |
Revision as of 03:53, 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}} | |
{{BoostType|type=Endurance Cost|amt=33}} | 33% |
{{BoostType|type=Fear Duration|amt=33}} | 33% |