Template:HR
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (show defaults) |
It's dot com (Talk | contribs) (add ability to suppress the HR: at the beginning) |
||
Line 1: | Line 1: | ||
- | <includeonly>{{#switch:{{{1}}}<!-- | + | <includeonly>{{{3|HR:}}}{{#switch:{{{1}}}<!-- |
- | -->| toon | #default = | + | -->| toon | #default = toons/{{#urlformat:{{{2|}}}}}<!-- |
- | -->| sbe = | + | -->| sbe = sbemails/{{#navlist:sbenav-lookup||{{{2|}}}|#}}-{{#urlformat:{{{2|}}}}}<!-- |
- | -->| mam = | + | -->| mam = toons/{{#urlformat:Marzipan's Answering Machine}}-{{#navlist:mamnav-lookup||{{{2|}}}|#}}<!-- |
- | -->| tgs = | + | -->| tgs = toons/{{#urlformat:Issue}}-{{#navlist:tgsnav-lookup||{{{2|}}}|#}}<!-- |
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
Line 15: | Line 15: | ||
:: tgs ([[Teen Girl Squad]]) | :: tgs ([[Teen Girl Squad]]) | ||
: 2 = Local page name (default: current page name) | : 2 = Local page name (default: current page name) | ||
+ | : 3 = Set blank to suppress the HR: (for inclusion on a template that already has it) | ||
[[Category:Navigation Templates|{{PAGENAME}}]] | [[Category:Navigation Templates|{{PAGENAME}}]] | ||
Line 56: | Line 57: | ||
| <code><nowiki>[[{{HR}}|watch]]</nowiki></code> on [[Cheat Commandos (toon)]] | | <code><nowiki>[[{{HR}}|watch]]</nowiki></code> on [[Cheat Commandos (toon)]] | ||
| [[{{HR||Cheat Commandos (toon)}}|watch]] | | [[{{HR||Cheat Commandos (toon)}}|watch]] | ||
+ | |- | ||
+ | | <code><nowiki>{{HR|toon|Strong Bad is in Jail Cartoon|}}</nowiki></code> | ||
+ | | {{HR|toon|Strong Bad is in Jail Cartoon|}} | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 06:06, 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)
- 3 = Set blank to suppress the HR: (for inclusion on a template that already has it)
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 |