Modulo:Codice statistico: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+codice municipale norvegese |
m +colonna tabella |
||
Riga 151:
:tag('th')
:wikitext('Proprietà Wikidata')
:done()
:tag('th')
:wikitext('Dati letti')
:done()
Line 157 ⟶ 160:
for key, value in pairs(codes) do
if value.prop then
local catLetto = value.catprefix .. ' letto da Wikidata'
local pagesInCat = mw.site.stats.pagesInCategory(catLetto, 'pages')
tableNode
:tag('tr')
Line 170 ⟶ 175:
:tag('td')
:wikitext(string.format('[[d:p:%s|%s (%s)]]', value.prop, mWikidata._getLabel( { value.prop } ), value.prop))
:done()
:tag('td')
:css('text-align', 'right')
:wikitext(string.format('[[:Categoria:%s|%s]]', catLetto, pagesInCat))
:done()
end
|