Template:PerkIconBorder: Difference between revisions

From Against the Storm Official Wiki
m (better formatting for the template page itself)
m (now also suggests the smaller icon version)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|64x64px]]</span></includeonly><noinclude>
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|{{ImgH}}]]</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 with the first argument for the Perk as seen in-game.


Based on MediaWiki Formatting Template: <code><nowiki><includeonly><span style="color: {{#if:{{{1|}}}|{{{1}}}|red}};">{{{2}}}</span></includeonly></nowiki></code>
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.


Purple Perk color is <code>#7f27b9</code> which is closest to CSS standard 'DarkOrchid'.
For a smaller icon, use [[Template:PerkSmallIconBorder]].


Blue Perk color is <code>#015db9</code> which is closest to 'DodgerBlue'.
For example, <code><nowiki>{{PerkIconBorder|{{PerkGreen}}|File:question_mark.png}}</nowiki></code> produces:


Green Perk color is <code>#15cf00</code> which is closest to 'LimeGreen'.
{{PerkIconBorder|{{PerkGreen}}|File:question_mark.png}}


Orange Perk color is <code>#da6d00</code> which is closest to 'Chocolate' don't let the name fool you it's actually orangeish.</noinclude>
* Green Perk color is defined by [[Template:PerkGreen]].
* Blue Perk color is defined by [[Template:PerkBlue]].
* Purple Perk color is defined by [[Template:PerkPurple]].
* Orange Perk color is defined by [[Template:PerkOrange]].
 
[[Category:Templates/Formatting]]</noinclude>

Latest revision as of 03:28, 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 a smaller icon, use Template:PerkSmallIconBorder.

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

Question mark.png