Modulo:Codice statistico: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m commento |
nomi categorie Wikidata ottenuti automaticamente |
||
Riga 83:
local statCodes = {
AUT = {
default = { prop = 'P964
},
BEL = {
default = { prop = 'P1567
},
BRA = {
default = { prop = 'P1585
},
CHE = {
default = { prop = 'P771
},
CZE = {
default = { prop = 'P782
},
DEU = {
["1"] = {}, -- disabilitato
["3"] = { prop = 'P440
default = { prop = 'P439
},
DNK = {
default = { prop = 'P1168
},
ESP = {
default = { prop = 'P772
},
FRA = {
["1"] = { prop = 'P2585
["2"] = { prop = 'P2586
["3"] = { prop = 'P3423
["4"] = { prop = 'P2506
default = { prop = 'P374
},
HUN = {
default = { prop = 'P939
},
ITA = {
default = { prop = 'P635
},
NLD = {
default = { prop = 'P382
},
NOR = {
default = { prop = 'P2504
},
UKR = {
default = { prop = 'P1077
}
}
Riga 146:
if userval then
if not wdval then
cat = string.format('%s assente su Wikidata', code.
elseif comparefunc(wdval, userval) then
cat = string.format('%s uguale
else
cat = string.format('%s differente
end
elseif wdval then
cat = string.format('%s
end
Riga 201:
for key, value in pairs(codes) do
if value.prop then
local catLetto = value.
local pagesInCat = mw.site.stats.pagesInCategory(catLetto, 'pages')
tableNode
:tag('tr')
:tag('td')
:wikitext(mw.wikibase.label(value.
:done()
:tag('td')
|