Template:linkbox

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(add support for oldhr links)
(oops! unbreak the template (forgot to move back into one line))
Line 1: Line 1:
-
<span class="hovul" style="font-size:smaller; background:#EEE; border:1px #999 solid; padding:2px; white-space:nowrap;">
+
<span class="hovul" style="font-size:smaller; background:#EEE; border:1px #999 solid; padding:2px; white-space:nowrap;">{{#switch:{{{3}}}
-
{{#switch:{{{3}}}
+
|fullurl={{p|l={{{1}}} {{{2|watch}}}}}
|fullurl={{p|l={{{1}}} {{{2|watch}}}}}
|oldhr={{oldhr|{{{1}}}|{{{2|watch}}}}}
|oldhr={{oldhr|{{{1}}}|{{{2|watch}}}}}

Revision as of 07:11, 20 January 2021

[[HR:{{{1}}}|watch]]

Use this template to link directly to content in homestarrunner.com and related sites. Simply copy the path of the filename and the desired label for the link ("watch" is the default label; "HR" is the default link style). If the link style given is "fullurl", a full url will be expected and linked to.

Examples:

{{linkbox|sbemail.html|listen}}

produces: listen

{{linkbox|rapsong.html}}

produces: watch

{{linkbox|hallrunner.html|play|Videlectrix}}

produces: play

{{linkbox|https://www.kickstarter.com/projects/1999933720/trogdor-the-board-game/|watch|fullurl}}

produces: watch

{{linkbox|sbemail200.html|watch|oldhr}}

produces: watch

Personal tools