Модуль:GetField: различия между версиями

Нет описания правки
Метка: отменено
Нет описания правки
 
(не показана 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