Difference between revisions of "Template:External"

From Audacity Wiki
Jump to: navigation, search
m (Deleting critical blank that must not be there)
(Updated instructions allowing for = in URL)
Line 5: Line 5:
 
   
 
   
 
'''''NOTE:''''' This template should be used '''for external links only''' and according to the examples below. (Other templates are available for other uses, see [[Templates]].)
 
'''''NOTE:''''' This template should be used '''for external links only''' and according to the examples below. (Other templates are available for other uses, see [[Templates]].)
 
  
 
==Usage==
 
==Usage==
Line 21: Line 20:
 
:'''1:''' <span style="font-style:italic" class="plainlinks">http://link.to.site</span>
 
:'''1:''' <span style="font-style:italic" class="plainlinks">http://link.to.site</span>
 
:'''2:''' <span style="font-style:italic" class="plainlinks">[http://link.to.site Dummy Site]</span>
 
:'''2:''' <span style="font-style:italic" class="plainlinks">[http://link.to.site Dummy Site]</span>
 +
 +
 +
'''Usage where the URL includes an equals sign'''
 +
 +
Note that due to Wiki parsing issues that if the URL includes an equals sign ( = ) you must append "1=" (without quotes) to the pipe symbol. For example, typing:
 +
<nowiki>{{external|[http://www.google.com/search?q=cats look for cats]}}</nowiki>
 +
 +
will produce the erroneous
 +
 +
:{{external|[http://www.google.com/search?q=cats look for cats]}}
 +
 +
 +
while typing:
 +
 +
<nowiki>{{external|1=[http://www.google.com/search?q=cats look for cats]}}</nowiki>
 +
 +
will produce the intended external URL:
 +
 +
{{external|1=[http://www.google.com/search?q=cats look for cats]}}
 +
 +
 +
This applies equally if the URL is quoted in full e.g. to produce this:
 +
 +
{{external|1=http://www.google.com/search?q=cats}}
 +
 +
 +
you must type:
 +
 +
<nowiki>{{external|1=http://www.google.com/search?q=cats}}</nowiki>
 +
 +
 +
  
 
----
 
----

Revision as of 18:34, 2 September 2007

Purpose

The External template is intended for links to external web sites (i.e. sites not residing on this Wiki). Links using this template will be italicised so as to distinguish them from internal Wiki links, and will not have the "pointing arrow" appended to the link that is default Wiki practice for external links, but which many people find annoying. Additionally, with the later MediaWiki software we now have, Internet Explorer will no longer leave a gap in the text where the pointing arrow would otherwise have been.

NOTE: This template should be used for external links only and according to the examples below. (Other templates are available for other uses, see Templates.)

Usage

Syntax:

Alternative 1: {{external|URL_to_external_site}}
Alternative 2: {{external|[URL_to_external_site Name Of Site]}}

For example, typing this:

1: {{external|http://link.to.site}}
2: {{external|[http://link.to.site Dummy Site]}}

will cause the following to be displayed:

1: http://link.to.site
2: Dummy Site


Usage where the URL includes an equals sign

Note that due to Wiki parsing issues that if the URL includes an equals sign ( = ) you must append "1=" (without quotes) to the pipe symbol. For example, typing:

{{external|[http://www.google.com/search?q=cats look for cats]}}

will produce the erroneous

{{{1}}} 


while typing:

{{external|1=[http://www.google.com/search?q=cats look for cats]}}

will produce the intended external URL:

look for cats 


This applies equally if the URL is quoted in full e.g. to produce this:

http://www.google.com/search?q=cats 


you must type:

{{external|1=http://www.google.com/search?q=cats}}




Ignore the following, it's only a representation of formatting and a parameter dummy.

{{{1}}}