<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/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://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AURL%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:URL/doc&amp;action=history"/>
	<updated>2026-04-18T12:12:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:URL/doc&amp;diff=3618&amp;oldid=prev</id>
		<title>Wikipedia&gt;Pppery: Add {{used in system}}</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:URL/doc&amp;diff=3618&amp;oldid=prev"/>
		<updated>2021-07-15T23:05:41Z</updated>

		<summary type="html">&lt;p&gt;Add {{used in system}}&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{used in system|in [[MediaWiki:Titleblacklist-custom-URL]]}}&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>Wikipedia&gt;Pppery</name></author>
	</entry>
</feed>