第1行:
第1行:
−
-- This module implements {{documentation}}.
+
-- This module implements a Mediawiki-style {{documentation}} with Lua.
+
-- Modified from the original to strip requirement for TNT.
-- Get required modules.
-- Get required modules.
第33行:
第34行:
expectType = expectType or 'string'
expectType = expectType or 'string'
if type(msg) ~= expectType then
if type(msg) ~= expectType then
−
error(require('Module:TNT').format('I18n/Documentation', 'cfg-error-msg-type', cfgKey, expectType, type(msg)), 2)
+
error('dummy error message - cfg-error-msg-type', 2)
end
end
if not valArray then
if not valArray then
第41行:
第42行:
local function getMessageVal(match)
local function getMessageVal(match)
match = tonumber(match)
match = tonumber(match)
−
return valArray[match] or error(require('Module:TNT').format('I18n/Documentation', 'cfg-error-msg-empty', '$' .. match, cfgKey), 4)
+
return valArray[match] or error('dummy error message - cfg-error-msg-empty', 4)
end
end