Template:Skill icon: Difference between revisions

From FHX Wiki
No edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{Page warning|message=This template is in draft.}}</noinclude>
<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 ==
<pre>{{skill icon|<skill name>}}</pre>
<pre>{{skill icon|<skill name>}}</pre>

Revision as of 22:28, 20 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


TODO:

  • Can file pages have (skill) in the name? I believe () normally isn't allowed in windows file naming.
    • If so, I'd like to figure out how to exclude (skill) from the displayed article link (e.g. Hammer or Hammer)
    • [[{{{1}}}|]] doesn't seem to work via template code, but works in the above example. Also tried | and {{!}}.
    • Consider adding (skill) for all skill articles. [[{{{1}}} (skill)|{{{1}}}]]
  • 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.
  • 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