Template:subtitles
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (switch category from Subtitles to Subtitles Templates) |
It's dot com (Talk | contribs) (comments, formatting, and variables to make this page easier to understand (esp. when using an external editor)) |
||
Line 1: | Line 1: | ||
- | {| align="center" style="background-color: #f1f1de; width: 100%; border: 2px solid #996; padding: 5px; text-align:center;" | + | <!-- When making major changes to this page, it is a lot easier to read in an external editor with line wrapping off. |
+ | |||
+ | ## Set variables | ||
+ | -->{{#setvar: sb-pagelink | [[{{{1}}}{{#if:{{{anchor|}}}|#{{{anchor}}}{{!}}{{{1}}} ({{{anchor}}})}}]] }}<!-- | ||
+ | -->{{#setvar: sb-lang | {{language|{{SUBPAGENAME}}}} }}<!-- | ||
+ | |||
+ | -->{| align="center" style="background-color: #f1f1de; width: 100%; border: 2px solid #996; padding: 5px; text-align:center;" | ||
| [[Image:Subtitles_Project_Logo.png|80px|Subtitles logo]]<div class="hovul" style="font-size:90%;line-height:135%;margin-top:6px">'''[[HRWiki:Subtitles|HRWiki<br>Subtitles<br>Project]]'''</div> | | [[Image:Subtitles_Project_Logo.png|80px|Subtitles logo]]<div class="hovul" style="font-size:90%;line-height:135%;margin-top:6px">'''[[HRWiki:Subtitles|HRWiki<br>Subtitles<br>Project]]'''</div> | ||
- | | {{#if:{{ | + | | {{#if:{{#var:sb-lang}} |
- | To {{#switch:{{{type}}}|game=play the game|Videlectrix=play the game|watch the toon}} with subtitles, we recommend that you install the '''[[User:Phlip/Greasemonkey|All-In-One Greasemonkey script]]''' for Firefox.<br>It will give you the option to automatically display subtitles when you view toons on [[HR:|homestarrunner.com]] and those mirrored locally. | + | | <!--if language enabled--> '''These are the [[Wikipedia:{{#var:sb-lang}} language|{{#var:sb-lang}}]] subtitles for {{#var:sb-pagelink}}.''' <span class="hovul" style="font-size:smaller;background:#EEE;border:1px #999 solid;padding:2px;margin-left:6px;white-space:nowrap">{{#switch:{{{type|{{{mirror}}}}}} |
+ | | mirror = {{#setvar: sb-mirror | [[Mirror:{{{mirrorpagename}}}.html |watch this toon]] |show}} | ||
+ | | yes <!--BC--> = {{#var: sb-mirror}} <!--for backward compatibility--> | ||
+ | | game = [[HR:{{BASEPAGENAME}}.html |play this game]] | ||
+ | | Videlectrix = [[Videlectrix:{{BASEPAGENAME}}.html |play this game]] | ||
+ | | <!--default--> [[HR:{{BASEPAGENAME}}.html |watch this toon]] | ||
+ | }}</span> | ||
+ | <div style="font-size:90%">To {{#switch:{{{type}}} | ||
+ | | game = play the game | ||
+ | | Videlectrix = play the game | ||
+ | | <!--default--> watch the toon | ||
+ | }} with subtitles, we recommend that you install the '''[[User:Phlip/Greasemonkey|All-In-One Greasemonkey script]]''' for Firefox.<br>It will give you the option to automatically display subtitles when you view toons on [[HR:|homestarrunner.com]] and those mirrored locally. | ||
- | {{#switch:{{{type|{{{mirror}}}}}}|mirror= <!-- | + | {{#switch:{{{type|{{{mirror}}}<!--for backward compatibility-->}}} |
+ | | mirror = <!--empty--> | ||
+ | | yes <!--BC--> = <!--empty--> <!--for backward compatibility--> | ||
+ | | Videlectrix = <!--empty--> | ||
+ | | <!--default--> Alternatively, you may use our [[subtitlesviewer:{{PAGENAMEE}}|local viewer]]. | ||
+ | }}</div> | ||
+ | | <!--else language NOT enabled--> This page contains subtitles for {{#var:sb-pagelink}}, but '''the language code "{{SUBPAGENAME}}" is not in use.''' You can [[HRWiki talk:Subtitles|request that it be enabled]]. | ||
+ | }} | ||
|} | |} | ||
- | <div class="hovul" style="font-size:70%; text-align:right;">[[Subtitles:{{BASEPAGENAME}}/en|en]] [[Subtitles:{{BASEPAGENAME}}/de|de]] [[Subtitles:{{BASEPAGENAME}}/he|he]] [[Subtitles:{{BASEPAGENAME}}/es|es]] [[Subtitles:{{BASEPAGENAME}}/fr|fr]] [[Subtitles:{{BASEPAGENAME}}/nl|nl]] [[Subtitles:{{BASEPAGENAME}}/fi|fi]] [[Subtitles:{{BASEPAGENAME}}/pl|pl]] [[Subtitles:{{BASEPAGENAME}}/pt-br|pt-br]]</div> | + | <div class="hovul" style="font-size:70%; text-align:right;"> |
- | <includeonly>[[Category: {{ | + | [[Subtitles:{{BASEPAGENAME}}/en|en]] |
+ | [[Subtitles:{{BASEPAGENAME}}/de|de]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/he|he]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/es|es]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/fr|fr]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/nl|nl]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/fi|fi]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/pl|pl]] | ||
+ | [[Subtitles:{{BASEPAGENAME}}/pt-br|pt-br]] | ||
+ | </div> | ||
+ | <includeonly>[[Category: {{#var:sb-lang}} Subtitles|{{PAGENAME}}]]</includeonly> | ||
<noinclude> | <noinclude> | ||
---- | ---- |
Revision as of 19:28, 27 November 2007
![]() | This page contains subtitles for [[{{{1}}}]], but the language code "subtitles" is not in use. You can request that it be enabled. |
Usage Parameters:
{{ subtitles | toon name [ | anchor=anchor name ] [ | type=mirror, game, Videlectrix ] [ | mirrorpagename=mirror page name ] }}
- toon name — the wiki article name for the translated toon.
- anchor (optonal) — if necessary, the anchor in the article where the original text can be found (if it's not in the Transcript).
- type (optional) — "mirror" if this toon is mirrored, "game" if it is a game located at homestarrunner.com, and "Videlectrix" if it is a game located at www.videlectrix.com
- mirrorpagename (optional) — if you have specified "type=mirror", store the filename for this toon's mirror in this variable.