Difference between revisions of "Template:Skill"
From LeikaRO wiki
Line 1: | Line 1: | ||
+ | <includeonly>{{#if: {{{simple|}}} | {{#if: {{{i|}}} | [[Image:{{{i}}}-icon.png|link={{{i}}}]] | [[Image:{{{n}}}-icon.png|link={{{n}}}]] }} [[{{{n}}}]] {{ #if:{{{v|}}} | Nv. {{{v}}} }} | {{{!}} style="background:none; padding:1px; border-spacing:0px;" | ||
+ | {{!}} style="align:center; width:30px; border:none;" {{!}} {{#if: {{{i|}}} | [[Image:{{{i}}}-icon.png|link={{{i}}}]] | [[Image:{{{n}}}-icon.png|link={{{n}}}]] }} | ||
+ | {{!}} style="border:none;" {{!}} [[{{{n}}}]] {{ #if:{{{v|}}} | nv. {{{v}}} }} | ||
+ | {{!}}} | ||
+ | }}</includeonly> | ||
+ | |||
<noinclude>'''Purpose:''' | <noinclude>'''Purpose:''' | ||
:To create create a link to a skill page including the skill icon to the left of the link. | :To create create a link to a skill page including the skill icon to the left of the link. | ||
Line 4: | Line 10: | ||
'''Usage:''' | '''Usage:''' | ||
:This template accepts only one argument, the name of the skill. | :This template accepts only one argument, the name of the skill. | ||
+ | |||
'''Example:''' | '''Example:''' | ||
:<nowiki>{{skill | Sword Mastery}}</nowiki> | :<nowiki>{{skill | Sword Mastery}}</nowiki> | ||
+ | |||
:''produces'' | :''produces'' | ||
+ | |||
:{{skill | Sword Mastery}} | :{{skill | Sword Mastery}} | ||
+ | |||
+ | :{{skill|n=Sword Mastery|v=5}} | ||
+ | |||
[[Category:Templates|Skill]] | [[Category:Templates|Skill]] | ||
− | </noinclude | + | </noinclude> |
− | + | ||
− | + | ||
− | + |
Revision as of 05:56, 12 December 2021
Purpose:
- To create create a link to a skill page including the skill icon to the left of the link.
Usage:
- This template accepts only one argument, the name of the skill.
Example:
- {{skill | Sword Mastery}}
- produces
[[Image:{{{n}}}-icon.png|link={{{n}}}]] | [[{{{n}}}]] |
Sword Mastery Lv. 5 |