Template:Skill icon: Difference between revisions

From FHX Wiki
(Created page with "<includeonly>[[File:{{{1}}} icon.png|{{#switch:{{{2}}}|big=50|huge=100|#default=32}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude> == Description == <pre>{{skill icon|<skill name>}}</pre> 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 == * {{skil...")
 
Line 16: Line 16:
* {{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: Add {{#if}} to include article link or only icon.
TODO:  
 
* Add {{#if}} to include article link or only icon.
* Import all skill icon image files (need to get export)
</noinclude>
</noinclude>

Revision as of 09:19, 15 June 2024

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

TODO:

  • Add {{#if}} to include article link or only icon.
  • Import all skill icon image files (need to get export)