Template:Skill icon: Difference between revisions
m (→Examples) |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{Page warning|message=This template is in draft.}}</noinclude> | |||
<includeonly>[[File:{{{1}}} icon.png|{{#switch:{{{2}}}|big=50|huge=100|#default=32}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude> | <includeonly>[[File:{{{1}}} icon.png|{{#switch:{{{2}}}|big=50|huge=100|#default=32}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
Line 16: | Line 17: | ||
* {{skill icon|Magic Defense|huge}} is produced from <code><nowiki>{{skill icon|Magic Defense|huge}}</nowiki></code> | * {{skill icon|Magic Defense|huge}} is produced from <code><nowiki>{{skill icon|Magic Defense|huge}}</nowiki></code> | ||
TODO: | |||
'''TODO''': | |||
* Add {{#if}} to include article link or only icon. | * Add {{#if}} to include article link or only icon. | ||
* Import all skill icon image files (need to get export) | * Import all skill icon image files (need to get export) | ||
** At least start with Teleport, Visit, Invite, Party Recall, and Revive as they are commonly referenced | |||
</noinclude> | </noinclude> |
Revision as of 09:21, 15 June 2024
Warning:
Description
{{skill icon|<skill name>}}
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.
Examples
Magic Defense is produced from {{skill icon|Magic Defense}}
Magic Defense is produced from {{skill icon|Magic Defense|big}}
Magic Defense is produced from {{skill icon|Magic Defense|huge}}
TODO:
- Add {{#if}} to include article link or only icon.
- Import all skill icon image files (need to get export)
- At least start with Teleport, Visit, Invite, Party Recall, and Revive as they are commonly referenced