Модуль:GetField: различия между версиями
Pok (обсуждение | вклад) Нет описания правки Метка: отменено |
Pok (обсуждение | вклад) Нет описания правки |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 1: | Строка 1: | ||
local p = {} | local p = {} | ||
local lang = mw.language.getContentLanguage() | |||
local JsonPaths = require('Module:JsonPaths') | local JsonPaths = require('Module:JsonPaths') | ||
| Строка 367: | Строка 368: | ||
end | end | ||
local tplStr = "{{" .. templatePath .. "|id=" .. tostring(id) | local tplStr = "{{Шаблон:" .. templatePath .. "|id=" .. tostring(id) | ||
if extra ~= "" then | if extra ~= "" then | ||
tplStr = tplStr .. "|" .. extra | tplStr = tplStr .. "|" .. extra | ||
| Строка 863: | Строка 864: | ||
local function makeTemplatePrefix() | local function makeTemplatePrefix() | ||
if projectPath then | if projectPath then | ||
return "{{{{#ifexist:Шаблон:" .. projectPath .. "|" .. projectPath .. "|" .. tplPath .. "}}" | return "{{Шаблон:{{#ifexist:Шаблон:" .. projectPath .. "|" .. projectPath .. "|" .. tplPath .. "}}" | ||
end | end | ||