<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ARfD</id>
	<title>Module:RfD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ARfD"/>
	<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:RfD&amp;action=history"/>
	<updated>2026-05-01T09:01:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://salisford.net/index.php?title=Module:RfD&amp;diff=756&amp;oldid=prev</id>
		<title>Cascadia: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:RfD&amp;diff=756&amp;oldid=prev"/>
		<updated>2023-04-05T14:39:35Z</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 14:39, 5 April 2023&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>Cascadia</name></author>
	</entry>
	<entry>
		<id>https://salisford.net/index.php?title=Module:RfD&amp;diff=755&amp;oldid=prev</id>
		<title>wp&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:RfD&amp;diff=755&amp;oldid=prev"/>
		<updated>2022-10-21T21:10:03Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/index.php?title=Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require('strict')&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local getTargetFromText = require('Module:Redirect').getTargetFromText&lt;br /&gt;
local messageBox&lt;br /&gt;
&lt;br /&gt;
local mboxText = &amp;quot;'''The purpose of this redirect is currently being discussed by the Wikipedia community.&amp;quot;&lt;br /&gt;
	.. &amp;quot; The outcome of the discussion may result in a change of this page, or possibly its deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]].''' &amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
	.. &amp;quot; Please share your thoughts on the matter at '''[[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|this redirect's entry]]''' on the [[Wikipedia:Redirects for discussion|Redirects for discussion]] page.&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
	.. &amp;quot;  '''Click on the link below''' to go to the current destination page.&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
	.. &amp;quot;&amp;lt;small&amp;gt;Please notify the good-faith creator and any main contributors of the redirect by placing &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;[[Wikipedia:Substitution|subst]]:[[Template:Rfd notice|Rfd notice]]&amp;amp;#124;%s&amp;amp;#125;&amp;amp;#125; &amp;amp;#126;&amp;amp;#126;&amp;amp;#126;&amp;amp;#126;&amp;lt;/code&amp;gt; on their talk page.&amp;lt;/small&amp;gt;&amp;quot;&lt;br /&gt;
local deleteReason = '[[Wikipedia:Redirects for discussion]] debate closed as delete'&lt;br /&gt;
local messageOnTransclusionsStandard = '&amp;amp;lsaquo;The template below is included via a redirect'&lt;br /&gt;
    .. ' ([[%s]]) that is under discussion. See [[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|redirects for discussion]]'&lt;br /&gt;
    .. ' to help reach a consensus.&amp;amp;rsaquo;'&lt;br /&gt;
