<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/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://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3AURL%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:URL/doc&amp;action=history"/>
	<updated>2026-04-08T02:29:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:URL/doc&amp;diff=13514&amp;oldid=prev</id>
		<title>Caleb Cooper: Caleb Cooper moved page Module:Url/doc to Module:URL/doc without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:URL/doc&amp;diff=13514&amp;oldid=prev"/>
		<updated>2020-10-21T18:11:11Z</updated>

		<summary type="html">&lt;p&gt;Caleb Cooper moved page &lt;a href=&quot;/index.php?title=Module:Url/doc&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Url/doc (page does not exist)&quot;&gt;Module:Url/doc&lt;/a&gt; to &lt;a href=&quot;/Module:URL/doc&quot; title=&quot;Module:URL/doc&quot;&gt;Module:URL/doc&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:11, 21 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:URL/doc&amp;diff=13511&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{High-risk}} {{module rating|protected}} {{Commons Import}}  This module implements {{tl|URL}} and {{tl|URL2}}. Please see the template page for documentation.  == Lua interf...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:URL/doc&amp;diff=13511&amp;oldid=prev"/>
		<updated>2020-10-21T18:09:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{High-risk}} {{module rating|protected}} {{Commons Import}}  This module implements {{tl|URL}} and {{tl|URL2}}. Please see the template page for documentation.  == Lua interf...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-risk}}&lt;br /&gt;
{{module rating|protected}}&lt;br /&gt;
{{Commons Import}}&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 warp 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;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>