Template:HasMMG: Difference between revisions
From Melvor Idle
(Implement nosub parameter) |
m (Amend parameter typo) |
||
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}}}{{#ifeq:{{{ | | This article has a money making guide at [[{{{page|Money Making}}}{{#ifeq:{{{nosub|}}}||/{{{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 12: | Line 12: | ||
The <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| | 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|nosub=true}} | ||
</noinclude> | </noinclude> |
Revision as of 21:46, 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|nosub=true}}