local messageOnTransclusionsTiny = '&amp;amp;lsaquo;[[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|See RfD]]&amp;amp;rsaquo;'&lt;br /&gt;
&lt;br /&gt;
local function makeTransclusionTag(args, redirect)&lt;br /&gt;
	local discussionPage = args[1] and mw.text.trim(args[1])&lt;br /&gt;
	if not discussionPage or discussionPage == '' then&lt;br /&gt;
		discussionPage = redirect&lt;br /&gt;
	end&lt;br /&gt;
	local visClasses = {&lt;br /&gt;
		['autoconfirmed']='autoconfirmed-show',&lt;br /&gt;
		['extendedconfirmed']='extendedconfirmed-show sysop-show'&lt;br /&gt;
	} -- More can be added if justified by situation&lt;br /&gt;
	local sizeAttrs = {&lt;br /&gt;
		['standard'] = {&lt;br /&gt;
			['tags'] = {'&amp;lt;div ', '&amp;lt;/div&amp;gt;'},&lt;br /&gt;
			['style'] = ' border-bottom:1px solid #AAAAAA;',&lt;br /&gt;
			['message'] = messageOnTransclusionsStandard:format(redirect, args.year, args.month, args.day, discussionPage)&lt;br /&gt;
		},&lt;br /&gt;
		['tiny'] = {&lt;br /&gt;
			['tags'] = {' &amp;lt;span ', '&amp;lt;/span&amp;gt; '},&lt;br /&gt;
			['style'] = '',&lt;br /&gt;
			['message'] = messageOnTransclusionsTiny:format(args.year, args.month, args.day, discussionPage)&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	local size = sizeAttrs[args.showontransclusion] and args.showontransclusion or 'standard'&lt;br /&gt;
	local tags = sizeAttrs[size]['tags']&lt;br /&gt;
	local visibility = visClasses[args.transclusiontagvisibility] or ''&lt;br /&gt;
	local classes = 'class=&amp;quot;boilerplate metadata plainlinks ' .. visibility .. '&amp;quot; '&lt;br /&gt;
	local id = 'id=&amp;quot;rfd-t&amp;quot; '&lt;br /&gt;
	local style = 'style=&amp;quot;background-color: transparent; padding: 0; font-size:xx-small; color:#000000;'&lt;br /&gt;
		.. 'text-align:left;' .. sizeAttrs[size]['style'] .. '&amp;quot; '&lt;br /&gt;
	return tags[1] .. classes .. id .. style .. '&amp;gt;' .. sizeAttrs[size]['message'] .. tags[2]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeRfdNotice(args)&lt;br /&gt;
	local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
	if not messageBox then&lt;br /&gt;
		messageBox = require('Module:Message box')&lt;br /&gt;
	end&lt;br /&gt;
	local discussionPage = args[1] and mw.text.trim(args[1])&lt;br /&gt;
	if discussionPage == '' then&lt;br /&gt;
		discussionPage = nil&lt;br /&gt;
	end&lt;br /&gt;
	local target = getTargetFromText(args.content)&lt;br /&gt;
	local isError = not target or not mw.title.new(target)&lt;br /&gt;
	local category&lt;br /&gt;
	if args.category then&lt;br /&gt;
		category = args.category&lt;br /&gt;
	elseif args.timestamp then&lt;br /&gt;
                -- Extract stable year and month from timestamp; args.month and args.year can change if the discussion is relisted (see [[Special:Diff/896302321]])&lt;br /&gt;
                local lang = mw.language.getContentLanguage()&lt;br /&gt;
                local catMonth = lang:formatDate('F', args.timestamp)&lt;br /&gt;
                local catYear = lang:formatDate('Y', args.timestamp)&lt;br /&gt;
		category = string.format('[[Category:Redirects for discussion from %s %s|%s]][[Category:All redirects for discussion|%s]]', catMonth, catYear, currentTitle.text, currentTitle.text)&lt;br /&gt;
	else&lt;br /&gt;
		category = string.format('[[Category:Redirects for discussion|%s]][[Category:All redirects for discussion|%s]]', currentTitle.text, currentTitle.text)&lt;br /&gt;
	end&lt;br /&gt;
	if category then category = category..'[[Category:Temporary maintenance holdings]]' end&lt;br /&gt;
	return string.format('%s&amp;lt;span id=&amp;quot;delete-reason&amp;quot; style=&amp;quot;display:none;&amp;quot;&amp;gt;%s&amp;lt;/span&amp;gt;%s%s',&lt;br /&gt;
		messageBox.main('mbox', {&lt;br /&gt;
			type = 'delete',&lt;br /&gt;
			name = 'RfD',&lt;br /&gt;
			image = 'none',&lt;br /&gt;
			text = string.format(mboxText, args.year, args.month, args.day, discussionPage or currentTitle.prefixedText, mw.text.nowiki(currentTitle.prefixedText))&lt;br /&gt;
		}),&lt;br /&gt;
		mw.uri.encode(deleteReason),&lt;br /&gt;
		category,&lt;br /&gt;
		isError and '[[Category:RfD errors]]' or ''&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p[''] = function(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	if not args.content or mw.text.trim(args.content) == '' then&lt;br /&gt;
		return '&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Error: No content was provided. The original text of the page (the #REDIRECT line and any templates) must be placed inside of the content parameter.[[Category:RfD errors]]&amp;lt;/span&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	if pframe:preprocess('&amp;lt;includeonly&amp;gt;1&amp;lt;/includeonly&amp;gt;') == '1' then&lt;br /&gt;
		-- We're being transcluded, so display the content of our target.&lt;br /&gt;
		local target = getTargetFromText(args.content)&lt;br /&gt;
		if target then&lt;br /&gt;
			target = mw.title.new(target)&lt;br /&gt;
		end&lt;br /&gt;
		local redirect = pframe:getTitle()&lt;br /&gt;
		if target and not target.isRedirect and target ~= redirect then&lt;br /&gt;
			-- We should actually be calling expandTemplate on the grandparent rather than on the parent, but we can't do that yet&lt;br /&gt;
			-- Since we don't have grandparent access, though, it means the thing we're calling doesn't either, so it doesn't really matter yet&lt;br /&gt;
			local parsedTarget = pframe:expandTemplate{title = ':' .. target.prefixedText, args = pframe.args}&lt;br /&gt;
			if frame.args.showontransclusion and not mw.isSubsting() then&lt;br /&gt;
				return makeTransclusionTag(args, redirect) .. parsedTarget&lt;br /&gt;
			else&lt;br /&gt;
				return parsedTarget&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- We're not being transcluded, or we can't figure out how to display our target.&lt;br /&gt;
	-- Check if we can find the target.&lt;br /&gt;
	local target = getTargetFromText(args.content)&lt;br /&gt;
	messageBox = require('Module:Message box')&lt;br /&gt;
	local redirbox&lt;br /&gt;
	if target then -- target isn't nil&lt;br /&gt;
		redirbox = messageBox.main('mbox', {&lt;br /&gt;
			type = 'notice',&lt;br /&gt;
			name = 'RedirectBox',&lt;br /&gt;
			image = '[[File:Symbol redirect blue.svg|40px]]',&lt;br /&gt;
			text = &amp;quot;'''This title is currently a redirect ''' to [[:&amp;quot; .. getTargetFromText(args.content) .. &amp;quot;]]; click there to go to the current target. The full content of this redirect page, including all [[Wikipedia:Categorizing redirects|redirect categories]], is displayed below.&amp;quot;&lt;br /&gt;
		})&lt;br /&gt;
	else&lt;br /&gt;
		redirbox = messageBox.main('mbox', {&lt;br /&gt;
			type = 'notice',&lt;br /&gt;
			name = 'RedirectBox',&lt;br /&gt;
			image = '[[File:Symbol redirect vote 4.svg|40px]]',&lt;br /&gt;
			text = &amp;quot;'''This redirect's target could not be determined.''' This page may be a [[Wikipedia:Soft redirect|soft redirect]], or not a redirect at all. The content of the page is displayed below.&amp;quot;&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
	-- Display the RfD banner.&lt;br /&gt;
	return makeRfdNotice(frame.args) .. '\n' .. redirbox .. frame.args.content&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local substText = &amp;quot;{{&amp;lt;includeonly&amp;gt;safesubst:&amp;lt;/includeonly&amp;gt;#invoke:RfD||%s%s|%s%s\n&amp;quot;&lt;br /&gt;
	.. &amp;quot;&amp;lt;!-- The above content is generated by {{subst:rfd}}. --&amp;gt;\n&amp;lt;!-- End of RFD message. Don't edit anything above here. Feel free to edit below here, but do NOT change the redirect's target. --&amp;gt;|content=\n%s\n&amp;quot;&lt;br /&gt;
	.. &amp;quot;&amp;lt;!-- Don't add anything after this line unless you're drafting a disambiguation page or article to replace the redirect. --&amp;gt;\n}}&amp;quot;&lt;br /&gt;
local dateText = 'month = %B\n|day = %e\n|year = %Y\n|time = %R\n|timestamp = %Y%m%d%H%M%S'&lt;br /&gt;
&lt;br /&gt;
-- called during subst when the template is initially placed on the page&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local titleText&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local pargs = pframe.args&lt;br /&gt;
	local Date&lt;br /&gt;
	if pargs.days then&lt;br /&gt;
		Date = os.date(dateText, os.time() - 86400*pargs.days)&lt;br /&gt;
	else&lt;br /&gt;
		Date = os.date(dateText)&lt;br /&gt;
	end&lt;br /&gt;
	local retval = string.format(substText, pargs.FULLPAGENAME or pargs[1] or '', pargs.showontransclusion and '|showontransclusion=1' or '', Date, pframe:getTitle() == mw.title.getCurrentTitle().prefixedText and '|category=' or '', pargs.content or '')&lt;br /&gt;
	if mw.isSubsting() then&lt;br /&gt;
		return retval&lt;br /&gt;
	else&lt;br /&gt;
		return frame:expandTemplate{title = 'Template:Error:must be substituted', args = {'rfd'}} .. frame:preprocess(retval)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wp&gt;Legoktm</name></author>
	</entry>
</feed>