Module:Purge: Difference between revisions

m
1 revision imported from templatewiki:Module:Purge
(fix variable assignment)
m (1 revision imported from templatewiki:Module:Purge)
 
(4 intermediate revisions by 4 users not shown)
Line 30:
-- Make the display
local display = mw.html.create('span')
if args.page then
display
:attr('title',display = args[1] or 'Purge this page')
else
:wikitext(args[1] or 'Purge')
display = tostringmw.html.create(display'span')
display
:attr('title', 'Purge this page')
:wikitext(args[1] or 'Purge')
display = tostring(display)
end
-- Output the HTML