Difference between revisions of "Template:URL/doc"
DESiegel60 (talk | contribs) m |
DESiegel60 (talk | contribs) m (→Parameters) |
||
Line 26: | Line 26: | ||
|- | |- | ||
− | |''' | + | |'''quote2''' |
|Character placed after the URL | |Character placed after the URL | ||
|Optional. Should be paired with quote1. Angle brackets (< & >) are used if neither quote nor quote1 & quote2 are specified. | |Optional. Should be paired with quote1. Angle brackets (< & >) are used if neither quote nor quote1 & quote2 are specified. | ||
|} | |} | ||
− | |||
− | |||
==Examples== | ==Examples== |
Latest revision as of 16:07, 28 October 2009
Documentation for Template:URL, transcluded from Template:URL/doc
Purpose
This template is designed to format a URL for display on a wiki page. Unfortunately, there appears to be no way to include nowiki tags in the template so that the URL is not rendered as a link. This means this template is pointless when used with image URLs.
Parameters
Name | Value | Notes |
---|---|---|
URL or first unnamed parameter |
The text of the URL to render | Required. |
quote | Character placed before and after the URL | Optional. Ignored if Quote1 and Quote2 are specified. Angle brackets (< & >) are used if neither this nor quote1 & quote2 are specified. |
quote1 | Character placed before the URL | Optional. Should be paired with quote2. Angle brackets (< & >) are used if neither quote nor quote1 & quote2 are specified. |
quote2 | Character placed after the URL | Optional. Should be paired with quote1. Angle brackets (< & >) are used if neither quote nor quote1 & quote2 are specified. |
Examples
1.
{{URL|http://www.locusmag.com/index/yr2003/t76.htm#A3463}}
gives:
<http://www.locusmag.com/index/yr2003/t76.htm#A3463>
2.
{{URL|URL=http://www.locusmag.com/index/yr2003/t76.htm#A3463}}
gives:
<http://www.locusmag.com/index/yr2003/t76.htm#A3463>
3.
{{URL|http://www.locusmag.com/index/yr2003/t76.htm#A3463|quote="}}
gives:
"http://www.locusmag.com/index/yr2003/t76.htm#A3463"
4.
{{URL|http://www.locusmag.com/index/yr2003/t76.htm#A3463|quote1=(|quote2=)}}
gives:
(http://www.locusmag.com/index/yr2003/t76.htm#A3463)