Template:subtitlesLinks

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(quick test)
(Don't need this any more...)
(includes 5 intermediate revisions)
Line 1: Line 1:
-
{{#if:{{#var:alreadyIncluded}}|yes||{{
+
{{#ifexist:Subtitles:{{{1}}}/en   |[[en: {{{1}}}]]|}}{{
-
  #setvar:alreadyIncluded|yes}}{{
+
   #ifexist:Subtitles:{{{1}}}/fr   |[[fr: {{{1}}}]]|}}{{
-
  #ifexist:Subtitles:{{{1}}}/en|[[en: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/de   |[[de: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/fr|[[fr: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/es   |[[es: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/de|[[de: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/he   |[[he: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/es|[[es: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/nl   |[[nl: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/he|[[he: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/fi   |[[fi: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/nl|[[nl: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/pl   |[[pl: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/fi|[[fi: {{{1}}}]]|}}{{
+
-
   #ifexist:Subtitles:{{{1}}}/pl|[[pl: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/pt-br|[[pt-br: {{{1}}}]]|}}{{
   #ifexist:Subtitles:{{{1}}}/pt-br|[[pt-br: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/tr|[[tr: {{{1}}}]]|}}}}<noinclude>This template automatically adds links to the subtitles pages for a given toon as they become available. In the MonoBook skin, the links appear beneath the search box, toolbox, and external links over on the lefthand side of the screen.
+
   #ifexist:Subtitles:{{{1}}}/tr   |[[tr: {{{1}}}]]|}}<noinclude>
-
===Instuctions for use===
+
This template automatically adds links to the subtitles pages for a given toon as they become available. In the MonoBook skin, the links appear beneath the search box, toolbox, and external links over on the lefthand side of the screen.
-
It is not necessary to put this template on individual toon articles, as it is [http://www.hrwiki.org/index.php?target=Template:subtitlesLinks&title=Special:Whatlinkshere&namespace=10 already included] within the standard navigation templates.
+
===Instructions for use===
 +
 
 +
It is not necessary to put this template on individual toon articles, as it is <span class="plainlinks">[{{FULLURL:Special:Whatlinkshere|target=Template:subtitlesLinks&namespace=10}} already included]</span> within the standard navigation templates.
In the rare case that it must be used directly, place the following code anywhere on the toon's article page (customarily toward the bottom):
In the rare case that it must be used directly, place the following code anywhere on the toon's article page (customarily toward the bottom):
Line 22: Line 22:
where <code>''filename''</code> is the HTML filename found on homestarrunner.com (minus the extension).
where <code>''filename''</code> is the HTML filename found on homestarrunner.com (minus the extension).
-
For example, the template on [[Shopping for Danger]] is <code><nowiki>{{subtitlesLinks|commandos3}}</nowiki></code>.
+
For example, the template on [[Shopping for Danger]] would be <code><nowiki>{{subtitlesLinks|commandos3}}</nowiki></code> (although it is already included automatically through a navigation template).
 +
 
[[Category:Navigation Templates|{{PAGENAME}}]]
[[Category:Navigation Templates|{{PAGENAME}}]]
[[Category:Subtitles Templates|{{PAGENAME}}]]
[[Category:Subtitles Templates|{{PAGENAME}}]]
[[Category:Translation Related Templates|{{PAGENAME}}]]
[[Category:Translation Related Templates|{{PAGENAME}}]]
 +
</noinclude>
</noinclude>

Revision as of 23:02, 28 April 2009


This template automatically adds links to the subtitles pages for a given toon as they become available. In the MonoBook skin, the links appear beneath the search box, toolbox, and external links over on the lefthand side of the screen.

Instructions for use

It is not necessary to put this template on individual toon articles, as it is already included within the standard navigation templates.

In the rare case that it must be used directly, place the following code anywhere on the toon's article page (customarily toward the bottom):

{{subtitlesLinks|filename}}

where filename is the HTML filename found on homestarrunner.com (minus the extension).

For example, the template on Shopping for Danger would be {{subtitlesLinks|commandos3}} (although it is already included automatically through a navigation template).

Personal tools