Изменения
Перейти к навигации
Перейти к поиску
Строка 75:
Строка 75:
+
− +
+
− local html = mw.html.create( 'i' )
Модуль:Надстрочное предупреждение (посмотреть исходный код)
Версия от 00:46, 19 мая 2023
, 2 года назадуточнение кода
-- Форматирование ссылки как в шаблоне
-- Форматирование ссылки как в шаблоне
local function getLink( link, text, comment, hasCustomComment )
local function getLink( link, text, comment, hasCustomComment )
local html = mw.html.create( 'i' )
if isEmpty( link ) then
if isEmpty( link ) then
return text
html:wikitext( text )
return tostring( html )
end
end
if not isEmpty( comment ) then
if not isEmpty( comment ) then
local span = mw.html.create( 'span' )
local span = mw.html.create( 'span' )