Module:RfD: Difference between revisions

Content deleted Content added
Add __EXPECTSHORTPAGE__ to prevent pages from appearing on Special:ShortPages. See Tech News 2026-34.
 
Adapt local policies, template notices and guidance for independent Elite Dangerous Wiki; preserve index layout
 
(One intermediate revision by the same user not shown)
Line 6:
local messageBox
 
local mboxText = "'''The purpose of this redirect is currently being discussed by the WikipediaElite Dangerous Wiki community."
.. " The outcome of the discussion may result in a change of this page, or possibly its deletion in accordance with Wikipedia's [[WikipediaProject:Deletion policy|the local deletion policy]].''' <br />"
.. " Please share your thoughts on the matter at '''[[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|this redirect's entry]]''' on the [[WikipediaProject:Redirects for discussion|redirects for discussion]] page.<br />"
.. " '''Click on the link below''' to go to the current destination page.<br />"
.. "<small>Please notify the good-faith creator and any main contributors of the redirect by placing <code>&#123;&#123;[[WikipediaProject:Substitution|subst]]:[[Template:Rfd notice|Rfd notice]]&#124;%s&#125;&#125; &#126;&#126;&#126;&#126;</code> on their talk page.</small>__EXPECTUNUSEDTEMPLATE__ __EXPECTSHORTPAGE__<!--To prevent pages from appearing on Special:ShortPages. See Tech News 2026-34. -->"
local deleteReason = '[[WikipediaProject:Redirects for discussion]] debate closed as delete'
local messageOnTransclusionsStandard = '&lsaquo;The template below is included via a redirect'
.. ' (%s) that is under discussion. See [[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|redirects for discussion]]'
.. ' to help reach a consensus.&rsaquo;'
local messageOnTransclusionsTiny = '&lsaquo;[[Wikipedia:Redirects for discussion/Log/%s %s %s#%s|See RfD]]&rsaquo;'
 
local function localDiscussion(page)
local title = mw.title.new(page or '')
if not title then return mw.title.getCurrentTitle().talkPageTitle.prefixedText end
if title.isTalkPage then return title.prefixedText end
return title.talkPageTitle.prefixedText
end
 
local function makeTransclusionTag(args, redirect)
Line 30 ⟶ 37:
['tags'] = {'<div ', '</div>'},
['style'] = ' border-bottom: 1px solid #AAAAAA;',
['message'] = messageOnTransclusionsStandard:format(redirect, args.year,discussion args.month, args.day,or localDiscussion(discussionPage))
},
['tiny'] = {
['tags'] = {'<span ', '</span> '},
['style'] = '',
['message'] = messageOnTransclusionsTiny:format(args.year,discussion args.month, args.day,or localDiscussion(discussionPage))
},
}
Line 78 ⟶ 85:
name = 'RfD',
image = 'none',
text = string.format(mboxText, args.year,discussion args.month, args.day,or localDiscussion(discussionPage or currentTitle.prefixedText), mw.text.nowiki(currentTitle.prefixedText))
}),
mw.uri.encode(deleteReason),
Line 125 ⟶ 132:
name = 'RedirectBox',
image = '[[File:Symbol redirect blue.svg|40px]]',
text = "'''This title is currently a redirect ''' to [[" .. target .. "]]; click there to go to the current target. The full content of this redirect page, including all [[WikipediaProject:Categorizing redirectsCategorization|redirect categories]], is displayed below."
})
else
Line 132 ⟶ 139:
name = 'RedirectBox',
image = '[[File:Symbol redirect vote 4.svg|40px]]',
text = "'''This redirect's target could not be determined.''' This page may be a [[WikipediaProject:Soft redirectRedirect|soft redirect]], or not a redirect at all. The content of the page is displayed below."
})
end