Template:MasteryReq: Difference between revisions

Add optional type parameter for non-item masteries
(Slight format tweak)
(Add optional type parameter for non-item masteries)
Line 2: Line 2:


Example: {{T|MasteryReq|Dragon Javelin|90}} produces {{MasteryReq|Dragon Javelin|90}}.
Example: {{T|MasteryReq|Dragon Javelin|90}} produces {{MasteryReq|Dragon Javelin|90}}.
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}}
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}}}_(item).svg|20px|{{{1}}}]] [[File:Mastery.svg|20px|Mastery]]{{#if:{{{showtext|}}}|&nbsp;[[{{{1}}}]] [[Mastery]]}}</span></onlyinclude></includeonly>
<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>