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

мНет описания правки
Метка: отменено
мНет описания правки
Метка: отменено
Строка 29: Строка 29:


local function makeTplCall(tplPath, sw, key, id, extra)
local function makeTplCall(tplPath, sw, key, id, extra)
     local tplStr = "{{" .. tplPath .. "|" .. sw .. "|" .. key
     local tplStr = "<nowiki>{{" .. tplPath .. "|" .. sw .. "|" .. key
     tplStr = tplStr .. "|id=" .. tostring(id)
     tplStr = tplStr .. "|id=" .. tostring(id)
     if extra and extra ~= "" then tplStr = tplStr .. "|" .. extra end
     if extra and extra ~= "" then tplStr = tplStr .. "|" .. extra end
     tplStr = tplStr .. "}}"
     tplStr = tplStr .. "}}</nowiki>"
     return tplStr
     return tplStr
end
end
Строка 299: Строка 299:
     for _, b in ipairs(blocks) do table.insert(out, b) end
     for _, b in ipairs(blocks) do table.insert(out, b) end


     return frame:preprocess("<nowiki>" .. table.concat(out, "\n") .. "</nowiki>")
     return frame:preprocess(table.concat(out, "\n"))
end
end


return p
return p