Modulo:Lingue: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
correzione
Moroboshi (discussione | contributi)
fix regressione su get nome, reimpagino le funzioni di stampa tabelle
Riga 64:
maiuscolo = true
end
return language.get_nome(code, maiuscolo, default), _
 
end
Riga 147:
.addClass('wikitable sortable')
.tag('tr')
.tag('th').wikitext('Codici').done()
.tag('th').wikitext('Codici[[template:Nomelingua/voce]]').done()
.tag('th').wikitext('[[template:Nomelingua/voce]]').done()
.tag('th').wikitext('[[template:Lingue]]')
.wikitext('[[template:Nomelingua/voce]]')
.done()
.tag('th')
.wikitext('[[template:Nomelingua/voce]]')
.done()
.tag('th')
.wikitext('[[template:Lingue]]')
 
for _,code in ipairs(codici_sorted) do
Line 165 ⟶ 158:
root
.tag('tr')
.tag('td').wikitext(code_string).done()
.tag('td').wikitext(code_stringnome).done()
.tag('td').wikitext(voce).done()
.tag('td').css('text-align', 'center').wikitext(language.lingue({code}))
.wikitext(nome)
.done()
.tag('td')
.wikitext(voce)
.done()
.tag('td')
.css('text-align', 'center')
.wikitext(language.lingue({code}))
end
return tostring(root)
Line 189 ⟶ 174:
.addClass('wikitable sortable')
.tag('tr')
.tag('th').wikitext('Alias').done()
.tag('th').wikitext('Aliascodice').done()
.done()
.tag('th')
.wikitext('codice')
.done()
for alias, code in pairs(lg.alias) do
root
.tag('tr')
.tag('td').wikitext(alias).done()
.tag('td').wikitext(aliascode)
.done()
.tag('td')
.wikitext(code)
end
return tostring(root)
Line 215 ⟶ 193:
.addClass('wikitable sortable')
.tag('tr')
.tag('th').wikitext('Codice').done()
.tag('th').wikitext('CodiceNome').done()
.tag('th').wikitext('Voce').done()
.tag('th')
.wikitext('Nome')
.done()
.tag('th')
.wikitext('Voce')
.done()
for code, valore in pairs(lg.codici) do
root
.tag('tr')
.tag('td').wikitext(code).done()
.tag('td').wikitext(codevalore[1]).done()
.donetag('td').wikitext(valore[2])
.tag('td')
.wikitext(valore[1])
.done()
.tag('td')
.wikitext(valore[2])
end
return tostring(root)