Template:subtitles

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (Apparently, {{{PAGENAMEE}} is not a spelling error.)
(added ability to specify that games and Videlectrix games; expanded instructions)
Line 1: Line 1:
{| align="center" style="background-color: #f1f1de; width: 100%; border: 2px solid #996; padding: 5px; text-align:center;"
{| 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:{{language|{{SUBPAGENAME}}}}|'''These are the [[Wikipedia:{{language|{{SUBPAGENAME}}}} language|{{language|{{SUBPAGENAME}}}}]] subtitles for [[{{{1}}}{{#if:{{{anchor|}}}|&#35;{{{anchor}}}{{!}}{{{1}}} ({{{anchor}}})}}]].''' <span class="hovul" style="font-size:smaller;background:#EEE;border:1px #999 solid;padding:2px;margin-left:6px;white-space:nowrap">{{#ifeq:{{{mirror}}}|yes|[[Mirror:{{{mirrorpagename}}}.html|watch this toon.]]|[[HR:{{BASEPAGENAME}}.html|watch this toon]]}}</span><div style="font-size:90%">
+
| {{#if:{{language|{{SUBPAGENAME}}}}|'''These are the [[Wikipedia:{{language|{{SUBPAGENAME}}}} language|{{language|{{SUBPAGENAME}}}}]] subtitles for [[{{{1}}}{{#if:{{{anchor|}}}|&#35;{{{anchor}}}{{!}}{{{1}}} ({{{anchor}}})}}]].''' <span class="hovul" style="font-size:smaller;background:#EEE;border:1px #999 solid;padding:2px;margin-left:6px;white-space:nowrap">{{#switch:{{{mirror}}}|yes=[[Mirror:{{{mirrorpagename}}}.html|watch this toon.]]|Videlectrix=[[Videlectrix:{{BASEPAGENAME}}.html|play this game]]|game=[[HR:{{BASEPAGENAME}}.html|play this game]]|[[HR:{{BASEPAGENAME}}.html|watch this toon]]}}</span><div style="font-size:90%">
To 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.
To 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.
Line 12: Line 12:
'''Usage Parameters:'''
'''Usage Parameters:'''
<code>
<code>
-
   <nowiki>{</nowiki>{ subtitles | ''toon name'' [ | anchor=''anchor name'' ] [ | mirror=''mirror page name'' ] }}
+
   <nowiki>{</nowiki>{ subtitles | ''toon name'' [ | anchor=''anchor name'' ] [ | mirror=''yes, Videlectrix, or game'' ] [ | mirrorpagename=''mirror page name'' ] }}
</code>
</code>
:*''toon name'' &mdash; the wiki article name for the translated toon.
:*''toon name'' &mdash; the wiki article name for the translated toon.
:*''anchor'' (optonal) &mdash; if necessary, the anchor in the article where the original text can be found (if it's not in the [[HRWiki:Standards#Transcript|Transcript]]).
:*''anchor'' (optonal) &mdash; if necessary, the anchor in the article where the original text can be found (if it's not in the [[HRWiki:Standards#Transcript|Transcript]]).
-
:*''mirror'' (optional) &mfsdh; the filename for this toon's mirror.
+
:*''mirror'' (optional) &mdash; "yes" 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) &mdash; if you have specified a mirror="yes", store the filename for this toon's mirror in this variable.
[[Category:Notice Templates|{{PAGENAME}}]][[Category:Subtitles|{{PAGENAME}}]]
[[Category:Notice Templates|{{PAGENAME}}]][[Category:Subtitles|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 23:10, 17 July 2007

Subtitles logo This page contains subtitles for [[{{{1}}}]], but the language code "subtitles" is not in use. You can request that it be enabled.
en  de  he  es  fr  nl  pt-br



Usage Parameters:

 {{ subtitles | toon name [ | anchor=anchor name ] [ | mirror=yes, Videlectrix, or game ] [ | 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).
  • mirror (optional) — "yes" 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 a mirror="yes", store the filename for this toon's mirror in this variable.