Изменения

чтобы было удобнее открывать
Строка 154: Строка 154:  
local main_text
 
local main_text
 
if exists or mode == 1 or mode == 2 or mode == 5 then
 
if exists or mode == 1 or mode == 2 or mode == 5 then
if mode == 5 and ru_page.isRedirect then
+
if ru_page.isRedirect then
main_text = string.format('[%s %s]', tostring(mw.uri.fullUrl(title,'redirect=no')), text)
+
main_text = '<span class="plainlinks">'
 +
.. string.format('[%s %s]', tostring(mw.uri.fullUrl(title,'redirect=no')), text) .. '</span>'
 
else
 
else
 
main_text = wikilink(title, text)
 
main_text = wikilink(title, text)
Строка 297: Строка 298:  
 
 
local class = (exists and (ru_page.isRedirect and ' iw--redirect' or ' iw--exists') or '')
 
local class = (exists and (ru_page.isRedirect and ' iw--redirect' or ' iw--exists') or '')
result = string.format('<span class="iw%s plainlinks" data-title="%s" data-lang="%s"' .. langName .. '>', class, ucfirst_title, lang)
+
result = string.format('<span class="iw%s" data-title="%s" data-lang="%s"' .. langName .. '>', class, ucfirst_title, lang)
 
.. result .. '</span>'
 
.. result .. '</span>'
 
end
 
end
Анонимный участник