Template:extlinks

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(make adaptable)
(add a couple more options, and quick-and-dirty documentation)
Line 1: Line 1:
-
*[[{{{site|HR}}}:{{{1}}}.html|watch "{{PAGENAME}}"]]
+
{{#if:{{{nohtml|}}}||*[[{{{site|HR}}}:{{{1}}}.html|watch "{{{title|{{PAGENAME}}}}}"]]}}
-
*[[{{{site|HR}}}:{{{swf|{{{1}}}}}}.swf|view the Flash file for "{{PAGENAME}}"]]
+
*[[{{{site|HR}}}:{{{swf|{{{1}}}}}}.swf|view the Flash file for "{{{title|{{PAGENAME}}}}}"]]
-
{{#if:{{{2|}}}|*[[Forum:{{{2}}}|forum thread re: "{{PAGENAME}}"]]}}<noinclude>
+
{{#if:{{{2|}}}|*[[Forum:{{{2}}}|forum thread re: "{{{title|{{PAGENAME}}}}}"]]}}<noinclude>
 +
----
 +
Basic usage:
 +
*<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>}}</code>
 +
**The forum thread id can be left out, if the toon doesn't have a forum thread.
 +
 
 +
Other parameters that can be used:
 +
*<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>|site=Mirror}}</code>
 +
**For pages on the HRWiki mirror (any other [[Help:Namespaces#Interwiki Links|interwiki prefix]] can also be used)
 +
*<code>&#123;{extlinks|</code>''html filename''<code>|</code>''forum thread id''<code>|swf=</code>''swf filename''<code>}}</code>
 +
**For pages where the Flash file has a different name to the HTML file
 +
*<code>&#123;{extlinks|</code>''html filename''<code>|</code>''forum thread id''<code>|nohtml=1}}</code>
 +
**For pages where the Flash file has no HTML file
 +
*<code>&#123;{extlinks|</code>''html filename''<code>|</code>''forum thread id''<code>|title=</code>''title''<code>}}</code>
 +
**For pages where the toon's name doesn't match the wiki page name
 +
 
[[Category:Formatting Templates|{{PAGENAME}}]]
[[Category:Formatting Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 09:09, 7 April 2009

  • [[HR:{{{1}}}.html|watch "extlinks"]]
  • [[HR:{{{1}}}.swf|view the Flash file for "extlinks"]]

Basic usage:

  • {{extlinks|filename|forum thread id}}
    • The forum thread id can be left out, if the toon doesn't have a forum thread.

Other parameters that can be used:

  • {{extlinks|filename|forum thread id|site=Mirror}}
  • {{extlinks|html filename|forum thread id|swf=swf filename}}
    • For pages where the Flash file has a different name to the HTML file
  • {{extlinks|html filename|forum thread id|nohtml=1}}
    • For pages where the Flash file has no HTML file
  • {{extlinks|html filename|forum thread id|title=title}}
    • For pages where the toon's name doesn't match the wiki page name
Personal tools