Template:HR

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(+example of last change)
(explain a bit about how the template works and what to do if it doesn't)
 
Line 7: Line 7:
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.
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.
 +
 +
In most cases, the input for the toon name should be our local article title (and can be left blank if the template is placed on the toon article). If that doesn't work, try inputting the name exactly as it appears on the [[Toons]] menu on the official site (making note of any spaces or hyphens that are different from our local title). If ''that'' doesn't work, try inputting the portion of the official URL after <code>toons/</code>, keeping in mind there may need to be a slight adjustment due to how <code><nowiki>{{#urlformat:}}</nowiki></code> transforms the input (see [[Help:ParserFunctions##urlformat:|Help:ParserFunctions]]).
;Inputs
;Inputs
: 1 = Toon type:
: 1 = Toon type:
-
:: toon (generic [[Toons|toon]]) (default)
+
:: toon (generic toon) (default)
:: sbe ([[Strong Bad Email]])
:: sbe ([[Strong Bad Email]])
:: mam ([[Marzipan's Answering Machine]])
:: mam ([[Marzipan's Answering Machine]])
:: tgs ([[Teen Girl Squad]])
:: tgs ([[Teen Girl Squad]])
-
: 2 = Local page name (default: current page name)
+
: 2 = Toon name (see above; default: current page name)
: 3 = Set blank to suppress the HR: (for inclusion on a template that already has it)
: 3 = Set blank to suppress the HR: (for inclusion on a template that already has it)
Line 63: Line 65:
| <code><nowiki>{{watch|{{HR|toon|Strong Bad is in Jail Cartoon|}}}}</nowiki></code>
| <code><nowiki>{{watch|{{HR|toon|Strong Bad is in Jail Cartoon|}}}}</nowiki></code>
| {{watch|{{HR|toon|Strong Bad is in Jail Cartoon|}}}}
| {{watch|{{HR|toon|Strong Bad is in Jail Cartoon|}}}}
 +
|-
 +
| <code><nowiki>{{HR||yellodello mark2}}</nowiki></code> (needs space, not hyphen)
 +
| {{HR|toon|yellodello <!--needs space not hyphen-->mark2}}
 +
|-
 +
| <code><nowiki>[[{{HR||yellodello mark2}}]]</nowiki></code> (see [[Help:ParserFunctions##urlformat:|Help:ParserFunctions]])
 +
| [[{{HR|toon|yellodello <!--needs space not hyphen-->mark2}}]]
|}
|}
</noinclude>
</noinclude>

Current revision as of 21:39, 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.

In most cases, the input for the toon name should be our local article title (and can be left blank if the template is placed on the toon article). If that doesn't work, try inputting the name exactly as it appears on the Toons menu on the official site (making note of any spaces or hyphens that are different from our local title). If that doesn't work, try inputting the portion of the official URL after toons/, keeping in mind there may need to be a slight adjustment due to how {{#urlformat:}} transforms the input (see Help:ParserFunctions).

Inputs
1 = Toon type:
toon (generic toon) (default)
sbe (Strong Bad Email)
mam (Marzipan's Answering Machine)
tgs (Teen Girl Squad)
2 = Toon name (see above; default: current page name)
3 = Set blank to suppress the HR: (for inclusion on a template that already has it)
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
{{HR|toon}} on Cheat Commandos (toon) HR:toons/cheat-commandos
[[{{HR}}|watch]] on Cheat Commandos (toon) watch
{{HR|toon|Strong Bad is in Jail Cartoon|}} toons/strong-bad-is-in-jail-cartoon
{{watch|{{HR|toon|Strong Bad is in Jail Cartoon|}}}} watch
{{HR||yellodello mark2}} (needs space, not hyphen) HR:toons/yellodello-mark2
[[{{HR||yellodello mark2}}]] (see Help:ParserFunctions) HR:toons/yellodello-mark2


Personal tools