Module:RfD: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
use target
Jackmcbarn (talk | contribs)
effectively includeonly cats
Line 51:
end
 
local substText = '{{ {{{|safesubst:}}}#invoke:RfD|<includeonly>1</includeonly>|%s|%s%s\n'
.. '<!-- The above content is generated by {{subst:rfd}}. -->\n<!-- End of RFD message. Don\'t edit anything above here, but feel free to edit below here. -->|content=\n%s\n'
.. '<!-- Don\'t add anything after this line. -->\n}}'
Line 59:
function p.main(frame)
local titleText
local pargspframe = frame:getParent().args
local pargs = pframe.args
if pargs[1] then
titleText = mw.title.new(pargs[1]).prefixedText
Line 65 ⟶ 66:
titleText = mw.title.getCurrentTitle().prefixedText
end
local retval = string.format(substText, titleText, os.date(dateText), pframe:getTitle() == mw.title.getCurrentTitle() and '|category=' or '', pargs.content or '')
if mw.isSubsting() then
return retval