-- Adapt message from Module:Documentation/sandbox to test-- Anomie's advice at :-- mw.message.newRawMessage("text"):params("$1", "$2", "etc"):plain-- To see output, preview following in a sandbox:--
local cfg =
local function message(cfgKey, valArray) local msg = cfg[cfgKey] if valArray then return mw.message.newRawMessage(msg):params(valArray):plain end return msgend
local tests =
local function main local result = for _, t in ipairs(tests) do result[#result + 1] = '*' .. message(t[1], t[2]) .. '\n' end return table.concat(result)end
return