Modulo:Sito ufficiale: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m per permettere l'utilizzo dell'elenco puntato prima del template |
m elenco puntato solo per le eccezioni al valore singolo |
||
Riga 10:
local function formatWebsite(website)
return
title = 'Cita web',
args = {
Riga 25:
claims = mWikidata._getClaims('P856') or {}
for
local langs = mWikidata._formatQualifiers(claim, 'P407', { formatting = 'raw' }, true)
langs = (#langs == 1 and langs[1] == 'Q652') and {} or langs
Riga 31:
langs[i] = mWikidata._getLabel({ lang })
end
websites[
url = mWikidata._formatStatement(claim),
langs = langs
Riga 43:
function p.main(frame)
local websites = getWebsites()
for
-- P856 è di tipo "valore singolo", aggiunge l'elenco puntato solo per le eccezioni
websites[
end
return #websites > 0 and table.concat(websites, '\n') or
|