Template:Perk link: Difference between revisions

From Against the Storm Official Wiki
(Created page with "{{#invoke:PerkLink|renderLink|perk={{{1|}}}|iconsize={{{2|}}}}}<noinclude> This template takes a perk name and turns it into an icon followed by a link to the perk. Use the in-game name of the perk (with or without spaces should work, as the background code contains some deconfliction). The default is the icon size is <code><nowiki>{{ImgS}}</nowiki></code>, or <code>{{ImgS}}</code>, for use in-line with text. You can also use <code>med</code>, <code>large</code>, or <co...")
 
m (added includeonly to help readability on template page itself)
Line 1: Line 1:
{{#invoke:PerkLink|renderLink|perk={{{1|}}}|iconsize={{{2|}}}}}<noinclude>
<includeonly>{{#invoke:PerkLink|renderLink|perk={{{1|}}}|iconsize={{{2|}}}}}</includeonly><noinclude>
 
This template takes a perk name and turns it into an icon followed by a link to the perk. Use the in-game name of the perk (with or without spaces should work, as the background code contains some deconfliction). The default is the icon size is <code><nowiki>{{ImgS}}</nowiki></code>, or <code>{{ImgS}}</code>, for use in-line with text. You can also use <code>med</code>, <code>large</code>, or <code>huge</code>, as you can see below.
This template takes a perk name and turns it into an icon followed by a link to the perk. Use the in-game name of the perk (with or without spaces should work, as the background code contains some deconfliction). The default is the icon size is <code><nowiki>{{ImgS}}</nowiki></code>, or <code>{{ImgS}}</code>, for use in-line with text. You can also use <code>med</code>, <code>large</code>, or <code>huge</code>, as you can see below.



Revision as of 21:02, 25 March 2023

This template takes a perk name and turns it into an icon followed by a link to the perk. Use the in-game name of the perk (with or without spaces should work, as the background code contains some deconfliction). The default is the icon size is {{ImgS}}, or x18px, for use in-line with text. You can also use med, large, or huge, as you can see below.

For example:

{{Perk_link|Metallurgic Proficiency}}
{{Perk_link|Metallurgic Proficiency|med}}
{{Perk_link|Metallurgic Proficiency|large}}
{{Perk_link|Metallurgic Proficiency|huge}}

The Perk_link template requires the ID or name of a perk.

The Perk_link template requires the ID or name of a perk.

The Perk_link template requires the ID or name of a perk.

The Perk_link template requires the ID or name of a perk.