Template:Elx/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "{{tlx|{{PAGENAME}}}}, short for '''external link''', provides a template for a very general external link, designed for use in the section of the same name. It can be used in ...")
 
Tag: sourceedit
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{tlx|{{PAGENAME}}}}, short for '''external link''', provides a template for a very general external link, designed for use in the section of the same name. It can be used in three different ways:
{{tlx|{{PAGENAME}}}}, 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 {{tlx|official website}} instead.'''
 
'''For inter-wiki links, that is, links to any other wiki, please use {{tlx|iwx}}.'''


=== Method 1 ===
=== Method 1 ===
Line 5: Line 9:


==== Input ====
==== Input ====
<pre>{{el|This is completely free-form.}}</pre>
<pre>{{elx|This is completely free-form.}}</pre>
==== Output ====
==== Output ====
{{el|This is completely free-form.}}
{{elx|This is completely free-form.}}


==== Input ====
==== Input ====
<pre>{{el|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]}}</pre>
<pre>{{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]}}</pre>
==== Output ====
==== Output ====
{{el|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]}}
{{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]}}


=== Method 2 ===
=== Method 2 ===
Line 18: Line 22:


==== Input ====
==== Input ====
<pre>{{el|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}}</pre>
<pre>{{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}}</pre>
==== Output ====
==== Output ====
{{el|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}}
{{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}}
 
=== Method 3 ===
The third use of this template is for interwiki links, or links to pages on other Wikia wikis. For this, the first undefined variable — or <code>1</code> — is the name of the page on that wiki, and <code>2</code> is the name you want to pipeswitch it. If <code>2</code> is left undefined, it defaults to <code>1</code>; if <code>1</code> is left undefined, it defaults to <nowiki>{{PAGENAME}}</nowiki>.
 
Meanwhile, <code>wiki</code> is for the name of the wiki you want to link to ''as you would type into the url bar''. So whatever comes before the ".wikia.com". If you want the name that displays to be different to the one defined in <code>wiki</code>, use <code>wiki name</code>.


==== Input ====
=== Doctor Who website ===
<pre>{{el|Jar Jar Binks|wiki=starwars|wiki name=Wookieepedia|wiki description=the wiki that covers all licensed ''Star Wars'' works}}</pre>
If you set <code>website name</code> to "<code>Doctor Who website</code>", it will produce:
==== Output ====
{{elx|page url=http://www.bbc.co.uk/programmes/p01l1z04|page name=The Day of the Doctor|website name=Doctor Who website}}
{{el|Jar Jar Binks|wiki=starwars|wiki name=Wookieepedia|wiki description=the wiki that covers all licensed ''Star Wars'' works}}
The specification of <code>website url</code> is not generally necessary for the ''Doctor Who'' website, as it defaults to the current website. This feature is also available for <code>doctorwho.tv</code>, <code>Torchwood website</code> and <code>Class website</code>.
==== Input ====
<pre>{{el|wiki=pybot|wiki name=Pybot Wiki}}</pre>
==== Output ====
{{el|wiki=pybot|wiki name=Pybot Wiki}}


[[Category:Template documentation]]
If linking to an episode page, on the most current ''Doctor Who'' website, {{tlx|bbc.co.uk}} should be used instead. Instructions [[Template:bbc.co.uk|here]].
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 19:17, 21 May 2017

{{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[[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.