Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 101: | Строка 101: | ||
local function makeSourceLink(s) | local function makeSourceLink(s) | ||
local kind | local className = | ||
(s.name:sub(1,1):upper() .. s.name:sub(2)) .. | |||
(s.kind and (s.kind:sub(1,1):upper() .. s.kind:sub(2)) or "") | |||
local tplLabel = "Template:" .. s.tplPath | local tplLabel = "Template:" .. s.tplPath | ||
return "[[" .. tplLabel .. "|" .. className .. "]]" | return "[[" .. tplLabel .. "|" .. className .. "]]" | ||
end | end | ||