<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikialpha.co/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stepnow987</id>
	<title>WikiAlpha - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikialpha.co/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stepnow987"/>
	<link rel="alternate" type="text/html" href="https://wikialpha.co/wiki/Special:Contributions/Stepnow987"/>
	<updated>2026-04-18T23:41:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>https://wikialpha.co/index.php?title=Template:URL/doc&amp;diff=212</id>
		<title>Template:URL/doc</title>
		<link rel="alternate" type="text/html" href="https://wikialpha.co/index.php?title=Template:URL/doc&amp;diff=212"/>
		<updated>2025-04-29T05:21:50Z</updated>

		<summary type="html">&lt;p&gt;Stepnow987: Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;gt; {{for|encoding URLs|Help:Magic words#urlencode}} {{Used in system|in MediaWiki:Titleblacklist-custom-URL}} {{Lua|Module:URL}}  This template creates a formatted external link. It formats the appearance of &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;displayed&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; URLs, while making them &amp;#039;&amp;#039;machine-readable&amp;#039;&amp;#039; as part of emitted microformat meta-data, inside templates such as infoboxes.  {{Anchor|Parm2}}&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If you...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{for|encoding URLs|Help:Magic words#urlencode}}&lt;br /&gt;
{{Used in system|in [[MediaWiki:Titleblacklist-custom-URL]]}}&lt;br /&gt;
{{Lua|Module:URL}}&lt;br /&gt;
&lt;br /&gt;
This template creates a formatted external link. It formats the appearance of &#039;&#039;&#039;&#039;&#039;displayed&#039;&#039;&#039;&#039;&#039; URLs, while making them &#039;&#039;machine-readable&#039;&#039; as part of emitted [[microformat]] meta-data, inside templates such as infoboxes.&lt;br /&gt;
&lt;br /&gt;
{{Anchor|Parm2}}&#039;&#039;&#039;Note:&#039;&#039;&#039; If you wish to display text instead of the URL (e.g. [https://example.com website] instead of {{URL|example.com}}), please &#039;&#039;&#039;do not use this template&#039;&#039;&#039;. Instead, consider using normal [[Help:Link#External_links|wiki markup]] or [[Template:Official website]]. Displaying text instead of the url will render the microformat data invalid.&lt;br /&gt;
&lt;br /&gt;
For web-based references, please see [[Wikipedia:Citation templates]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{URL|&amp;lt;/nowiki&amp;gt;&#039;&#039;example.com&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** The first parameter is parsed to decide whether it is a complete URL. If it doesn&#039;t start with a URI scheme (such as &amp;quot;http:&amp;quot;, &amp;quot;https:&amp;quot;, or &amp;quot;ftp:&amp;quot;), the prefix &amp;quot;http://&amp;quot; is prepended to the specified generated target URL of the link.&lt;br /&gt;
** Parameter 2 (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{URL|&amp;lt;/nowiki&amp;gt;&#039;&#039;url name&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;&#039;&#039;optional display text&#039;&#039;&#039;&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) is &#039;&#039;&#039;deprecated&#039;&#039;&#039;. See [[#Parm2|note]] above for more information and alternative templates.&lt;br /&gt;
&lt;br /&gt;
=== URL with {{=}} character should use numbered parameters ===&lt;br /&gt;
If the URL contains an equals sign, as is common in a query string, the parameter {{para|1}} should be used for the URL (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{URL|&amp;lt;/nowiki&amp;gt;1=&#039;&#039;example.com&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). 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&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | 1=https://example.com/?id=42 }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The template attempts to handle simple cases where a URL containing an equals sign is specified without the necessary {{para|1}}, but it is still better practice to pass it in.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;deprecated&#039;&#039;&#039; second parameter for the displayed text, if present in legacy uses, &#039;&#039;&#039;must&#039;&#039;&#039; also be explicitly numbered if the first parameter is explicitly numbered (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{URL|&amp;lt;/nowiki&amp;gt;1=&#039;&#039;url name&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;2=&#039;&#039;optional display text&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;); otherwise it will override the value of the first parameter:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | 1=https://example.com/?id=42 | 2=Title }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
The template displays an instructional message if there is no input:&lt;br /&gt;
{{nowiki template demo|format=inline|code=&amp;lt;nowiki&amp;gt;{{URL| }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The template wraps the output in {{tag|span|attribs=class=&amp;quot;url&amp;quot;}} (see {{Section link||Microformat}}) and adds [[HTML element#wbr|&amp;amp;lt;wbr/&amp;amp;gt;]] before displayed periods:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | www.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The use of [[HTTP|http://]], [[HTTPS|https://]], a [[URL#prurl|protocol-relative URL]], or a different protocol is preserved in the URL but is not shown in the [[link text]]:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | http://www.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | https://www.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | //www.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | ftp://www.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | ftp://ftp.example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | irc://irc.example.com/channel }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
If the path is only a slash (&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) it is not displayed in the link text:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | http://example.com/ }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The template also adds [[HTML element#wbr|&amp;amp;lt;wbr/&amp;amp;gt;]] before any displayed slashes (&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;) in the path:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | example.com/path }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | https://example.com/path }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | www.example.com/path/ }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | https://www.example.com/path/ }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Upper case in the [[domain name]] is preserved in the URL, but not in the link text (upper case in the path is not changed):&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | EXAMPLE.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | Example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | Example.com/PathPath }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
For a URL containing an equal sign (&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;), use {{para|1}}:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL |1= example.com/path?page=42 }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL |1= https://example.com/path?page=42  }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The template currently supports an optional second parameter which is used as the link text, though its use is discouraged (see [[#Parm2|note]]):&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | www.example.com | example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | example.com | Example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL |1= example.com/path?page=42 |2= example.com }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The URL may be obtained from [[Wikidata]] as shown in this example for {{Q|23317}}, where the property {{Prop|856}} contains {{Wikidata|property|Q23317|P856}}:&lt;br /&gt;
{{nowiki template demo|format=inline|output=nowiki+|code=&amp;lt;nowiki&amp;gt;{{URL | {{Wikidata|property|Q23317|P856}} }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Microformat ==&lt;br /&gt;
The template wraps the &#039;&#039;displayed&#039;&#039; URL with a &amp;lt;code&amp;gt;class=&amp;quot;url&amp;quot;&amp;lt;/code&amp;gt; so that it is included in any parent [[microformat]] which takes a URL parameter{{Snd}} see [[WP:UF|our microformats project]].&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;A template to display and format a URL, inside other tempates&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;URL&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The URL to be linked&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Display text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The text to be displayed instead of the URL. Deprecated&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;deprecated&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Maintenance categories ==&lt;br /&gt;
* {{clc|Pages using URL template with unknown parameters}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{Tl|URL2}}&lt;br /&gt;
* {{ml|WikidataIB|url2}}&lt;br /&gt;
* {{Tl|Official URL}}&lt;br /&gt;
* {{Tl|Official website}}&lt;br /&gt;
* {{Tl|Plain link}}&lt;br /&gt;
* {{Tl|Wbr}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:External link templates]]&lt;br /&gt;
[[Category:Templates that add a tracking category]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stepnow987</name></author>
	</entry>
	<entry>
		<id>https://wikialpha.co/index.php?title=Template:URL&amp;diff=211</id>
		<title>Template:URL</title>
		<link rel="alternate" type="text/html" href="https://wikialpha.co/index.php?title=Template:URL&amp;diff=211"/>
		<updated>2025-04-29T05:19:36Z</updated>

		<summary type="html">&lt;p&gt;Stepnow987: Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{#invoke:URL|url}}&amp;lt;/includeonly&amp;gt;{{#invoke:Check for unknown parameters|check|unknown={{main other|_VALUE_{{PAGENAME}}}}|preview=Page using Template:URL with unknown parameter &amp;quot;_VALUE_&amp;quot;|ignoreblank=y | 1 | 2 }}&amp;lt;noinclude&amp;gt;{{documentation}}&amp;lt;/noinclude&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#invoke:URL|url}}&amp;lt;/includeonly&amp;gt;{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using URL template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:URL]] with unknown parameter &amp;quot;_VALUE_&amp;quot;|ignoreblank=y | 1 | 2 }}&amp;lt;noinclude&amp;gt;{{documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stepnow987</name></author>
	</entry>
</feed>