<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dmw-wiki.biffify.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadgets%2FluaImportLinks%2Fmain.js</id>
	<title>MediaWiki:Gadgets/luaImportLinks/main.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dmw-wiki.biffify.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadgets%2FluaImportLinks%2Fmain.js"/>
	<link rel="alternate" type="text/html" href="https://dmw-wiki.biffify.com/wiki/index.php?title=MediaWiki:Gadgets/luaImportLinks/main.js&amp;action=history"/>
	<updated>2026-11-05T05:46:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://dmw-wiki.biffify.com/wiki/index.php?title=MediaWiki:Gadgets/luaImportLinks/main.js&amp;diff=27527&amp;oldid=prev</id>
		<title>imported&gt;Westgrass: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://dmw-wiki.biffify.com/wiki/index.php?title=MediaWiki:Gadgets/luaImportLinks/main.js&amp;diff=27527&amp;oldid=prev"/>
		<updated>2025-11-01T06:43:51Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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 06:43, 1 November 2025&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>imported&gt;Westgrass</name></author>
	</entry>
	<entry>
		<id>https://dmw-wiki.biffify.com/wiki/index.php?title=MediaWiki:Gadgets/luaImportLinks/main.js&amp;diff=27526&amp;oldid=prev</id>
		<title>&gt;RheingoldRiver: Created page with &quot;/* Link to imported modules from Lua code */ $(function() {     var config = mw.config.get([         &#039;wgCanonicalNamespace&#039;,         &#039;wgFormattedNamespaces&#039;     ]);     if (config.wgCanonicalNamespace !== &#039;Module&#039;) {         return;     }     var localizedNamespace = config.wgFormattedNamespaces[828];     $(&#039;.s1, .s2, .s&#039;).each(function() {         var $this = $(this);         var html = $this.html();         var quote = html[0];         var isLongStringQuote = quote ===...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dmw-wiki.biffify.com/wiki/index.php?title=MediaWiki:Gadgets/luaImportLinks/main.js&amp;diff=27526&amp;oldid=prev"/>
		<updated>2025-02-25T20:13:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span class=&quot;autocomment&quot;&gt;Link to imported modules from Lua code: &lt;/span&gt; $(function() {     var config = mw.config.get([         &amp;#039;wgCanonicalNamespace&amp;#039;,         &amp;#039;wgFormattedNamespaces&amp;#039;     ]);     if (config.wgCanonicalNamespace !== &amp;#039;Module&amp;#039;) {         return;     }     var localizedNamespace = config.wgFormattedNamespaces[828];     $(&amp;#039;.s1, .s2, .s&amp;#039;).each(function() {         var $this = $(this);         var html = $this.html();         var quote = html[0];         var isLongStringQuote = quote ===...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Link to imported modules from Lua code */&lt;br /&gt;
$(function() {&lt;br /&gt;
    var config = mw.config.get([&lt;br /&gt;
        &amp;#039;wgCanonicalNamespace&amp;#039;,&lt;br /&gt;
        &amp;#039;wgFormattedNamespaces&amp;#039;&lt;br /&gt;
    ]);&lt;br /&gt;
    if (config.wgCanonicalNamespace !== &amp;#039;Module&amp;#039;) {&lt;br /&gt;
        return;&lt;br /&gt;
    }&lt;br /&gt;
    var localizedNamespace = config.wgFormattedNamespaces[828];&lt;br /&gt;
    $(&amp;#039;.s1, .s2, .s&amp;#039;).each(function() {&lt;br /&gt;
        var $this = $(this);&lt;br /&gt;
        var html = $this.html();&lt;br /&gt;
        var quote = html[0];&lt;br /&gt;
        var isLongStringQuote = quote === &amp;#039;[&amp;#039;;&lt;br /&gt;
        var quoteRE = new RegExp(&amp;#039;^\\&amp;#039; + quote + &amp;#039;|\\&amp;#039; + quote + &amp;#039;$&amp;#039;, &amp;#039;g&amp;#039;);&lt;br /&gt;
        if (isLongStringQuote) {&lt;br /&gt;
            quoteRE = /^\[\[|\]\]$/g;&lt;br /&gt;
        }&lt;br /&gt;
        var name = html.replace(quoteRE, &amp;#039;&amp;#039;);&lt;br /&gt;
        var isEnglishPrefix = name.startsWith(&amp;#039;Module:&amp;#039;);&lt;br /&gt;
        var isLocalizedPrefix = name.startsWith(localizedNamespace + &amp;#039;:&amp;#039;);&lt;br /&gt;
        var isDevPrefix = name.startsWith(&amp;#039;Dev:&amp;#039;);&lt;br /&gt;
        if (isEnglishPrefix || isLocalizedPrefix || isDevPrefix) {&lt;br /&gt;
            var attrs = {&lt;br /&gt;
                href: mw.util.getUrl(name)&lt;br /&gt;
            };&lt;br /&gt;
            if (isDevPrefix) {&lt;br /&gt;
                attrs.href = &amp;#039;https://commons.wiki.gg/wiki/Module:&amp;#039; + mw.util.wikiUrlencode(name.replace(&amp;#039;Dev:&amp;#039;, &amp;#039;&amp;#039;));&lt;br /&gt;
                attrs.target = &amp;#039;_blank&amp;#039;;&lt;br /&gt;
                attrs.rel = &amp;#039;noopener&amp;#039;;&lt;br /&gt;
            }&lt;br /&gt;
            var link = mw.html.element(&amp;#039;a&amp;#039;, attrs, name);&lt;br /&gt;
            var str = quote + link + quote;&lt;br /&gt;
            if (isLongStringQuote) {&lt;br /&gt;
                str = &amp;#039;[[&amp;#039; + link + &amp;#039;]]&amp;#039;;&lt;br /&gt;
            }&lt;br /&gt;
            $this.html(str);&lt;br /&gt;
        }&lt;br /&gt;
    });&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>&gt;RheingoldRiver</name></author>
	</entry>
</feed>