Template:SkillReq: Difference between revisions

From Melvor Idle
(New template for making inline skill reqs easier.)
 
No edit summary
 
(5 intermediate revisions by 3 users 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}}
<includeonly><onlyinclude><span style="display:inline-block">{{#invoke:Icons|SkillRealmIcon|{{{1}}}|size=20}}{{#if:{{{showtext|}}}|&nbsp;[[{{{1}}}]]}} Level {{{2}}}</span></onlyinclude></includeonly><noinclude>{{/doc}}</noinclude>
 
<onlyinclude>[[File:{{{1}}}_(skill).svg | 25px | {{{1}}}]] '''{{{2}}}'''</onlyinclude>

Latest revision as of 12:18, 30 June 2024

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

Error creating thumbnail: File missing
Level 40

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

Error creating thumbnail: File missing
 Herblore Level 15