Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 47: | Строка 47: | ||
local function load_template_content(path) | local function load_template_content(path) | ||
local title = mw.title.new(" | local title = mw.title.new("Шаблон:" .. path) | ||
if not title then return nil end | if not title then return nil end | ||
local ok, content = pcall(function() return title:getContent() end) | local ok, content = pcall(function() return title:getContent() end) | ||
| Строка 88: | Строка 88: | ||
for compName,_ in pairs(foundComponents) do | for compName,_ in pairs(foundComponents) do | ||
local tplPath = " | local tplPath = "Component/" .. compName | ||
local content = load_template_content(tplPath) | local content = load_template_content(tplPath) | ||
if not content then | if not content then | ||