Изменения
Перейти к навигации
Перейти к поиску
Строка 44:
Строка 44:
− +
− +
− :attr( 'style', 'border-bottom:1px dotted;' )+
− :attr( 'title', delink( comment ) )+
− :wikitext( text )+
+
+
− text = tostring( tag )+
+
Модуль:Надстрочное предупреждение (посмотреть исходный код)
Версия от 03:51, 16 мая 2023
, 2 года назадкорректная обработка комментариев
-- Форматирование ссылок как в шаблоне
-- Форматирование ссылок как в шаблоне
local function getLink( link, text, comment )
local function getLink( link, text, comment )
if comment then
if not isEmpty( comment ) then
local delink = require( 'Module:Delink' )._delink;
local delink = require( 'Module:Delink' )._delink;
local tag = mw.html.create( 'span' )
comment = delink( { comment } )
if comment then
local html = mw.html.create( 'span' )
:attr( 'style', 'border-bottom:1px dotted;' )
:attr( 'title', delink( comment ) )
:wikitext( text )
text = tostring( html )
end
end
end