Anonymous

Template:HasMMG: Difference between revisions

From Melvor Idle
Implement nosub parameter
No edit summary
(Implement nosub parameter)
Line 1: Line 1:
<onlyinclude>{{MessageBox|img=[[File:Coins.svg|35x35px|center|link=]]
<onlyinclude>{{MessageBox|img=[[File:Coins.svg|35x35px|center|link=]]
| This article has a money making guide at [[{{{page|Money Making}}}/{{{1|{{PAGENAME}}}}}]].
| This article has a money making guide at [[{{{page|Money Making}}}{{#ifeq:{{{nopage|}}}||/{{{1|{{PAGENAME}}}}}|}}]].
| Please add tips to the subpage, rather than the article below.
| Please add tips to the subpage, rather than the article below.
}}</onlyinclude><noinclude>
}}</onlyinclude><noinclude>
Line 10: Line 10:
First parameter can specify an alternate sub-page: {{T|HasMMG|Fletching Dragon Javelins}}
First parameter can specify an alternate sub-page: {{T|HasMMG|Fletching Dragon Javelins}}


<code>page=</code> parameter can specify a different page entirely: {{T|HasMMG|page=Scripting and Extensions}}
The <code>page</code> parameter can specify a different page entirely: {{T|HasMMG|page=Scripting and Extensions}}
 
The <code>nosub</code> parameter, if specified, indicates that a sub-page should not be used, but rather the template should link to only the page specified by <code>page</code>: {{T|HasMMG|Money Making|nopage=true}}
</noinclude>
</noinclude>