Module:RfD: Difference between revisions

Content deleted Content added
m per edit request on talk page - decap "Redirects"
NOINDEX only if actually displaying the RfD notice
 
(5 intermediate revisions by 3 users not shown)
Line 33:
},
['tiny'] = {
['tags'] = {' <span ', '</span> '},
['style'] = '',
['message'] = messageOnTransclusionsTiny:format(args.year, args.month, args.day, discussionPage)
},
}
local size = sizeAttrs[args.showontransclusion] and args.showontransclusion or 'standard'
Line 43:
local classes = 'class="boilerplate metadata plainlinks ' .. visibility .. '" '
local id = 'id="rfd-t" '
local style = 'style="backgroundfont-colorsize: transparent85%; paddingtext-align: 0left;' font-.. sizeAttrs[size:]['style'] xx-small;.. color:'" #000000;'
.. 'text-align: left;' .. sizeAttrs[size]['style'] .. '" '
return tags[1] .. classes .. id .. style .. '>' .. sizeAttrs[size]['message'] .. tags[2]
end
Line 72 ⟶ 71:
end
if category then category = category..'[[Category:Temporary maintenance holdings/RFD]]' end
local noindex = mw.getCurrentFrame():expandTemplate{title="NOINDEX"}
return string.format('%s%s<span id="delete-reason" style="display: none;">%s</span>%s%s',
noindex,
messageBox.main('mbox', {
type = 'delete',
Line 102 ⟶ 103:
-- 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
local parsedTarget = pframe:expandTemplate{title = ':' .. target.prefixedText, args = pframe.args}
iflocal showontransclusion = frame.args.showontransclusion and not mw.isSubsting() then
showontransclusion = require('Module:Yesno')(showontransclusion, showontransclusion)
if showontransclusion and not (showontransclusion == '' or mw.isSubsting()) then
return makeTransclusionTag(args, redirect) .. parsedTarget
else
return parsedTarget
end
return parsedTarget
end
end
Line 144 ⟶ 146:
-- called during subst when the template is initially placed on the page
function p.main(frame)
local titleText
local pframe = frame:getParent()
local pargs = pframe.args