Template:HR

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(+category)
(add usage examples and make a few fixes)
Line 1: Line 1:
-
{{#switch:{{{1}}}<!--
+
<includeonly>{{#switch:{{{1}}}<!--
-->| toon | #default = HR:toons/{{#urlformat:{{{2|}}}}}<!--
-->| toon | #default = HR:toons/{{#urlformat:{{{2|}}}}}<!--
-->| sbe = HR:sbemails/{{#navlist:sbenav-lookup||{{{2|}}}|#}}-{{#urlformat:{{{2|}}}}}<!--
-->| sbe = HR:sbemails/{{#navlist:sbenav-lookup||{{{2|}}}|#}}-{{#urlformat:{{{2|}}}}}<!--
-->| mam = HR:toons/{{#urlformat:Marzipan's Answering Machine}}-{{#navlist:mamnav-lookup||{{{2|}}}|#}}<!--
-->| mam = HR:toons/{{#urlformat:Marzipan's Answering Machine}}-{{#navlist:mamnav-lookup||{{{2|}}}|#}}<!--
-
-->| tgs = HR:toons/{{#urlformat:Issue}}-{{#navlist:tgs-lookup||{{{2|}}}|#}}<!--
+
-->| tgs = HR:toons/{{#urlformat:Issue}}-{{#navlist:tgsnav-lookup||{{{2|}}}|#}}<!--
-
-->}}<noinclude>
+
-->}}</includeonly><noinclude>
-
This template generates the text for the target of a link to the official site. It must be wrapped in brackets to make an actual link.
+
This template generates the text for the target of a link to the official site. Note that you must put brackets around it for it to return a link.
;Inputs
;Inputs
Line 17: Line 17:
[[Category:Navigation Templates|{{PAGENAME}}]]
[[Category:Navigation Templates|{{PAGENAME}}]]
 +
 +
{| class=wikitable
 +
|+ '''Usage examples'''
 +
|-
 +
! Code
 +
! Output
 +
|-
 +
| <code><nowiki>{{HR|toon|3 Times Halloween Funjob}}</nowiki></code>
 +
| {{HR|toon|3 Times Halloween Funjob}}
 +
|-
 +
| <code><nowiki>[[{{HR|toon|3 Times Halloween Funjob}}]]</nowiki></code>
 +
| [[{{HR|toon|3 Times Halloween Funjob}}]]
 +
|-
 +
| <code><nowiki>[[{{HR|toon|3 Times Halloween Funjob}}|watch]]</nowiki></code>
 +
| [[{{HR|toon|3 Times Halloween Funjob}}|watch]]
 +
|-
 +
| <code><nowiki>{{HR|sbe|rampage}}</nowiki></code>
 +
| {{HR|sbe|rampage}}
 +
|-
 +
| <code><nowiki>[[{{HR|sbe|rampage}}]]</nowiki></code>
 +
| [[{{HR|sbe|rampage}}]]
 +
|-
 +
| <code><nowiki>{{HR|mam|Marzipan's Answering Machine Version 17.2}}</nowiki></code>
 +
| {{HR|mam|Marzipan's Answering Machine Version 17.2}}
 +
|-
 +
| <code><nowiki>[[{{HR|mam|Marzipan's Answering Machine Version 17.2}}]]</nowiki></code>
 +
| [[{{HR|mam|Marzipan's Answering Machine Version 17.2}}]]
 +
|-
 +
| <code><nowiki>{{HR|tgs|Teen Girl Squad Issue 10}}</nowiki></code>
 +
| {{HR|tgs|Teen Girl Squad Issue 10}}
 +
|-
 +
| <code><nowiki>[[{{HR|tgs|Teen Girl Squad Issue 10}}]]</nowiki></code>
 +
| [[{{HR|tgs|Teen Girl Squad Issue 10}}]]
 +
|}
 +
</noinclude>
</noinclude>

Revision as of 03:58, 7 February 2021


This template generates the text for the target of a link to the official site. Note that you must put brackets around it for it to return a link.

Inputs
1 = Toon type:
toon (generic toon) (default)
sbe (Strong Bad Email)
mam (Marzipan's Answering Machine)
tgs (Teen Girl Squad)
2 = Local page name (default: current page name)
Usage examples
Code Output
{{HR|toon|3 Times Halloween Funjob}} HR:toons/3-times-halloween-funjob
[[{{HR|toon|3 Times Halloween Funjob}}]] HR:toons/3-times-halloween-funjob
[[{{HR|toon|3 Times Halloween Funjob}}|watch]] watch
{{HR|sbe|rampage}} HR:sbemails/128-rampage
[[{{HR|sbe|rampage}}]] HR:sbemails/128-rampage
{{HR|mam|Marzipan's Answering Machine Version 17.2}} HR:toons/marzipans-answering-machine-17
[[{{HR|mam|Marzipan's Answering Machine Version 17.2}}]] HR:toons/marzipans-answering-machine-17
{{HR|tgs|Teen Girl Squad Issue 10}} HR:toons/issue-10
[[{{HR|tgs|Teen Girl Squad Issue 10}}]] HR:toons/issue-10


Personal tools