Template:HasMMG: Difference between revisions

From Melvor Idle
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>

Revision as of 21:45, 6 June 2024

Links to a guide page from its parent page directly.

Syntax is {{HasMMG}} when the Money Making subpage is the same as the current page.

First parameter can specify an alternate sub-page: {{HasMMG|Fletching Dragon Javelins}}

The page parameter can specify a different page entirely: {{HasMMG|page=Scripting and Extensions}}

The nosub parameter, if specified, indicates that a sub-page should not be used, but rather the template should link to only the page specified by page: {{HasMMG|Money Making|nopage=true}}