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'] = {'
['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="
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}
showontransclusion = require('Module:Yesno')(showontransclusion, showontransclusion)
if showontransclusion and not (showontransclusion == '' or mw.isSubsting()) then
return makeTransclusionTag(args, redirect) .. parsedTarget
return parsedTarget▼
end
end
end
Line 144 ⟶ 146:
-- called during subst when the template is initially placed on the page
function p.main(frame)
local pframe = frame:getParent()
local pargs = pframe.args
|