Module:RfD: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
check against prefixedText
Jackmcbarn (talk | contribs)
original had 3 braces
Line 61:
local pframe = frame:getParent()
local pargs = pframe.args
local retval = string.format(substText, titleTextpargs.FULLPAGENAME or pargs[1] or '', os.date(dateText), pframe:getTitle() == mw.title.getCurrentTitle().prefixedText and '|category=' or '', pargs.content or '')
if pargs[1] then
titleText = mw.title.new(pargs[1]).prefixedText
else
titleText = mw.title.getCurrentTitle().prefixedText
end
local retval = string.format(substText, titleText, os.date(dateText), pframe:getTitle() == mw.title.getCurrentTitle().prefixedText and '|category=' or '', pargs.content or '')
if mw.isSubsting() then
return retval