Модуль:Сущность: различия между версиями

Нет описания правки
мНет описания правки
Строка 69: Строка 69:
local function buildCardCall(merged, entityId)
local function buildCardCall(merged, entityId)
     local parts = {}
     local parts = {}
    -- id сущности
    if entityId and entityId ~= "" then
        parts[#parts + 1] = "id=" .. mw.text.encode(entityId)
    end


     -- типы  
     -- типы  
Строка 106: Строка 111:
             parts[#parts + 1] = mw.text.encode(compositeKey) .. "=" .. content
             parts[#parts + 1] = mw.text.encode(compositeKey) .. "=" .. content
         end
         end
    end
    -- id сущности
    if entityId and entityId ~= "" and #parts > 0 then
        table.insert(parts, 1, "id=" .. mw.text.encode(entityId))
     end
     end