Template:subtitlesLinks

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(rv; variable scope doesn't span multiple inclusions, which was what I expected, but thought I'd try it anyway)
(further clarified the "Instuctions" and added some whitespace in the template itself - keep an eye out in case this whitespace broke anything)
Line 1: Line 1:
-
{{#ifexist:Subtitles:{{{1}}}/en|[[en: {{{1}}}]]|}}{{
+
{{#ifexist:Subtitles:{{{1}}}/en   |[[en: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/fr|[[fr: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/fr   |[[fr: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/de|[[de: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/de   |[[de: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/es|[[es: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/es   |[[es: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/he|[[he: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/he   |[[he: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/nl|[[nl: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/nl   |[[nl: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/fi|[[fi: {{{1}}}]]|}}{{
+
   #ifexist:Subtitles:{{{1}}}/fi   |[[fi: {{{1}}}]]|}}{{
-
   #ifexist:Subtitles:{{{1}}}/pl|[[pl: {{{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:Template:subtitlesLinks|title=Special:Whatlinkshere}}&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 20: 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 22:38, 22 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).