Template:subtitles
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (comments, formatting, and variables to make this page easier to understand (esp. when using an external editor)) |
It's dot com (Talk | contribs) (text for displaying on this page) |
||
Line 7: | Line 7: | ||
-->{| 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:{{#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 = {{#setvar: sb-mirror | [[Mirror:{{{mirrorpagename}}}.html |watch this toon]] |show}} | ||
Line 28: | Line 28: | ||
}}</div> | }}</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 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> |
|} | |} | ||
<div class="hovul" style="font-size:70%; text-align:right;"> | <div class="hovul" style="font-size:70%; text-align:right;"> |
Revision as of 05:35, 28 November 2007
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.