local p =
--returns any combination of strict/lax/all acceptable instance-of's,--either as a table for use inside or another module,--or as an ordered list for use in documentation.function p.whitelist(frame) local listType = frame.args[1] local documentation = frame.args[2] local outList = local acceptableInstanceOf_Strict = local acceptableInstanceOf_Lax = if listType
'lax' then outList = acceptableInstanceOf_Lax else --elseif listType
nil) or --module only (documentation and documentation
'docdoc') then --self-documentation only local selfdocout = 'myWhitelist = ' local args = out = frame:expandTemplate return out else --normal documentation only local out = for _, q in pairs(outList) do local Q = frame:expandTemplate out = out..'# '..Q..'\n' end out = mw.ustring.gsub(out, '%s+$', ) return out end end
return p