Изменения

Перейти к навигации Перейти к поиску
обратная логика
Строка 50: Строка 50:  
-- Форматирование ссылок как в шаблоне
 
-- Форматирование ссылок как в шаблоне
 
local function getLink( link, text, comment, hasComment )
 
local function getLink( link, text, comment, hasComment )
 +
if isEmpty( link ) then
 +
return text
 +
end
 +
 
if not isEmpty( comment ) then
 
if not isEmpty( comment ) then
 
local delink = require( 'Module:Delink' )._delink
 
local delink = require( 'Module:Delink' )._delink
Строка 66: Строка 70:  
end
 
end
 
 
if link then
+
return string.format( '<i>[[%s|%s]]</i>', link, text )
return string.format( '<i>[[%s|%s]]</i>', link, text )
  −
end
  −
  −
return text
   
end
 
end
  
Анонимный участник

Реклама:

Навигация