Template:Skill icon: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[ | <includeonly>[[{{#ifexist: File:{{{1}}} icon.png|{{{1}}} icon.png|{{#ifexist: File:{{{1}}} icon.gif|{{{1}}} icon.gif|missing icon.png}}}}|{{#switch:{{{2}}}|big=50|huge=100|#default=32}}px|link={{#if:{{{3|}}}|{{{3}}}|{{{1}}}}}]] [[{{#if:{{{3|}}}|{{{3}}}{{!}}{{{1}}}|{{{1}}}}}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
<pre>{{skill icon|<skill name>|<size>|<alternate page link>}}</pre> | <pre>{{skill icon|<skill name>|<size>|<alternate page link>}}</pre> |
Revision as of 19:28, 10 February 2025
Description
{{skill icon|<skill name>|<size>|<alternate page link>}}
Displays a link to the skill and adds a skill icon in front of it.
Parameters
- 1 (unnamed parameter)
- Skill name.
- 2 (unnamed parameter)
- Icon size. Options: "big" (48px), "huge" (100px), or, blank (32px) - which is the default size.
- 3 (unnamed parameter)
- Alternate page link. Include if skill needs disambiguation from another page (e.g. the Paladin Hammer skill should not link to the Hammer item page).
Examples
- 32px|link=Magic Defense Magic Defense is produced from
{{skill icon|Magic Defense}}
- 50px|link=Magic Defense Magic Defense is produced from
{{skill icon|Magic Defense|big}}
- 100px|link=Magic Defense Magic Defense is produced from
{{skill icon|Magic Defense|huge}}
- 32px|link=Revive Revive is produced from
{{skill icon|Revive}}
- 32px|link=Teleport Teleport is produced from
{{skill icon|Teleport}}
- 32px|link=Visit Visit is produced from
{{skill icon|Visit}}
- 32px|link=Invite Invite is produced from
{{skill icon|Invite}}
- 32px|link=Party Recall Party Recall is produced from
{{skill icon|Party Recall}}
- 32px|link=Hammer (skill) Hammer is produced from
{{skill icon|Hammer||Hammer (skill)}}
- 32px|link=Manufacture Manufacture is produced from
{{skill icon|Manufacture}}
TODO:
- Add {{#if}} to include article link or only icon.
- May not worry about this. Might be necessary to include article link each time a skill is referenced.