Difference between revisions of "Template:Skill"

From LeikaRO wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|style="vertical-align: middle; "
+
<includeonly>{{#if: {{{simple|}}} | {{#if: {{{i|}}} | [[Image:{{{i}}}-icon.png|link={{{i}}}]] | [[Image:{{{n}}}-icon.png|link={{{n}}}]] }} [[{{{n}}}]] {{ #if:{{{v|}}} | Lv. {{{v}}} }} | {{{!}} style="background:none; padding:1px; border-spacing:0px;"
| [[Image:{{{n}}}-icon.png]]
+
{{!}} style="align:center; width:30px; border:none;" {{!}} {{#if: {{{i|}}} | [[Image:{{{i}}}-icon.png|link={{{i}}}]] | [[Image:{{{n}}}-icon.png|link={{{n}}}]] }}
| [[{{{n}}}]]</includeonly>
+
{{!}} style="border:none;" {{!}} [[{{{n}}}]] {{ #if:{{{v|}}} | Lv. {{{v}}} }}
 +
{{!}}}
 +
}}</includeonly>
  
 
<noinclude>'''Purpose:'''
 
<noinclude>'''Purpose:'''
Line 14: Line 16:
 
:''produces''
 
:''produces''
  
:{{skill|n=Sword Mastery}}
+
{{skill|n=Sword Mastery}}
 +
 
  
 
'''Example:'''
 
'''Example:'''
Line 21: Line 24:
 
:''produces''
 
:''produces''
  
:{{skill|n=Sword Mastery|v=5}}
+
{{skill|n=Sword Mastery|v=5}}
:{{skill|n=Reflect Damage|v=3}}
+
 
:{{skill|n=Inspiration|v=3}}
+
:{{skill|n=Bash|v=3}}
+
  
 
[[Category:Templates|Skill]]
 
[[Category:Templates|Skill]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:05, 25 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


Sword Mastery-icon.png Sword Mastery



Example:

{{n=skill | Sword Mastery}|v=5}
produces


Sword Mastery-icon.png Sword Mastery Lv. 5