Template:SkillReq: Difference between revisions

From Melvor Idle
(New template for making inline skill reqs easier.)
 
(link image to skill page)
 
(3 intermediate revisions by one other user not shown)
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}}.


<onlyinclude>[[File:{{{1}}}_(skill).svg | 25px | {{{1}}}]] '''{{{2}}}'''</onlyinclude>
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">[[File:{{{1}}}_(skill).svg | 20px | {{{1}}} | link={{{1}}}]]{{#if:{{{showtext|}}}|&nbsp;[[{{{1}}}]]}} Level {{{2}}}</span></onlyinclude></includeonly>

Latest revision as of 05:17, 22 March 2021

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

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