Modulo:CategoriaMusicale: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
altri fix
m più leggibile?
Riga 32:
local forced_link = args.link_genere or args[2]
local subject = p.get_subject()
local wikitexttext = ""
if subject then
wikitexttext = "Questa categoria raggruppa voci su " .. subject2wikilink[subject] .. " [["
if forced_link ~= "" then wikitexttext = wikitexttext .. forced_link .. "|" end
wikitexttext = wikitexttext .. genre .. "]].\n\n"
end
wikitexttext = wikitexttext .. "'''Categorie correlate:'''\n<div class=\"colonne_strette\">"
if subject == "Gruppi musicali" or subject == "Musicisti" or subject == "Cantanti" or subject == "Disc jockey" then
wikitexttext = wikitexttext .. string.format("\n* [[:Categoria:%s per nazionalità|%s per nazionalità]]", subject, subject)
end
if subject then
wikitexttext = wikitexttext .. string.format("\n* [[:Categoria:%s per genere|%s per genere (tutti)]]", subject, subject)
end
Riga 50:
for k, v in pairs(subject2wikilink) do
if subject ~= k then
wikitexttext = wikitexttext .. string.format("\n* [[:Categoria:%s %s|%s %s]]", k, genre, k, genre)
end
end
wikitexttext = wikitexttext .. "</div>"
return wikitexttext
end