Modulo:Ciclismo: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m lang
i18n
Riga 8:
local mWikidata = require('Module:Wikidata')
local cfg = mw.loadData('Module:Ciclismo/Configuration')
cfg.local i18n = cfg.i18n[mw.language.getContentLanguage():getCode()]
 
-------------------------------------------------------------------------------
Riga 52:
local tableNode = mw.html.create('table'):addClass('wikitable'):css(tableStyle)
local tr = tableNode:tag('tr')
tr:tag('th'):wikitext(cfg.i18n.thStage)
tr:tag('th'):wikitext(cfg.i18n.thDate)
tr:tag('th'):wikitext(cfg.i18n.thCourse)
tr:tag('th'):wikitext(cfg.i18n.thDistance)
tr:tag('th'):wikitext(cfg.i18n.thWinner)
tr:tag('th'):wikitext(cfg.i18n.thLeader)
 
for _, stage in ipairs(self.stages) do
Riga 110:
local tableNode = mw.html.create('table'):addClass('wikitable'):css(tableStyle)
local tr = tableNode:tag('tr')
tr:tag('th'):wikitext(cfg.i18n.thYear)
tr:tag('th'):wikitext(cfg.i18n.thWinner)
tr:tag('th'):wikitext(cfg.i18n.thSecond)
tr:tag('th'):wikitext(cfg.i18n.thThird)
 
for _, edition in ipairs(self.editions) do