Template:Elx/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
Tag: sourceedit
Tag: sourceedit
Line 27: Line 27:


=== Doctor Who website ===
=== Doctor Who website ===
If you set <code>website name</code> to "<code>Doctor Who website</code>", it will be displayed like so:
If you set <code>website name</code> to "<code>Doctor Who website</code>", it will produce:
{{elx|page url=http://www.bbc.co.uk/programmes/p01l1z04|page name=The Day of the Doctor|website name=Doctor Who website}}
{{elx|page url=http://www.bbc.co.uk/programmes/p01l1z04|page name=The Day of the Doctor|website name=Doctor Who website}}
The specification of <code>website url</code> is not necessary for the ''Doctor Who'' website, and will be ignored.
The specification of <code>website url</code> is not necessary for the ''Doctor Who'' website, and will be ignored.


[[Category:Template documentation]]
[[Category:Template documentation]]

Revision as of 03:52, 23 November 2016

{{Elx/doc}}, short for external link x, provides a template for a very general external link, designed for use in the section of the same name. It can be used in two different ways.

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 necessary for the Doctor Who website, and will be ignored.