Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 364: | Строка 364: | ||
local parsed = getTemplateMeta(frame, tplPath) | local parsed = getTemplateMeta(frame, tplPath) | ||
if parsed and parsed.cardTag and parsed.cardTag ~= "" then | |||
parsed.cardTag = trim(frame:preprocess(parsed.cardTag)) | |||
end | |||
for _, sw in ipairs(switches) do | for _, sw in ipairs(switches) do | ||
local keys = parsed[sw] or {} | local keys = parsed[sw] or {} | ||
| Строка 400: | Строка 403: | ||
end | end | ||
end | end | ||
local cardTagValue = parsed.cardTag | |||
local cardTagValue = parsed and parsed.cardTag or nil | |||
local entry | local entry | ||