Modulo:CategoriaMusicale: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m fix |
altri fix |
||
Riga 2:
local subject2wikilink = {
['
['
['Brani musicali'] = '[[Brano musicale|brani musicali]]',
['Cantanti'] = '[[Cantante|cantanti]]',
['Disc jockey'] = '[[disc jockey]]',
['EP'] = '[[Extended play|EP]]',
['
['
['
}
Riga 32:
local forced_link = args.link_genere or args[2]
local subject = p.get_subject()
local wikitext = ""
wikitext = "Questa categoria raggruppa voci su " .. subject2wikilink[subject] .. " [[" end
if subject == "Gruppi musicali" or subject == "Musicisti" or subject == "Cantanti" then▼
wikitext = wikitext .. "'''Categorie correlate:'''\n<div class=\"colonne_strette\">"
wikitext = wikitext .. string.format("[[:Categoria:%s per nazionalità|%s per nazionalità]] ·", subject, subject)▼
▲ if subject == "Gruppi musicali" or subject == "Musicisti" or subject == "Cantanti" or subject == "Disc jockey" then
▲ wikitext = wikitext .. string.format("\n* [[:Categoria:%s per nazionalità|%s per nazionalità]]
end
if subject then
end
▲ wikitext = wikitext .. string.format("[[:Categoria:%s per genere|%s per genere (tutti)]]", subject, subject)
-- aggiungi link alle categorie correlate se diverse da quella attuale
for k, v in pairs(subject2wikilink) do
if subject ~= k then
wikitext = wikitext .. string.format("
end
end
wikitext = wikitext .. "</div>"
return wikitext
|