Module:Purge: Difference between revisions

75 bytes added ,  2 years ago
m
1 revision imported
m (Protected Module:Purge: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
 
m (1 revision imported)
 
(2 intermediate revisions by 2 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