Editing Module:Check for unknown parameters
Appearance
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
-- with a list of arguments, returning a specified result if an argument is | -- with a list of arguments, returning a specified result if an argument is | ||
-- not on the list | -- not on the list | ||
local p = {} | local p = {} | ||
Line 95: | Line 92: | ||
if isnotempty(preview_text) then | if isnotempty(preview_text) then | ||
preview_text = require('Module:If preview')._warning({preview_text}) | preview_text = require('Module:If preview')._warning({preview_text}) | ||
elseif | elseif preview == nil then | ||
preview_text = unknown_text | preview_text = unknown_text | ||
end | end |