Template:extlinks
From Homestar Runner Wiki
(Difference between revisions)
m (collapse whitespace) |
(fix twitter example) |
||
(includes 22 intermediate revisions) | |||
Line 1: | Line 1: | ||
- | *[[HR: | + | {{#if:{{{nohtml|}}}||{{#if:{{{1|}}}| |
- | *[[HR: | + | *[[{{{site|HR}}}:{{{1|}}}.html|watch "{{{title|{{PAGENAME}}}}}"]]|}}}}<!-- |
- | *[[Forum:{{{2}}}|forum thread re: "{{PAGENAME}}"]] | + | |
- | <noinclude>[[Category:Formatting Templates]]</noinclude> | + | -->{{#if:{{{noswf|}}}||{{#if:{{{1|}}}| |
+ | *[[{{{site|HR}}}:{{{swf|{{{1|}}}}}}.swf|view the Flash file for "{{{title|{{PAGENAME}}}}}"]]|}}}}<!-- | ||
+ | |||
+ | -->{{#if:{{{youtube|}}}|*[[YouTube:{{{youtube}}}|watch "{{{title|{{PAGENAME}}}}}"]] on [[YouTube]]}}<!-- | ||
+ | |||
+ | -->{{#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== | ||
+ | *<code>{{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== | ||
+ | {| 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>|twitter=</code>''Twitter id''<code>}}</code> | ||
+ | |For [[@StrongBadActual|Twitter]] links | ||
+ | |{{extlinks|filename|forum thread id|twitter=Twitter id}} | ||
+ | |} | ||
+ | ==See Also== | ||
+ | *{{t|sbemailextlinks}} | ||
+ | |||
+ | [[Category:Toon Article Formatting Templates|{{PAGENAME}}]] | ||
+ | </noinclude> |
Revision as of 04:48, 25 December 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 links |
See Also
- {{sbemailextlinks}}