Jump to content

Module:Check for unknown parameters: Difference between revisions

no edit summary
m>Frietjes
(Undid revision 704440740 by Frietjes (talk))
m>Frietjes
No edit summary
Line 19: Line 19:
local knownargs = {}
local knownargs = {}
local unknown = frame.args['unknown'] or 'Found _VALUE_, '
local unknown = frame.args['unknown'] or 'Found _VALUE_, '
local preview = frame.args['preview'] or unknown
local preview = frame.args['preview']


local res = {}
local res = {}
Line 37: Line 37:
end
end
end
end
if isnotempty(frame.args['preview']) then  
if isnotempty(preview) then  
preview = '<div class="hatnote" style="color:red"><strong>Warning:</strong> ' .. frame.args['preview'] .. ' (this message is shown only in preview).</div>'
preview = '<div class="hatnote" style="color:red"><strong>Warning:</strong> ' .. frame.args['preview'] .. ' (this message is shown only in preview).</div>'
elseif frame.args['preview'] then
elseif preview == nil then
preview = frame.args['preview']
else
preview = unknown
preview = unknown
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.