Template:subtitles

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (space)
(autoreplace: — → {{--}})
 
(includes 6 intermediate revisions)
Line 9: Line 9:
| <includeonly>{{#if:{{#var:sb-lang}}
| <includeonly>{{#if:{{#var:sb-lang}}
     | <!--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}}}}}}
     | <!--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}}
+
         | mirror        = [[Mirror:{{{mirrorpagename}}}.html  |watch this toon]]
-
         | yes <!--BC--> = {{#var:    sb-mirror}} <!--for backward compatibility-->
+
         | yes <!--BC--> = [[Mirror:{{{mirrorpagename}}}.html  |watch this toon]] <!--for backward compatibility-->
         | game          = [[HR:{{BASEPAGENAME}}.html          |play this game]]
         | game          = [[HR:{{BASEPAGENAME}}.html          |play this game]]
         | Videlectrix  = [[Videlectrix:{{BASEPAGENAME}}.html |play this game]]
         | Videlectrix  = [[Videlectrix:{{BASEPAGENAME}}.html |play this game]]
Line 19: Line 19:
         | Videlectrix  = play the game
         | Videlectrix  = play the game
         | <!--default--> watch the toon
         | <!--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.
+
         }} with subtitles, we recommend that you install either the '''[[User:Phlip/Greasemonkey|All-In-One Greasemonkey script]]''' for Firefox or the '''[https://chrome.google.com/webstore/detail/homestar-all-in-one/ekecfcebbojjfaiendgjgcadampmppdb Homestar All-In-One extension]''' for Chrome.<br>It will give you the option to automatically display subtitles when you view toons on [[HR:|homestarrunner.com]] and those mirrored locally. Alternatively, you may use our [[subtitlesviewer:{{PAGENAMEE}}|local viewer]].
-
 
+
</div>
-
{{#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]].
     | <!--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]].
     }}</includeonly><noinclude>This template is placed at the top of {{p|l={{fullurl:Special:Allpages|namespace=102}} subtitles}} pages to automatically create links to the article for the corresponding toon or game, various available viewing options, and language resources. It also lets a user know that a language is not enabled if that is the case.</noinclude>
     }}</includeonly><noinclude>This template is placed at the top of {{p|l={{fullurl:Special:Allpages|namespace=102}} subtitles}} pages to automatically create links to the article for the corresponding toon or game, various available viewing options, and language resources. It also lets a user know that a language is not enabled if that is the case.</noinclude>
Line 49: Line 43:
   <nowiki>{</nowiki>{ subtitles | ''toon name'' [ | anchor=''anchor name'' ] [ | type=''mirror, game, Videlectrix'' ] [ | mirrorpagename=''mirror page name'' ] }}
   <nowiki>{</nowiki>{ subtitles | ''toon name'' [ | anchor=''anchor name'' ] [ | type=''mirror, game, Videlectrix'' ] [ | mirrorpagename=''mirror page name'' ] }}
</code>
</code>
-
:*''toon name'' &mdash; the wiki article name for the translated toon.
+
:*''toon name'' {{--}} 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) {{--}} if necessary, the anchor in the article where the original text can be found (if it's not in the [[HRWiki:Standards#Transcript|Transcript]]).
-
:*''type'' (optional) &mdash; "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
+
:*''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) &mdash; if you have specified "type=mirror", store the filename for this toon's mirror in this variable.
+
:*''mirrorpagename'' (optional) {{--}} if you have specified "type=mirror", store the filename for this toon's mirror in this variable.
[[Category:Notice Templates|{{PAGENAME}}]][[Category:Subtitles Templates|{{PAGENAME}}]]
[[Category:Notice Templates|{{PAGENAME}}]][[Category:Subtitles Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Current revision as of 04:13, 4 November 2022

Subtitles logo This template is placed at the top of subtitles pages to automatically create links to the article for the corresponding toon or game, various available viewing options, and language resources. It also lets a user know that a language is not enabled if that is the case.

en  de  he  es  fr  nl  fi  pl  pt-br  tr



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.
Personal tools