Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 104: | Строка 104: | ||
local function makeCall(id, obj) | local function makeCall(id, obj) | ||
if type(id) ~= "string" then return end | if type(id) ~= "string" then return end | ||
local parts = { " | |||
local parts = { "{{" .. tplPath, "id=" .. id } | |||
if type(obj) == "table" then | if type(obj) == "table" then | ||
if okDp and dp and type(dp.flattenParams) == "function" then | if okDp and dp and type(dp.flattenParams) == "function" then | ||
| Строка 118: | Строка 120: | ||
end | end | ||
end | end | ||
elseif obj ~= nil then | |||
parts[#parts + 1] = "value=" .. tostring(obj) | |||
end | end | ||
parts[#parts + 1] = "}} | |||
parts[#parts + 1] = "}}" | |||
calls[#calls + 1] = table.concat(parts, "|") | calls[#calls + 1] = table.concat(parts, "|") | ||
end | end | ||