Module:Check for unknown parameters: Difference between revisions

per edit request (permalink); + require ('strict');
m (1 revision imported)
(per edit request (permalink); + require ('strict');)
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
require ('strict');
local p = {}
local p = {}


Line 92: Line 95:
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 preview == nil then
elseif preview_text == nil then
preview_text = unknown_text
preview_text = unknown_text
end
end
Anonymous user