Difference between revisions of "Template:MasteryReq"

From Melvor Idle
m (typo fix.)
(Add optional type parameter for non-item masteries)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Template for quickly including in-line Mastery requirements (similar to [[Template:SkillReq]]).
 
Template for quickly including in-line Mastery requirements (similar to [[Template:SkillReq]]).
  
Example: <nowiki>{{MasteryReq|Dragon Javelin|90}}</nowiki> produces {{MasteryReq|Dragon Javelin|90}}
+
Example: {{T|MasteryReq|Dragon Javelin|90}} produces {{MasteryReq|Dragon Javelin|90}}.
  
<includeonly><onlyinclude>[[File:{{{1}}}_(item).svg|25px|{{{1}}}]] [[File:Mastery.svg|25px|Mastery]] '''{{{2}}}'''</onlyinclude></includeonly>
+
The optional type argument can be used for things that aren't items. For example, {{T|MasteryReq|Qimican|90|type=constellation}} becomes {{MasteryReq|Qimican|90|type=constellation}}
 +
 
 +
The showtext argument shows the name of the item as well. For example, {{T|MasteryReq|Rune Essence|50|showtext=true}} becomes {{MasteryReq|Rune Essence|50|showtext=true}}
 +
 
 +
<includeonly><onlyinclude><span style="display:inline-block;">Level {{{2}}} [[File:{{{1}}}_({{{type|item}}}).svg|20px|{{{1}}}]] [[File:Mastery.svg|20px|Mastery]]{{#if:{{{showtext|}}}|&nbsp;[[{{{1}}}]] [[Mastery]]}}</span></onlyinclude></includeonly>

Revision as of 00:45, 5 January 2022

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

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

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

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