Modulo:Bio: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+cfg.didascalia2 |
m fix spazi extra |
||
Riga 33:
local plurale_nazionalita = mw.loadData("Modulo:Sandbox/Rotpunkt/Bio/Plurale nazionalità")
--
-- aggiunge testo alla risposta, svolge anche la funzione di concatenatore
Riga 67:
-- aggiunge l'output del [[Template:Avviso]] alla risposta
local function dumpAvviso(tipo, immagine, immagine_a_destra, testo)
local text
Riga 88:
date = date:gsub("^1%s", "1º ")
date = date:gsub("^1\194\176", "1º")
return date
end
Riga 97:
end
--
-- Traduzione in lua del [[Template:Bio/articolo]]
local function getArticleMan(attivita)
if cfg.articoli_maschili["uno"][attivita] then
return "uno"
Riga 114:
-- Traduzione in lua del [[Template:Bio/articolo_F]]
-- aggiunge anche uno spazio nel caso non usi l'apostrofo
local function getArticleWoman(attivita)
if attivita and attivita:match("^[aeiou]") then
return "un'"
Riga 216:
end
if plurals["NazionalitàNaturalizzato"] then
addCat(plurals[val] .. " " .. plurals["NazionalitàNaturalizzato"], epoca1, epoca2)
end
if plurals["Cittadinanza"] then
addCat(plurals[val] .. " " .. plurals["Cittadinanza"], epoca1, epoca2)
end
end
Riga 232:
if args["AnnoNascita"] then
cat1 = "Nati nel " .. args["AnnoNascita"]
cat2 = "Nati nell'" .. args["AnnoNascita"]
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
elseif mw.title.new("Categoria:" .. cat2).exists then
dumpCategory(cat2)
end
Riga 245:
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
elseif mw.title.new("Categoria:" .. cat2).exists then
dumpCategory(cat2)
end
Riga 274:
if args["LuogoNascitaLink"] then
cat1 = "Nati a " .. args["LuogoNascitaLink"]
cat2 = "Nati ad " .. args["LuogoNascitaLink"]
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
Riga 282:
elseif args["LuogoNascita"] then
cat1 = "Nati a " .. args["LuogoNascita"]
cat2 = "Nati ad " .. args["LuogoNascita"]
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
Riga 289:
end
end
if args["LuogoMorteLink"] then
cat1 = "Morti a " .. args["LuogoMorteLink"]
cat2 = "Morti ad " .. args["LuogoMorteLink"]
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
Riga 300:
elseif args["LuogoMorte"] then
cat1 = "Morti a " .. args["LuogoMorte"]
cat2 = "Morti ad " .. args["LuogoMorte"]
if mw.title.new("Categoria:" .. cat1).exists then
dumpCategory(cat1)
Riga 332:
elseif args["Didascalia2"] then
-- parentesi () extra per non ritornare anche il gsub.count
dumpText( (cfg.didascalia2:gsub("$1", args["Didascalia2"])) )
end
Riga 534:
origArgs = frame
end
args = {}
for k, v in pairs(origArgs) do
|