local title_object = mw.title.getCurrentTitle();local content;local ret = {}if 10 ~= title_object.namespace thencontent = title_object:getContent() or '';endif not content thenreturn ret;endlocal start = content:find('{{ *تفضيلات مقالة[%s\n]*[|}]');if start thenlocal config_template = content:match ('%b{}', start);if not config_template thenreturn ret;endlocal params_t = mw.text.split (config_template:gsub ('^{{%s*', ''):gsub ('[%s\n]*}}$', ''), '[%s\n]*|[%s\n]*');table.remove (params_t, 1);for _, param in ipairs (params_t) dolocal k, v, t = param:match ('([^=]-)%s*=%s*(.+)');-- <k> is the parameter name; <v> is parameter's assigned valueif k thenif k:find (':') thent, k = k:match ('([^:]-):(.+)');elset="عام"endif ret[t] thenret[t][k]=velseret[t] = {[k]=v}endendendendreturn ret