יחידה:ParamValidator: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
מ תקלדה
teach paramvalidator to consume additional options when module_options is used
שורה 111:
if type( module_options ) ~= 'table' then return {} end
local title = mw.title.getCurrentTitle()
returnlocal local_ptions = module_options[ title.namespace ] or module_options[ title.nsText ] or {}
for k, v in pairs( local_ptions ) do options[k] = v end
end