Difference between revisions of "Template talk:Ability"
(usage) |
m (→Usage guide) |
||
Line 1: | Line 1: | ||
==Usage guide== | ==Usage guide== | ||
<nowiki>{{</nowiki>Ability|[name]|[color ''optional'']}} | <big><nowiki>{{</nowiki>Ability|[name]|[color ''optional'']}}</big> | ||
This template used [[:Template:ItemDisplay]]/[[:Template:Bditem]] to create an info box for an ability. All ability details are hard-coded into the template. | This template used [[:Template:ItemDisplay]]/[[:Template:Bditem]] to create an info box for an ability. All ability details are hard-coded into the template. |
Latest revision as of 20:23, 5 June 2017
Usage guide[edit]
{{Ability|[name]|[color optional]}}
This template used Template:ItemDisplay/Template:Bditem to create an info box for an ability. All ability details are hard-coded into the template.
First option must be the name of an ability, with punctuation/case sensitive. "Shhhhhhhhh..." can be called with "Shh" because lots of 'h's can be hard to keep track of. If this is missing or wrong the template returns nothing.
Second option is optional, and can be used to change the colour of the coloured parts of the template. This can make it, for example, match the arena colour-coding on a battledome challenger page. It can take hexadecimal colours (with the #), rgb() values, or rgba() values.
Example 1:
{{Ability|Warlock's Rage|#00ccff}}
Example 2:
{{Ability|Summon Monoceraptor|rgba(255,0,0,0.2)}}