Template:extlinks
From Homestar Runner Wiki
(Difference between revisions)
Defender1031 (Talk | contribs) (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}}}}}"]]|}}}}<!-- | |
| - | + | ||
| - | + | ||
| - | --> | + | -->{{#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]]}}<!-- |
| - | + | ||
| - | -->{{#if:{{{ | + | -->{{#if:{{{twitter|}}}|*[[Twitter:StrongBadActual/status/{{{twitter}}}|watch "{{{title|{{PAGENAME}}}}}"]] on [[@StrongBadActual|Twitter]]}}<!-- |
| - | + | ||
| + | -->{{#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== | ||
| - | + | {| class="wikitable" | |
| - | + | ! Parameter !! Description !! Example | |
| - | + | |- | |
| - | + | | | |
| - | + | <code>{{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, as long as the URL ends in .html or .swf) | |
| - | + | |{{extlinks|filename|forum thread id|site=Mirror}} | |
| - | + | |- | |
| + | | | ||
| + | <code>{{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>{{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>{{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>{{extlinks|forum=</code>''forum thread id''<code>}}</code> | ||
| + | |For pages with no HTML file or Flash file | ||
| + | |{{extlinks|forum=forum thread id}} | ||
| + | |- | ||
| + | | | ||
| + | <code>{{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>{{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>{{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 |
|---|---|---|
|
| For pages on the HRWiki mirror (any other interwiki prefix can also be used, as long as the URL ends in .html or .swf) | |
|
| For pages where the Flash file has a different name to the HTML file | |
|
| For pages where the Flash file has no HTML file | |
|
| For pages where the HTML file has no Flash file |
|
|
| For pages with no HTML file or Flash file | |
|
| For pages where the toon's name doesn't match the wiki page name |
|
|
| For YouTube videos | |
|
| For Twitter videos |
