Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) Новая страница: «local p = {} local function trim(s) if not s then return s end return (s:gsub("^%s*(.-)%s*$", "%1")) end local function parse_keys_from_template(content, switches) if not content then return {} end local lower = content:lower() local result = {} for _, sw in ipairs(switches) do result[sw] = {} local swLower = sw:lower() local pos = lower:find("|%s*" .. swLower .. "%s*=") if not pos then -- no keys for this switch else local startBrace...» |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 217: | Строка 217: | ||
end | end | ||
return table.concat(out, "\n\n") | return frame:preprocess(table.concat(out, "\n\n")) | ||
end | end | ||
return p | return p | ||