Modulo:Bio/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix virgola
m +currentTitleEquals
Riga 46:
local title = mw.title.new(name)
return title and title.exists
end
 
local function currentTitleEquals(name)
local title = mw.title.getCurrentTitle().text
return mw.text.split(title, " %(")[1] == name
end
 
Line 191 ⟶ 196:
if args.ForzaOrdinamento then
sortkey = args.ForzaOrdinamento
elseif args.Pseudonimo and currentTitleEquals(args.Pseudonimo == mw.title.getCurrentTitle().text then
local pseudonimo = mString.collate( { args = { args.Pseudonimo } } )
if pseudonimo ~= args.Pseudonimo then
Line 659 ⟶ 664:
end
 
if args.Pseudonimo and currentTitleEquals(args.Pseudonimo == mw.title.getCurrentTitle().text then
self:_addText("'''", args.Pseudonimo, "'''")
if args.PostPseudonimo then
Line 699 ⟶ 704:
end
 
if args.Pseudonimo and not currentTitleEquals(args.Pseudonimo ~= mw.title.getCurrentTitle().text then
self:_addText(", anche", (not args.Sesso or args.Sesso == "M") and " noto " or " nota ",
"con lo pseudonimo di ", "'''", args.Pseudonimo, "'''")