Template:UpgradeIcon: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) m (whoops typo) |
Falterfire (talk | contribs) (Added link override.) |
||
Line 1: | Line 1: | ||
A template for quickly building upgrade links with icons. For example, <nowiki>{{UpgradeIcon|Dragon Pickaxe}}</nowiki> becomes {{UpgradeIcon|Dragon Pickaxe}} | A template for quickly building upgrade links with icons. For example, <nowiki>{{UpgradeIcon|Dragon Pickaxe}}</nowiki> becomes {{UpgradeIcon|Dragon Pickaxe}} | ||
Also allows for overriding the link text with a second argument. For example, <nowiki>{{UpgradeIcon|Dragon Axe|The Best Axe}}</nowiki> becomes {{UpgradeIcon|Dragon Axe|The Best Axe}} | |||
<onlyinclude>[[File:{{{1}}} (upgrade).svg|25px|link={{{1}}}]] [[{{{1}}}]]</onlyinclude> | |||
<onlyinclude>{{#if:{{{2|}}}|[[File:{{{1}}} (upgrade).svg|25px|link={{{1}}}]] [[{{{1}}}|{{{2}}}]]|[[File:{{{1}}} (upgrade).svg|25px|link={{{1}}}]] [[{{{1}}}]]}}</onlyinclude> |
Revision as of 14:21, 10 August 2020
A template for quickly building upgrade links with icons. For example, {{UpgradeIcon|Dragon Pickaxe}} becomes Dragon Pickaxe
Also allows for overriding the link text with a second argument. For example, {{UpgradeIcon|Dragon Axe|The Best Axe}} becomes The Best Axe
[[File:{{{1}}} (upgrade).svg|25px|link={{{1}}}]] [[{{{1}}}]]