Template:Elx: Difference between revisions
No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
(8 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|K9 website={{nbsp}}on the [http://www.k9official.com/ ''K9'' website] | |K9 website={{nbsp}}on the [http://www.k9official.com/ ''K9'' website] | ||
|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}}}] | |Twitter={{nbsp}}on [[Twitter]]|Facebook={{nbsp}}on [[Facebook]]|Spotify={{nbsp}}on [[Spotify]] | ||
}}</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}} | |Amazon={{nbsp}}on Amazon|Amazon.co.uk={{nbsp}}on Amazon.co.uk | ||
|#default={{#if:{{{website url|}}}|{{nbsp}}at [{{{website url}}} {{{website name}}}]}} | |||
}}</span>|{{#if:{{{website url|}}}|<span class=plainlinks>[{{{website url}}} {{{website name|{{PAGENAME}}}}}]</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> |
Latest revision as of 04:16, 21 June 2017
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[[edit source]]
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[[edit source]]
{{elx|This is completely free-form.}}
Output[[edit source]]
- This is completely free-form.
Input[[edit source]]
{{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[[edit source]]
Method 2[[edit source]]
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[[edit source]]
{{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[[edit source]]
Doctor Who website[[edit source]]
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.