Modulo:Codice statistico: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m gsub.count
m refuso
Riga 59:
end
if not code then
local iso3166 = mWikidata._getProperty({ 'P17', showprop = 'P298', from = args.from, n = 1 }) or {}
code = codes[iso3166]
end
Riga 65:
-- valore letto da Wikidata
if code then
wdval = mWikidata._getProperty({ code.prop, from = args.from, n = 1 }) or {}
formatted_wdval = (wdval and code.format) and code.format(wdval) or wdval
formatted_userval = (userval and code.format) and code.format((string.gsub(userval, ' ', ''))) or userval
end