Template:PerkIconBorder: Difference between revisions

From Against the Storm Official Wiki
(Updated with references to standard color templates)
m (added category)
Line 1: Line 1:
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|{{ImgH}}]]</span></includeonly><noinclude>
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|{{ImgM}}]]</span></includeonly><noinclude>
Fills in a <code><nowiki>[[File:example.jpg]]</nowiki></code> media tag with the second argument and surrounds it with the provided border color from the first argument. Use the appropriate color template:
Surrounds a <code><nowiki>[[File:]]</nowiki></code> media tag with a border the color of a perk. The first argument specifies the color; the second argument is the icon filename. Use the appropriate color template.


* Green Perk color is defined by [[Template:PerkGreen]]. For example, <code><nowiki>{{Perk|{{PerkGreen}}|File:example.png}}</nowiki></code>.
For example, <code><nowiki>{{Perk|{{PerkGreen}}|File:question_mark.png}}</nowiki></code> produces:
 
{{Perk|{{PerkGreen}}|File:question_mark.png}}
 
* Green Perk color is defined by [[Template:PerkGreen]].
* Blue Perk color is defined by [[Template:PerkBlue]].
* Blue Perk color is defined by [[Template:PerkBlue]].
* Purple Perk color is defined by [[Template:PerkPurple]].
* Purple Perk color is defined by [[Template:PerkPurple]].
* Orange Perk color is defined by [[Template:PerkOrange]].</noinclude>
* Orange Perk color is defined by [[Template:PerkOrange]].
 
[[Category:Templates/Formatting]]</noinclude>

Revision as of 03:20, 2 October 2024

Surrounds a [[File:]] media tag with a border the color of a perk. The first argument specifies the color; the second argument is the icon filename. Use the appropriate color template.

For example, {{Perk|{{PerkGreen}}|File:question_mark.png}} produces:

Question mark.png