Template:PerkSmallIconBorder: Difference between revisions

From Against the Storm Official Wiki
(Created page with "<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|32x32px]]</span></includeonly><noinclude> Fills in a <nowiki>File:example.jpg</nowiki> 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: <nowiki><includeonly><span style="color: {{#if:{{{1|}}}|{{{1}}}|red}};">{{{2}}}</span></includeonly></nowiki>Purple Perk...")
 
m (icon needed to be a little larger)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|32x32px]]</span></includeonly><noinclude>
<includeonly><span style="display:inline-block; border: 3px solid {{{1}}};">[[{{{2}}}|{{ImgM}}]]</span></includeonly><noinclude>
Fills in a <nowiki>[[File:example.jpg]]</nowiki> 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: <nowiki><includeonly><span style="color: {{#if:{{{1|}}}|{{{1}}}|red}};">{{{2}}}</span></includeonly></nowiki>Purple Perk color is ##7f27b9 which is closest to CSS standard 'DarkOrchid'. Blue Perk color is #015db9 which is closest to 'DodgerBlue'. Green Perk color is #15cf00 which is closest to 'LimeGreen'.</noinclude>
 
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.
 
This template makes a small icon. For larger icons, use [[Template:PerkIconBorder]].
 
For example, <code><nowiki>{{PerkSmallIconBorder|{{PerkGreen}}|File:question_mark.png}}</nowiki></code> produces:
 
{{PerkSmallIconBorder|{{PerkGreen}}|File:question_mark.png}}
 
* 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:35, 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.

This template makes a small icon. For larger icons, use Template:PerkIconBorder.

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

Question mark.png