Content deleted Content added
ugly but works |
alright |
||
(11 intermediate revisions by the same user not shown) | |||
Line 5:
function p.main(frame)
local day
if frame.args[1] ~= nil then▼
local day = Date(frame.args[1]):text('dmy')▼
if success then
day = result
else
error('Invalid date format in Template:Update.')
end
else
end
--check for extra args
local extra = ''
if frame.args[3] and mw.title.getCurrentTitle() == 0 then
extra = '[[Category:Pages using updated template with unknown parameters]]'
end
return string.format(": ''As of %s%s%s''"
end
|