Template:linkbox

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(adding optional parameter for external link prefix)
(switch to using new linking template)
 
(includes 8 intermediate revisions)
Line 1: Line 1:
-
<span class="hovul" style="font-size:smaller;background:#EEE;border:1px #999 solid;padding:2px">[[{{{p|HR}}}:{{{1}}}|{{{2|watch}}}]]</span><noinclude>
+
<span class="hovul" style="font-size:smaller; background:#EEE; border:1px #999 solid; padding:2px; white-space:nowrap;">{{el|{{{1}}}|{{{2|watch}}}|{{{3|HR}}}}}</span><noinclude>
-
Use this template to link directly to content in [[homestarrunner.com]].  Simply copy the path of the filename and the desired label for the link ("watch" is the default label).  
+
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.  
-
For example:
+
'''Examples:'''
-
:<code><nowiki>{{hrlinkbox|sbemail.html|listen}}</nowiki></code>
+
 
-
produces:
+
<code><nowiki>{{linkbox|sbemail.html|listen}}</nowiki></code>
-
:{{hrlinkbox|sbemail.html|listen}}
+
:produces: {{linkbox|sbemail.html|listen}}
-
and:
+
<code><nowiki>{{linkbox|rapsong.html}}</nowiki></code>
-
:<code><nowiki>{{hrlinkbox|rapsong.html}}</nowiki></code>
+
:produces: {{linkbox|rapsong.html}}
-
produces:  
+
<code><nowiki>{{linkbox|hallrunner.html|play|Videlectrix}}</nowiki></code>
-
:{{hrlinkbox|rapsong.html}}
+
:produces: {{linkbox|hallrunner.html|play|Videlectrix}}
 +
<code><nowiki>{{linkbox|https://www.kickstarter.com/projects/1999933720/trogdor-the-board-game/|watch|fullurl}}</nowiki></code>
 +
:produces: {{linkbox|https://www.kickstarter.com/projects/1999933720/trogdor-the-board-game/|watch|fullurl}}
 +
<code><nowiki>{{linkbox|sbemail200.html|watch|oldhr}}</nowiki></code>
 +
:produces: {{linkbox|sbemail200.html|watch|oldhr}}
----
----
*See also: {{tl|watch}}
*See also: {{tl|watch}}

Current revision as of 07:28, 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