Anonymous

Template:MasteryReq: Difference between revisions

From Melvor Idle
no edit summary
(Swapping text around for consistency with Template:SkillReq)
No edit summary
 
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: {{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}}
 
<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>
2,875

edits