Template:Elx: Difference between revisions
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 6: | Line 6: | ||
|doctorwho.tv={{nbsp}}at [http://www.doctorwho.tv/ Doctor Who] | |doctorwho.tv={{nbsp}}at [http://www.doctorwho.tv/ Doctor Who] | ||
|#default={{nbsp}}at [{{{website url}}} {{{website name}}}] | |#default={{nbsp}}at [{{{website url}}} {{{website name}}}] | ||
}}</span>|{{#if:{{{wiki|}}}|'''[[w:c:{{{wiki}}}:{{{1|{{PAGENAME}}}}}{{!}}{{{2|{{{1|{{PAGENAME}}}}}}}}]]''' at [[w:c:{{{wiki}}}{{!}}{{{wiki name|{{{wiki}}}}}}{{#if:{{{wiki description|}}}|, {{{wiki description}}}}}]]|{{#if:{{{1|}}}|<span class=plainlinks>{{{1}}}</span>|<span style=color:red;font-weight:bold>You must specify at least one parameter.</span>}}}}}}</includeonly><noinclude>{{documentation}} | }}</span>|{{#if:{{{website url|}}}|<span class=plainlinks>[{{{website url}}} <b>{{{website name|{{PAGENAME}}}}</b>]</span>|{{#if:{{{wiki|}}}|'''[[w:c:{{{wiki}}}:{{{1|{{PAGENAME}}}}}{{!}}{{{2|{{{1|{{PAGENAME}}}}}}}}]]''' at [[w:c:{{{wiki}}}{{!}}{{{wiki name|{{{wiki}}}}}}{{#if:{{{wiki description|}}}|, {{{wiki description}}}}}]]|{{#if:{{{1|}}}|<span class=plainlinks>{{{1}}}</span>|<span style=color:red;font-weight:bold>You must specify at least one parameter.</span>}}}}}}}}</includeonly><noinclude>{{documentation}} | ||
[[Category:External links templates]]</noinclude> | [[Category:External links templates]]</noinclude> |
Revision as of 04:56, 27 November 2016
If it's a simple link to a subject's official website, please use {{official website}} instead.
For inter-wiki links, that is, links to any other wiki, please use {{iwx}}.
Method 1
The first method is completely free-form. You can type in just about anything, and the template will both bullet it and make sure that external links do not display a symbol to the top right, like this.
Input
{{elx|This is completely free-form.}}
Output
- This is completely free-form.
Input
{{elx|An [http://www.mdtheatreguide.com/2013/11/a-quick-5-with-michael-goldsmith/ interview with '''Michael Goldsmith'''] at [http://www.mdtheatreguide.com/ MD Theatre Guide]}}
Output
Method 2
The second is a more automated template for links to sites outside of the scope of MediaWiki. page url
defines the url of the page to which you want to link; page name
, which defaults at {{PAGENAME}} — or whatever the page the template's on is called — is for the title of that page; and, optionally, website url
and website name
do the same for but for the website.
Input
{{elx|page url=http://www.ibdb.com/person.php?id=494668|page name=Arthur Darvill|website url=http://www.ibdb.com/|website name=Internet Broadway Database}}
Output
Doctor Who website
If you set website name
to "Doctor Who website
", it will produce:
The specification of website url
is not generally necessary for the Doctor Who website, as it defaults to the current website. This feature is also available for doctorwho.tv
, Torchwood website
and Class website
.
If linking to an episode page, on the most current Doctor Who website, {{bbc.co.uk}} should be used instead. Instructions here.