<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fisaacl%2FExpandPageAbbreviation</id>
	<title>Module:Sandbox/isaacl/ExpandPageAbbreviation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fisaacl%2FExpandPageAbbreviation"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ExpandPageAbbreviation&amp;action=history"/>
	<updated>2026-05-28T13:58:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ExpandPageAbbreviation&amp;diff=146529&amp;oldid=prev</id>
		<title>imported&gt;Isaacl: modify to accommodate changes to data subpage</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ExpandPageAbbreviation&amp;diff=146529&amp;oldid=prev"/>
		<updated>2013-04-07T17:10:17Z</updated>

		<summary type="html">&lt;p&gt;modify to accommodate changes to data subpage&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- For unit tests, see [[Module:Sandbox/isaacl/ExpandPageAbbreviation/tests]]&lt;br /&gt;
&lt;br /&gt;
local me = {&lt;br /&gt;
    outputForAbbr = { }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local config&lt;br /&gt;
&lt;br /&gt;
-- if mw.loadData() not supported, use require() instead&lt;br /&gt;
if mw.loadData then&lt;br /&gt;
    config = mw.loadData(&amp;#039;Module:Sandbox/isaacl/ExpandPageAbbreviation/data&amp;#039;)&lt;br /&gt;
else&lt;br /&gt;
    config = require(&amp;#039;Module:Sandbox/isaacl/ExpandPageAbbreviation/data&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
me.phraseForAbbr = config.phraseForAbbr&lt;br /&gt;
&lt;br /&gt;
function me._expand(abbr)&lt;br /&gt;
    if me.outputForAbbr[abbr] ~= nil then&lt;br /&gt;
        return me.outputForAbbr[abbr]&lt;br /&gt;
    else&lt;br /&gt;
        local outputString&lt;br /&gt;
        if me.phraseForAbbr[abbr] == nil then&lt;br /&gt;
            outputString = string.format(&amp;quot;[[%s]]&amp;quot;, abbr)&lt;br /&gt;
            me.outputForAbbr[abbr] = outputString&lt;br /&gt;
        else&lt;br /&gt;
            me.outputForAbbr[abbr] = string.format(&amp;quot;[[%s|%s]]&amp;quot;,&lt;br /&gt;
                abbr, me.phraseForAbbr[abbr])&lt;br /&gt;
            outputString = string.format(&amp;quot;%s (%s)&amp;quot;,&lt;br /&gt;
                me.outputForAbbr[abbr], abbr)&lt;br /&gt;
        end&lt;br /&gt;
        return outputString&lt;br /&gt;
    end&lt;br /&gt;
end  -- function _expand()&lt;br /&gt;
&lt;br /&gt;
function me.expand(frame)&lt;br /&gt;
    local abbr = frame.args[1]&lt;br /&gt;
    return me._expand(abbr)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return me&lt;/div&gt;</summary>
		<author><name>imported&gt;Isaacl</name></author>
	</entry>
</feed>