வார்ப்புரு:URL/doc
{{Documentation subpage}}
 {{lua|Module:URL}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
 
 This template can be used to create a formatted external link.
 ::''Note - this template is for formatting the appearance of '''''displayed''''' URLs, while making them ''machine-readable'' as part of emitted [[microformat]] meta-data. 
 
 If you wish to display text instead of the URL (e.g. &quot;[http://bbc.co.uk BBC website]&quot; instead of {{URL|bbc.co.uk}}), please '''do not use this template'''.
 
 For web-based references, please see [[Wikipedia:Citation templates]]''
 
 == Usage ==
 * &lt;code&gt;&lt;nowiki&gt;{{URL|&lt;/nowiki&gt;1=''url name''&lt;nowiki&gt;|&lt;/nowiki&gt;2=''optional display text''&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;
 ** The first parameter is parsed to see if it takes the form of a complete URL. If it doesn't start with a URI scheme  (such as &quot;http:&quot;, &quot;https:&quot;, or &quot;ftp:&quot;), an &quot;http://&quot; prefix will be prepended to the specified generated target URL of the link.
 ** Parameter 2 is '''deprecated'''. 
 
 '''Warning:''' The parameter 1 must be numbered explicitly if the URL contains an equal sign, as is common in the query string. This applies when the value of the URL is unknown, for example when this template is used in another template specifying the effective URL as a variable value. The ''deprecated'' second parameter for the displayed text, if present, '''must''' also be explicitly numbered if the first parameter is explicitly numbered; otherwise it will override the value of the first parameter.
 
 === Examples ===
 {|class=&quot;wikitable&quot;
 |-
 ! Code !! Result
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt; }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} }} 
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | }} 
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| EXAMPLE.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | EXAMPLE.com }} 
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | example.com }} 
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| www.example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | www.example.com }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| https://www.example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | https://www.example.com }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| ftp://www.example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | ftp://www.example.com }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| ftp://ftp.example.com }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | ftp://ftp.example.com }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com/ }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com/ }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com/path }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com/path }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| irc://irc.example.com/channel }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | irc://irc.example.com/channel }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| www.example.com/foo }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | www.example.com/foo }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com/path/ }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com/path/ }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| www.example.com/foo/ }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | www.example.com/foo/ }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| 1=http://www.example.com/path?section=17 }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | 1=http://www.example.com/path?section=17 }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| 1=www.example.com/foo?page=42 }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | 1=www.example.com/foo?page=42 }}
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com/foo | link }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com/foo | link }} ('''Deprecated''')
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| www.example.com/foo | link }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | www.example.com/foo | link}} ('''Deprecated''')
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| http://www.example.com/foo/ | link }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | http://www.example.com/foo/ | link }} ('''Deprecated''')
 |-
 | &lt;tt&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt; {{BASEPAGENAME}} &lt;nowiki&gt;| www.example.com/foo/ | link }}&lt;/nowiki&gt;&lt;/tt&gt;
 | {{ {{BASEPAGENAME}} | www.example.com/foo/ | link}} ('''Deprecated''')
 |}
 
 == Microformat==
 The template wraps the ''displayed'' URL with a &lt;code&gt;class=&quot;url&quot;&lt;/code&gt; so that it is included in any parent [[microformat]] which takes a URL parameter - see [[WP:UF|our microformats project]].
 
 == TemplateData ==
 {{TemplateDataHeader}}
 &lt;templatedata&gt;{
 &quot;description&quot;: &quot;A template to display and format a URL&quot;,
 &quot;params&quot;: {
   &quot;1&quot;: {
     &quot;label&quot;: &quot;URL&quot;,
     &quot;description&quot;: &quot;The URL to be linked&quot;,
     &quot;type&quot;: &quot;string&quot;,
     &quot;required&quot;: true
   },
   &quot;2&quot;: {
     &quot;label&quot;: &quot;Display text&quot;,
     &quot;description&quot;: &quot;The text to be displayed instead of the URL. '''Deprecated'''&quot;,
     &quot;type&quot;: &quot;string&quot;,
     &quot;required&quot;: false
   }
 }}&lt;/templatedata&gt;
 
 == See also ==
 * {{tl|official website}}
 * {{tl|plain link}}
 
 &lt;includeonly&gt;
 &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;
 [[பகுப்பு:வெளியிணைப்பு வார்ப்புருக்கள்]]