Modulo:Codice statistico: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
nomi categorie Wikidata ottenuti automaticamente
m modulo no globals obsoleto
 
(3 versioni intermedie di un altro utente non mostrate)
Riga 3:
]]--
 
require('Modulo:No globalsstrict')
 
local getArgs = require('Modulo:Arguments').getArgs
Riga 13:
-- @return {string}
local function formatP964(id)
local formatted_id = string.gsub(id, "'(%d)(%d%d)(%d%d)"', "'%1 %2 %3"')
return string.format('[http://www.statistik.at/blickgem/gemDetail.do?gemnr=%s %s]', id, formatted_id)
end
Riga 22:
-- @return {string}
local function formatP439(id)
local formatted_id = string.gsub(id, "'(%d%d)(%d)(%d%d)(%d%d%d)"', "'%1 %2 %3 %4"')
return string.format('[http://www.statistik-portal.de/Statistik-Portal/gemeindeverz.asp?G=%s %s]', id, formatted_id)
end
Riga 31:
-- @return {string}
local function formatP440(id)
return string.gsub(id, "'(%d%d)(%d)(%d%d)"', "'%1 %2 %3"')
end
 
Riga 93:
CHE = {
default = { prop = 'P771', compare = compareP771 }
},
CHN = {
default = { prop = 'P442' }
},
CZE = {
Line 98 ⟶ 101:
},
DEU = {
["'1"'] = {}, -- disabilitato
["'3"'] = { prop = 'P440', format = formatP440 },
default = { prop = 'P439', format = formatP439 }
},
Line 109 ⟶ 112:
},
FRA = {
["'1"'] = { prop = 'P2585' },
["'2"'] = { prop = 'P2586' },
["'3"'] = { prop = 'P3423' },
["'4"'] = { prop = 'P2506' },
default = { prop = 'P374', format = formatP374 }
},
Line 206 ⟶ 209:
:tag('tr')
:tag('td')
:wikitext(mw.wikibase.labelgetLabel(value.prop))
:done()
:tag('td')