Modulo:Sito ufficiale: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m +controllo italiano
m per permettere l'utilizzo dell'elenco puntato prima del template
Riga 8:
local errorCategory = '[[Categoria:Voci con template Sito ufficiale e senza dati da recuperare da Wikidata]]'
local p = {}
 
local function formatList(values)
return string.format('<ul><li>%s</li></ul>', mw.text.listToText(values, '</li><li>', '</li><li>'))
end
 
local function formatWebsite(website)
return '*' .. mw.getCurrentFrame():expandTemplate {
title = 'Cita web',
args = {
Riga 50 ⟶ 46:
websites[i] = formatWebsite(website)
end
return #websites > 0 and formatListtable.concat(websites, '\n') or
(mw.title.getCurrentTitle().namespace == 0 and errorCategory or nil)
end