Module:Parameter validation/default config

function create(cat, msg) return mw.ustring.format("", cat) .. create_message(msg) end

function create_message(msg) return mw.ustring.format(" Warning: %s (this message is shown only in preview). ", msg) end

local options = { ["undeclared"] = create("unknown", 'Parameter "paramname" is unknown.'), ["deprecated"] = create("deprecated", 'Parameter "paramname" is deprecated'), ["duplicate"] = create("duplicate", 'Parameter "paramname" is a duplicate'), ["doc-subpage"] = "doc", }

local result = { [0] = options, [2] = options, [4] = options, [6] = options, [10] = options, [12] = options, [14] = options, } return result