Изменения

Перейти к навигации Перейти к поиску
уточнение кода
Строка 75: Строка 75:  
-- Форматирование ссылки как в шаблоне
 
-- Форматирование ссылки как в шаблоне
 
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
 
 
local html = mw.html.create( 'i' )
   
if not isEmpty( comment ) then
 
if not isEmpty( comment ) then
 
local span = mw.html.create( 'span' )
 
local span = mw.html.create( 'span' )
Анонимный участник

Реклама:

Навигация