<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.digitalcellulose.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AShortcut_box</id>
	<title>Module:Shortcut box - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.digitalcellulose.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AShortcut_box"/>
	<link rel="alternate" type="text/html" href="https://www.digitalcellulose.com/wiki/index.php?title=Module:Shortcut_box&amp;action=history"/>
	<updated>2026-06-28T19:23:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://www.digitalcellulose.com/wiki/index.php?title=Module:Shortcut_box&amp;diff=98260&amp;oldid=prev</id>
		<title>Adminsuzy: Created page with &quot;local export = {}  function export.show(frame) 	local output = {} 	local args = frame:getParent().args 	local demo = false  	local FULLPAGENAME = mw.title.getCurrentTitle().fu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.digitalcellulose.com/wiki/index.php?title=Module:Shortcut_box&amp;diff=98260&amp;oldid=prev"/>
		<updated>2018-08-27T20:42:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local export = {}  function export.show(frame) 	local output = {} 	local args = frame:getParent().args 	local demo = false  	local FULLPAGENAME = mw.title.getCurrentTitle().fu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local export = {}&lt;br /&gt;
&lt;br /&gt;
function export.show(frame)&lt;br /&gt;
	local output = {}&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local demo = false&lt;br /&gt;
&lt;br /&gt;
	local FULLPAGENAME = mw.title.getCurrentTitle().fullText&lt;br /&gt;
	local BASEPAGENAME, SUBPAGENAME = FULLPAGENAME:match(&amp;quot;^(.-)/([^/]-)$&amp;quot;)&lt;br /&gt;
	-- BASEPAGENAME = BASEPAGENAME or FULLPAGENAME&lt;br /&gt;
	&lt;br /&gt;
	if FULLPAGENAME == frame:getParent():getTitle() then&lt;br /&gt;
		demo = true&lt;br /&gt;
	end&lt;br /&gt;
	output[#output + 1] = '&amp;lt;div class=&amp;quot;noprint plainlinks shortcut-box&amp;quot;&amp;gt;'&lt;br /&gt;
&lt;br /&gt;
	if args.temp then&lt;br /&gt;
		output[#output + 1] = &amp;quot;Temporary [[Wiktionary:Shortcut|shortcut&amp;quot; .. (args[2] and 's' or '') .. &amp;quot;]]:&amp;lt;br/&amp;gt;&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		output[#output + 1] = &amp;quot;[[Wiktionary:Shortcut|Shortcut&amp;quot; .. (args[2] and 's' or '') .. &amp;quot;]]:&amp;lt;br/&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local attn = false&lt;br /&gt;
&lt;br /&gt;
	for i, shcut in ipairs(args) do&lt;br /&gt;
		local title = mw.title.new(shcut)&lt;br /&gt;
		&lt;br /&gt;
		if not title then&lt;br /&gt;
			output[#output + 1] = '&amp;lt;span class=&amp;quot;attentionseeking&amp;quot;&amp;gt;(&amp;lt;code&amp;gt;' .. mw.text.nowiki(shcut) .. '&amp;lt;/code&amp;gt;)&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;'&lt;br /&gt;
			attn = true&lt;br /&gt;
		else&lt;br /&gt;
			local iattn = false&lt;br /&gt;
&lt;br /&gt;
			local item = '[' .. tostring(mw.uri.fullUrl(shcut, 'redirect=no')) .. ' ' .. shcut .. ']'&lt;br /&gt;
			if title.namespace == 10 then&lt;br /&gt;
				item = '&amp;lt;code&amp;gt;{{[' .. tostring(mw.uri.fullUrl(shcut, 'redirect=no')) .. ' ' .. title.text .. ']}}&amp;lt;/code&amp;gt;'&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if not title.exists then&lt;br /&gt;
				attn = true&lt;br /&gt;
				local query = 'action=edit&amp;amp;redlink=1&amp;amp;preloadtext=' .. mw.uri.encode('#REDIRECT [[' .. FULLPAGENAME .. ']]')&lt;br /&gt;
				if title.namespace == 10 then&lt;br /&gt;
					item = '&amp;lt;code&amp;gt;{{[' .. tostring(mw.uri.fullUrl(shcut, query)) .. ' &amp;lt;span style=&amp;quot;color:#c20;&amp;quot;&amp;gt;' .. title.text .. '&amp;lt;/span&amp;gt;]}}&amp;lt;/code&amp;gt;'&lt;br /&gt;
				else&lt;br /&gt;
					item = '[' .. tostring(mw.uri.fullUrl(shcut, query)) .. ' &amp;lt;span style=&amp;quot;color:#c20;&amp;quot;&amp;gt;' .. shcut .. '&amp;lt;/span&amp;gt;]'&lt;br /&gt;
				end&lt;br /&gt;
			elseif not demo then&lt;br /&gt;
				local content = title:getContent()&lt;br /&gt;
				local target = content:match(&amp;quot;^#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[%s*:?%s*(.-)[#%]]&amp;quot;)&lt;br /&gt;
				if not target then&lt;br /&gt;
					iattn = true&lt;br /&gt;
				else&lt;br /&gt;
					target = target:gsub(&amp;quot;_&amp;quot;, &amp;quot; &amp;quot;)&lt;br /&gt;
					local tns, tpg = target:match(&amp;quot;%s*(.-)%s*:%s*(.*)%s*&amp;quot;)&lt;br /&gt;
					if mw.site.namespaces[tns] then&lt;br /&gt;
						tns = mw.site.namespaces[tns].name&lt;br /&gt;
						target = tns .. ':' .. tpg&lt;br /&gt;
					end&lt;br /&gt;
					&lt;br /&gt;
					if title.namespace == 10 then&lt;br /&gt;
						if SUBPAGENAME == 'documentation' then&lt;br /&gt;
							iattn = (target ~= BASEPAGENAME)&lt;br /&gt;
						else&lt;br /&gt;
							iattn = (target ~= FULLPAGENAME)&lt;br /&gt;
						end&lt;br /&gt;
					else&lt;br /&gt;
						if SUBPAGENAME == 'documentation' then&lt;br /&gt;
							iattn = (target ~= BASEPAGENAME) and (target ~= FULLPAGENAME)&lt;br /&gt;
						else&lt;br /&gt;
							iattn = (target ~= FULLPAGENAME) and (target ~= (FULLPAGENAME .. '/documentation'))&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			if iattn then&lt;br /&gt;
				item = '&amp;lt;span class=&amp;quot;attentionseeking&amp;quot;&amp;gt;' .. item .. '&amp;lt;/span&amp;gt;'&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			output[#output + 1] = item .. '&amp;lt;br/&amp;gt;'&lt;br /&gt;
			&lt;br /&gt;
			attn = attn or iattn&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if not args.nocat then&lt;br /&gt;
		if attn then&lt;br /&gt;
			output[#output + 1] = '[[Category:Shortcut boxes needing attention]]'	&lt;br /&gt;
		end&lt;br /&gt;
		if SUBPAGENAME ~= 'documentation' then&lt;br /&gt;
			output[#output + 1] = '[[Category:Wiktionary pages with shortcuts]]'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	output[#output + 1] = '&amp;lt;/div&amp;gt;'&lt;br /&gt;
	&lt;br /&gt;
	return table.concat(output)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return export&lt;/div&gt;</summary>
		<author><name>Adminsuzy</name></author>
		
	</entry>
</feed>