Изменения

Перейти к навигации Перейти к поиску
TemplateStyles для снижения дублирования
Строка 14: Строка 14:  
]]
 
]]
    +
local stylesheetLink = 'Module:Coordinates/styles.css'
 
math_mod = require( "Module:Math" );
 
math_mod = require( "Module:Math" );
 
globalFrame = nil
 
globalFrame = nil
Строка 399: Строка 400:  
if globe == '' then globe = 'earth' end
 
if globe == '' then globe = 'earth' end
   −
local result = '<span class="coordinates plainlinks nourlexpansion" data-param="' .. mw.text.encode( param ) .. '">'
+
local result = mw.getCurrentFrame():extensionTag{
 +
name = 'templatestyles', args = { src = stylesheetLink }
 +
} .. '<span class="coordinates plainlinks nourlexpansion" data-param="' .. mw.text.encode( param ) .. '">'
    
-- external links
 
-- external links
Анонимный участник

Реклама:

Навигация