<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ATfd_links</id>
	<title>Module:Tfd links - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ATfd_links"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Module:Tfd_links&amp;action=history"/>
	<updated>2026-04-24T08:23:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=Module:Tfd_links&amp;diff=17730&amp;oldid=prev</id>
		<title>DavidWhitten: Created page with &quot;-- This module implements Template:Tfd links local p = {}  local function urlencode(text) 	-- Return equivalent of {{urlencode:text}}. 	local function byte(char) 		return...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=Module:Tfd_links&amp;diff=17730&amp;oldid=prev"/>
		<updated>2019-06-05T18:41:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- This module implements &lt;a href=&quot;/index.php/Template:Tfd_links&quot; title=&quot;Template:Tfd links&quot;&gt;Template:Tfd links&lt;/a&gt; local p = {}  local function urlencode(text) 	-- Return equivalent of {{urlencode:text}}. 	local function byte(char) 		return...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements [[Template:Tfd links]]&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function urlencode(text)&lt;br /&gt;
	-- Return equivalent of {{urlencode:text}}.&lt;br /&gt;
	local function byte(char)&lt;br /&gt;
		return string.format(&amp;#039;%%%02X&amp;#039;, string.byte(char))&lt;br /&gt;
	end&lt;br /&gt;
	return text:gsub(&amp;#039;[^ %w%-._]&amp;#039;, byte):gsub(&amp;#039; &amp;#039;, &amp;#039;+&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function fullurllink(t, a, s)&lt;br /&gt;
	return &amp;#039;[//en.wikipedia.org/w/index.php?title=&amp;#039; .. urlencode(t) .. &amp;#039;&amp;amp;&amp;#039; .. a .. &amp;#039; &amp;#039; .. s .. &amp;#039;]&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local ns = ((args[&amp;#039;catfd&amp;#039;] and args[&amp;#039;catfd&amp;#039;] ~= &amp;#039;&amp;#039;) and &amp;#039;Category&amp;#039;)&lt;br /&gt;
		or ((args[&amp;#039;module&amp;#039;] and args[&amp;#039;module&amp;#039;] ~= &amp;#039;&amp;#039;) and &amp;#039;Module&amp;#039;) &lt;br /&gt;
		or  &amp;#039;Template&amp;#039;&lt;br /&gt;
	local tname = mw.getContentLanguage():ucfirst(args[&amp;#039;1&amp;#039;] or &amp;#039;Example&amp;#039;)&lt;br /&gt;
	local fname = ns .. &amp;#039;:&amp;#039; .. tname&lt;br /&gt;
	local ymd = args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local fullpagename = (ymd ~= &amp;#039;&amp;#039;)&lt;br /&gt;
		and	&amp;#039;WP:Templates for discussion/Log/&amp;#039; .. ymd&lt;br /&gt;
		or frame:preprocess(&amp;#039;{{FULLPAGENAME}}&amp;#039;)&lt;br /&gt;
	local sep = &amp;#039;&amp;amp;nbsp;&amp;lt;b&amp;gt;·&amp;lt;/b&amp;gt; &amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	local res = &amp;#039;&amp;lt;span id=&amp;quot;&amp;#039; .. ns .. &amp;#039;:&amp;#039; .. tname &lt;br /&gt;
		.. &amp;#039;&amp;quot; class=&amp;quot;plainlinks nourlexpansion 1x&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
		.. &amp;#039;[[:&amp;#039; .. ns .. &amp;#039;:&amp;#039; .. tname .. &amp;#039;]]&amp;amp;nbsp;(&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if ymd ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		local dmy = frame:expandTemplate{ title=&amp;#039;date&amp;#039;, args={ymd, &amp;#039;dmy&amp;#039;} } &lt;br /&gt;
		res = res .. &amp;#039;[[&amp;#039; .. fullpagename .. &amp;#039;#&amp;#039; .. fname &lt;br /&gt;
			.. &amp;#039;|&amp;#039; .. dmy .. &amp;#039;]]) (&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	res = res .. fullurllink(fname, &amp;#039;action=edit&amp;#039;, &amp;#039;edit&amp;#039;) .. sep&lt;br /&gt;
	res = res .. &amp;#039;[[&amp;#039; .. ns .. &amp;#039; talk:&amp;#039; .. tname .. &amp;#039;|talk]]&amp;#039; .. sep&lt;br /&gt;
	res = res .. fullurllink(fname, &amp;#039;action=history&amp;#039;, &amp;#039;history&amp;#039;) .. sep&lt;br /&gt;
	if ns ~= &amp;#039;Category&amp;#039; then&lt;br /&gt;
		res = res .. fullurllink(&amp;#039;Special:Whatlinkshere/&amp;#039; &lt;br /&gt;
			.. fname, &amp;#039;limit=5000&amp;#039;, &amp;#039;links&amp;#039;) .. sep&lt;br /&gt;
		res = res .. fullurllink(&amp;#039;Special:Whatlinkshere/&amp;#039; &lt;br /&gt;
			.. fname, &amp;#039;limit=5000&amp;amp;hidelinks=1&amp;#039;, &amp;#039;transclusions&amp;#039;) .. sep&lt;br /&gt;
	end&lt;br /&gt;
	res = res .. fullurllink(&amp;#039;Special:Log&amp;#039;, &amp;#039;page=&amp;#039; &lt;br /&gt;
		.. urlencode(fname), &amp;#039;logs&amp;#039;) .. sep&lt;br /&gt;
	res = res .. &amp;#039;[[Special:PrefixIndex/&amp;#039; .. fname .. &amp;#039;/|subpages]]&amp;#039;&lt;br /&gt;
	res = res .. &amp;#039;&amp;lt;span class=&amp;quot;sysop-show&amp;quot;&amp;gt;&amp;#039; .. sep .. fullurllink(fname, &amp;#039;action=delete&amp;amp;wpReason=&amp;#039; &lt;br /&gt;
		.. urlencode(&amp;#039;[[&amp;#039; .. fullpagename .. &amp;#039;#&amp;#039; .. fname .. &amp;#039;]]&amp;#039;), &amp;#039;delete&amp;#039;) .. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
	res = res .. &amp;#039;)&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>DavidWhitten</name></author>
	</entry>
</feed>