Template:Skill icon: Difference between revisions

From FHX Wiki
No edit summary
Line 16: Line 16:
* {{skill icon|Magic Defense|big}} is produced from <code><nowiki>{{skill icon|Magic Defense|big}}</nowiki></code>
* {{skill icon|Magic Defense|big}} is produced from <code><nowiki>{{skill icon|Magic Defense|big}}</nowiki></code>
* {{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>
* {{skill icon|Revive}} is produced from <code><nowiki>{{skill icon|Revive}}</nowiki></code>
* {{skill icon|Teleport}} is produced from <code><nowiki>{{skill icon|Teleport}}</nowiki></code>
* {{skill icon|Visit}} is produced from <code><nowiki>{{skill icon|Visit}}</nowiki></code>
* {{skill icon|Invite}} is produced from <code><nowiki>{{skill icon|Invite}}</nowiki></code>
* {{skill icon|Party Recall}} is produced from <code><nowiki>{{skill icon|Party Recall}}</nowiki></code>





Revision as of 02:17, 16 June 2024

Warning:
This template is in draft.


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}}

File:Revive icon.png Revive is produced from {{skill icon|Revive}}

File:Teleport icon.png Teleport is produced from {{skill icon|Teleport}}

File:Visit icon.png Visit is produced from {{skill icon|Visit}}

File:Invite icon.png Invite is produced from {{skill icon|Invite}}

File:Party Recall icon.png Party Recall is produced from {{skill icon|Party Recall}}


TODO:

  • Add {{#if}} to include article link or only icon.
  • Import all skill icon image files (Skill Name icon.png)
    • need to get export
    • At least start with Teleport, Visit, Invite, Party Recall, and Revive as they are commonly referenced