Template:extlinks

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(the problem is deeper than this template. modifying it won't change anything)
(a Twitter parameter, a no Flash file parameter, and other various changes)
Line 1: Line 1:
-
{{#if:{{{nohtml|}}}<!--
+
{{#if:{{{nohtml|}}}||{{#if:{{{1|}}}|
-
  -->|<!--
+
*[[{{{site|HR}}}:{{{1|}}}.html|watch "{{{title|{{PAGENAME}}}}}"]]|}}}}<!--
-
  -->|*[[{{{site|HR}}}:{{{1}}}.html|watch "{{{title|{{PAGENAME}}}}}"]]<!--
+
-
-->}}<!--
+
-
-->
+
-->{{#if:{{{noswf|}}}||{{#if:{{{1|}}}|
-
*[[{{{site|HR}}}:{{{swf|{{{1}}}}}}.swf|view the Flash file for "{{{title|{{PAGENAME}}}}}"]]<!--
+
*[[{{{site|HR}}}:{{{swf|{{{1|}}}}}}.swf|view the Flash file for "{{{title|{{PAGENAME}}}}}"]]|}}}}<!--
-
-->{{#if:{{{youtube|}}}<!--
+
-->{{#if:{{{youtube|}}}|*[[YouTube:{{{youtube}}}|watch "{{{title|{{PAGENAME}}}}}"]] on [[YouTube]]}}<!--
-
  -->|*[[YouTube:{{{youtube}}}|watch "{{{title|{{PAGENAME}}}}}"]] on [[YouTube]]}}<!--
+
-
-->{{#if:{{{2|}}}<!--
+
-->{{#if:{{{twitter|}}}|*[[Twitter:StrongBadActual/status/{{{twitter}}}|watch "{{{title|{{PAGENAME}}}}}"]] on [[@StrongBadActual|Twitter]]}}<!--
-
  -->|*[[Forum:{{{2}}}|forum thread re: "{{{title|{{PAGENAME}}}}}"]]}}<noinclude>
+
 
 +
-->{{#if:{{{forum|{{{2|}}}}}}|*[[Forum:{{{forum|{{{2|}}}}}}|forum thread re: "{{{title|{{PAGENAME}}}}}"]]}}<noinclude>
==Basic usage==
==Basic usage==
Line 18: Line 16:
==Other parameters that can be used==
==Other parameters that can be used==
-
*<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>|site=Mirror}}</code>
+
{| class="wikitable"
-
**For pages on the HRWiki mirror (any other [[Help:Namespaces#Interwiki Links|interwiki prefix]] can also be used)
+
! Parameter !! Description !! Example
-
*<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>
+
<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>|site=Mirror}}</code>
-
**For pages where the Flash file has no HTML file
+
|For pages on the HRWiki mirror (any other [[Help:Namespaces#Interwiki Links|interwiki prefix]] can also be used, as long as the URL ends in .html or .swf)
-
*<code>&#123;{extlinks|</code>''html filename''<code>|</code>''forum thread id''<code>|title=</code>''title''<code>}}</code>
+
|{{extlinks|filename|forum thread id|site=Mirror}}
-
**For pages where the toon's name doesn't match the wiki page name
+
|-
 +
|
 +
<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
 +
|{{extlinks|html filename|forum thread id|swf=swf filename}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|</code>''swf filename''<code>|</code>''forum thread id''<code>|nohtml=1}}</code>
 +
|For pages where the Flash file has no HTML file
 +
|{{extlinks|swf filename|forum thread id|nohtml=1}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|</code>''html filename''<code>|</code>''forum thread id''<code>|noswf=1}}</code>
 +
|For pages where the HTML file has no Flash file
 +
|{{extlinks|html filename|forum thread id|noswf=1}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|forum=</code>''forum thread id''<code>}}</code>
 +
|For pages with no HTML file or Flash file
 +
|{{extlinks|forum=forum thread id}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|</code>''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
 +
|{{extlinks|filename|forum thread id|title=title}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>|youtube=</code>''YouTube id''<code>}}</code>
 +
|For [[YouTube]] videos
 +
|{{extlinks|filename|forum thread id|youtube=YouTube id}}
 +
|-
 +
|
 +
<code>&#123;{extlinks|</code>''filename''<code>|</code>''forum thread id''<code>|youtube=</code>''Twitter id''<code>}}</code>
 +
|For [[@StrongBadActual|Twitter]] videos
 +
|{{extlinks|filename|forum thread id|twitter=Twitter id}}
 +
|}
[[Category:Formatting Templates|{{PAGENAME}}]]
[[Category:Formatting Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 23:34, 13 October 2017


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

Parameter Description Example

{{extlinks|filename|forum thread id|site=Mirror}}

For pages on the HRWiki mirror (any other interwiki prefix can also be used, as long as the URL ends in .html or .swf)

{{extlinks|html filename|forum thread id|swf=swf filename}}

For pages where the Flash file has a different name to the HTML file

{{extlinks|swf filename|forum thread id|nohtml=1}}

For pages where the Flash file has no HTML file

{{extlinks|html filename|forum thread id|noswf=1}}

For pages where the HTML file has no Flash file

{{extlinks|forum=forum thread id}}

For pages with no HTML file or Flash file

{{extlinks|filename|forum thread id|title=title}}

For pages where the toon's name doesn't match the wiki page name

{{extlinks|filename|forum thread id|youtube=YouTube id}}

For YouTube videos

{{extlinks|filename|forum thread id|youtube=Twitter id}}

For Twitter videos
Personal tools