Template:linkbox
From Homestar Runner Wiki
(Difference between revisions)
Defender1031 (Talk | contribs) (Add the ability to make link boxes link to full urls (I hope I did this right)) |
Defender1031 (Talk | contribs) (almost, but not quite right.) |
||
Line 1: | Line 1: | ||
- | <span class="hovul" style="font-size:smaller; background:#EEE; border:1px #999 solid; padding:2px; white-space:nowrap;">{{#ifeq:{{{3}}}|fullurl|{{p|l={{{1}}} {{{2|watch | + | <span class="hovul" style="font-size:smaller; background:#EEE; border:1px #999 solid; padding:2px; white-space:nowrap;">{{#ifeq:{{{3}}}|fullurl|{{p|l={{{1}}} {{{2|watch}}}}}|[[{{{3|HR}}}:{{{1}}}|{{{2|watch}}}]]}}</span><noinclude> |
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. | 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. |
Revision as of 22:37, 18 July 2018
[[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