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
.. " The outcome of the discussion may result in a change of this page, or possibly its deletion in accordance with
.. " Please share your thoughts on the matter at '''[[
.. " '''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>{{[[
local deleteReason = '[[
local messageOnTransclusionsStandard = '‹The template below is included via a redirect'
.. ' (%s) that is under discussion. See [[
.. ' to help reach a consensus.›'
local messageOnTransclusionsTiny = '‹[[
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.
},
['tiny'] = {
['tags'] = {'<span ', '</span> '},
['style'] = '',
['message'] = messageOnTransclusionsTiny:format(args.
},
}
Line 78 ⟶ 85:
name = 'RfD',
image = 'none',
text = string.format(mboxText, args.
}),
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 [[
})
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 [[
})
end
| |||