Template:SkillReq: Difference between revisions

From Melvor Idle
(Hiding the template text on the page.)
(Slight formatting tweaks)
Line 1: Line 1:
Allows for quickly creating skill requirement setups. So for example <nowiki>{{SkillReq|Farming|40}}</nowiki> becomes {{SkillReq|Farming|40}}
Allows for quickly creating skill requirement setups. So for example {{T|SkillReq|Farming|40}} becomes {{SkillReq|Farming|40}}.


<includeonly><onlyinclude>[[File:{{{1}}}_(skill).svg | 25px | {{{1}}}]] '''{{{2}}}'''</onlyinclude></includeonly>
If 'showtext' is set, the name of the skill is also displayed. {{T|SkillReq|Herblore|15|showtext=true}} becomes {{SkillReq|Herblore|15|showtext=true}}
 
<includeonly><onlyinclude><span style="display:inline-block">Lv {{{2}}} [[File:{{{1}}}_(skill).svg | 20px | {{{1}}}]]{{#if:{{{showtext|}}}|&nbsp;[[{{{1}}}]]}}</span></onlyinclude></includeonly>

Revision as of 14:32, 29 September 2020

Allows for quickly creating skill requirement setups. So for example {{SkillReq|Farming|40}} becomes Lv 40 Farming.

If 'showtext' is set, the name of the skill is also displayed. {{SkillReq|Herblore|15|showtext=true}} becomes Lv 15 Herblore Herblore