Template:MasteryReq: Difference between revisions

From Melvor Idle
(New template for mastery requirements.)
 
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Template for quickly including in-line Mastery requirements (similar to [[Template:SkillReq]]).
<includeonly><onlyinclude><span style="display:inline-block;">{{Icon|{{{1|}}}|type={{{type|item}}}|ext={{{ext|}}}|size={{{size|}}}|notext=true}} {{Icon|Mastery|size={{{size|}}}|notext=true}} Level {{{2}}}{{#if:{{{showtext|}}}|&nbsp;{{Icon|{{{1|}}}|type={{{type|item}}}|noicon=true}} [[Mastery]]}}</span></onlyinclude></includeonly><noinclude>{{/doc}}</noinclude>
 
Example: <nowiki>{{MasteryReq|Dragon Javelin|90}}</nowiki> produces <nowiki>{{MasteryReq|Dragon Javelin|90}}
 
<includeonly><onlyinclude>[[File:{{{1}}}_(item).svg|25px|{{{1}}}]] [[File:Mastery.svg|25px|Mastery]] '''{{{2}}}'''</onlyinclude></includeonly>

Latest revision as of 13:13, 7 April 2024

Template for quickly including in-line Mastery requirements (similar to Template:SkillReq).

Example: {{MasteryReq|Dragon Javelin|90}} produces Level 90.

The optional type argument can be used for things that aren't items. For example, {{MasteryReq|Qimican|90|type=constellation}} becomes Level 90

The showtext argument shows the name of the item as well. For example, {{MasteryReq|Rune Essence|50|showtext=true}} becomes Level 50 Rune Essence Mastery