Template:shortcut

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(that did nothing)
(+documentation)
Line 1: Line 1:
<div id="shortcut" style="border: 1px dashed blue; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: right; clear: both;">
<div id="shortcut" style="border: 1px dashed blue; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: right; clear: both;">
-
Shortcut:<br>[[HRW:{{{1}}}]]{{#if:{{{2|}}}|<br>[[HRW:{{{2}}}]]|}}{{#if:{{{3|}}}|<br>{{{3}}}|}}</div>
+
Shortcut:<br>[[HRW:{{{1}}}]]{{#if:{{{2|}}}|<br>[[HRW:{{{2}}}]]|}}{{#if:{{{3|}}}|<br>{{{3}}}|}}</div><noinclude>
 +
===Usage:===
 +
*<code><nowiki>{{shortcut|SHORTCUT1}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1'''
 +
*:or
 +
*<code><nowiki>{{shortcut|SHORTCUT1|SHORTCUT2}}</nowiki></code> &mdash; automatically links to '''HRW:SHORTCUT1''' and '''HRW:SHORTCUT2'''
 +
*:or
 +
*<code><nowiki>{{shortcut|SHORTCUT1|SHORTCUT2|[[HRW:SHORTCUT3]]}}</nowiki></code> &mdash; 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: <code><nowiki>[[HRW:SHORTCUT3]]<br>[[HRW:SHORTCUT4]]</nowiki></code>.
 +
</noinclude>

Revision as of 23:39, 2 April 2007

Shortcut:
[[HRW:{{{1}}}]]

Usage:

  • {{shortcut|SHORTCUT1}} — automatically links to HRW:SHORTCUT1
    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]].
Personal tools