Template:shortcut
From Homestar Runner Wiki
Shortcut:
[[HRW:{{{1}}}]]
[[HRW:{{{1}}}]]
Usage:
When linking to a shortcut in the HRW Pseudo-namespace, simply enter the target name (without the namespace) as a template parameter:
{{shortcut|SHORTCUT1}}
— automatically links to HRW:SHORTCUT1 (Note that the HRW: pseudo-namespace is automatically added)- or
{{shortcut|SHORTCUT1|SHORTCUT2}}
— automatically links to HRW:SHORTCUT1 and HRW:SHORTCUT2- or
{{shortcut|SHORTCUT1|SHORTCUT2|[[HRW:SHORTCUT3]]}}
— same as above, except the third parameter requires extra formatting since it's a free-for-all. As shown, it links to HRW:SHORTCUT3, but you could string any number of extra links in the form:[[HRW:SHORTCUT3]]<br>[[HRW:SHORTCUT4]]
— adds links to HRW:SHORTCUT3 and HRW:SHORTCUT4[[SHORTCUT3]]<br>[[HRWiki:SHORTCUT4]]
— adds links to SHORTCUT3 and HRWiki:SHORTCUT4
This last parameter is used when you need to link to non-HRW pages or the page containst more than two shortcuts. You may link to an HRW shortcut page and a non-HRW page, but you must do so with care:
{{shortcut|SHORTCUT1||[[SHORTCUT3]]}}
— will link to HRW:SHORTCUT1 and SHORTCUT3 respectively.
However, you must link to at least one page in the HRW namespace.