Модуль:Check for unknown parameters: различия между версиями

Перейти к навигации Перейти к поиску
м
1 версия импортирована
м (Changed protection settings for "Module:Check for unknown parameters": Highly visible template; requested at WP:RfPP ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
м (1 версия импортирована)
 
(не показаны 3 промежуточные версии 2 участников)
Строка 2: Строка 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 = {}


Строка 92: Строка 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

Навигация