Modulo:Bio/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
ok sono soddisfatto e aggiorno
Nessun oggetto della modifica
Riga 475:
end
end
local noepoca = false
for _, nazionalita in ipairs(nazionalitaParams) do
if plurals[nazionalita] and not addnaz[nazionalita] then
local senzaepoca = {"cecoslovacchi", "jugoslavi", "sovietici"}
add1 = self:_addCatSecolo(plurals[nazionalita], epoca1, epoca2) or add1
for k, v in ipairs(senzaepoca) do
if plurals[nazionalita] == v then
noepoca = true
end
end
if noepoca then
add1 = self:_addCategory(plurals[nazionalita]) or add1
else
add1 = self:_addCatSecolo(plurals[nazionalita], epoca1, epoca2) or add1
end
end
end
if not add1 and not noepoca then
self:_addCatSecolo("Persone", epoca1, epoca2)
end
Riga 760 ⟶ 771:
end
self:_addText(", pseudonimo di ")
end
 
local soprannomecognome = args.Soprannome
if args.Soprannome and args.Cognome then
soprannomecognome = args.Soprannome .. " " .. args.Cognome
end
 
if soprannomecognome and currentTitleEquals(soprannomecognome) then
self:_addText("'''", soprannomecognome, "'''")
if args.PostSoprannome then
if self:_needSpace(args.PostSoprannome) then
self:_addText(" ")
end
self:_addText(args.PostSoprannome)
end
self:_addText(", vero nome ")
end
 
Riga 810 ⟶ 805:
end
 
if args.Soprannome and args.Cognome then
if soprannomecognome and not currentTitleEquals(soprannomecognome) then
self:_addText(", ", (not args.Sesso or args.Sesso == "M") and "detto" or "detta",
" ", "'''", args.Soprannome, "'''")
Riga 836 ⟶ 831:
-- si apre la parentesi
self:_addText(" (")
 
if args.PreData then
self:_addText(args.PreData, "; ")
end
local datimancanti = not (args.LuogoNascita or args.GiornoMeseNascita or args.NoteNascita or args.LuogoMorte or args.GiornoMeseMorte)
local floruit = args.AnnoMorte == "?" and (args.Floruit or cfg.epoche[args.Epoca])
 
if args.LuogoNascita then
Riga 867 ⟶ 865:
self:_addText(args.AnnoNascita)
end
elseif not floruit or not datimancanti then
else
self:_addText("...")
end
 
if args.NoteNascita then
if self:_needSpace(args.NoteNascita) then
Riga 878 ⟶ 876:
end
 
if args.AnnoMorte and (not floruit or not datimancanti) then
self:_addText(" – ")
if args.LuogoMorte then
Riga 915 ⟶ 913:
-- se date ignote, usa Floruit o lo ricava da Epoca
if not args.AnnoNascita and args.AnnoMorte == "?" then
local fl = args.Floruit
if not fl and cfg.epoche[args.Epoca] then
fl = mw.ustring.gsub(cfg.epoche[args.Epoca], "^del ?l?'?", "")
Riga 930 ⟶ 928:
fl = "[[" .. fl .. "]]"
end
if not datimancanti then
self:_addText("; [[floruit|fl.]] ", fl)
self:_addText("; ")
end
self:_addText(args"[[floruit|fl.PostSoprannome]] ", fl)
end
end
 
if args.NoteMorte then
if self:_needSpace(args.NoteMorte) then
self:_addText(" ")
end
self:_addText(args.NoteMorte)
end
 
-- si chiude la parentesi
self:_addText(")")
end