<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://pdkb.chivanet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AURL%2Fdoc</id>
		<title>Module:URL/doc - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://pdkb.chivanet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AURL%2Fdoc"/>
		<link rel="alternate" type="text/html" href="https://pdkb.chivanet.org/wiki/index.php?title=Module:URL/doc&amp;action=history"/>
		<updated>2026-05-01T01:50:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://pdkb.chivanet.org/wiki/index.php?title=Module:URL/doc&amp;diff=1710&amp;oldid=prev</id>
		<title>DavidWhitten: Created page with &quot;{{High-risk|354,000+}} {{module rating|protected}}  This module implements {{tl|URL}} and {{tl|URL2}}. Please see the template page for documentation.  == Lua interface == The...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pdkb.chivanet.org/wiki/index.php?title=Module:URL/doc&amp;diff=1710&amp;oldid=prev"/>
				<updated>2021-03-13T04:54:20Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{High-risk|354,000+}} {{module rating|protected}}  This module implements {{tl|URL}} and {{tl|URL2}}. Please see the template page for documentation.  == Lua interface == The...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-risk|354,000+}}&lt;br /&gt;
{{module rating|protected}}&lt;br /&gt;
&lt;br /&gt;
This module implements {{tl|URL}} and {{tl|URL2}}. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
== Lua interface ==&lt;br /&gt;
The &amp;lt;code&amp;gt;p._url(url, text, msg)&amp;lt;/code&amp;gt; function may be used by other Lua modules. It returns a formatted Wikitext for the given URL, made suitable for line wrapping using {{tag|wbr|x}}. It takes the following parameters:&lt;br /&gt;
&lt;br /&gt;
; url : &amp;#039;&amp;#039;&amp;#039;REQUIRED.&amp;#039;&amp;#039;&amp;#039; The URL to format.&lt;br /&gt;
; text : &amp;#039;&amp;#039;&amp;#039;OPTIONAL.&amp;#039;&amp;#039;&amp;#039; Display text to put in the Wikitext link. Defaults to a pretty version of the URL.&lt;br /&gt;
; msg : &amp;#039;&amp;#039;&amp;#039;OPTIONAL.&amp;#039;&amp;#039;&amp;#039; String. If content is &amp;lt;samp&amp;gt;false&amp;lt;/samp&amp;gt;, &amp;lt;samp&amp;gt;n&amp;lt;/samp&amp;gt; or &amp;lt;samp&amp;gt;N&amp;lt;/samp&amp;gt;, do not emit a help message (using {{tlx|tlx}}) when URL is not given.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following module emits a prettified link to log the user out. It will wrap correctly to most widths.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=lua&amp;gt;&lt;br /&gt;
local url = require(&amp;#039;Module:URL&amp;#039;)._url&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
    return url(&amp;quot;https://en.wikipedia.org/wiki/Special:UserLogout&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{ml|WikidataIB|url2}} – a simpler version which only allows one value&lt;/div&gt;</summary>
		<author><name>DavidWhitten</name></author>	</entry>

	</feed>