Differenze tra le versioni di "Modulo:HAentry"

m
Maybe also this
m (It is possible I forgot this)
m (Maybe also this)
 
-- SESTA GENERAZIONE
if (tonumber(frame.args.num) or 810) <= 722 then
local disp6 = {}
local disp6 = {}
 
-- Orde
 
if frame.args.horde then
local horde = {"[[Gruppi di Pokémon]]: ",splitareas(frame.args.horde,6)}
if frame.args.hordeversion then
table.insert(horde,sup[frame.args.hordeversion])
end
table.insert(disp6,table.concat(horde))
end
table.insert(disp6,table.concat(horde))
-- Safari
if frame.args.safari then
local safari = {"[[Safari Amici]] ("}
local slist = {}
for w in frame.args.safari:gmatch("[^, ]+") do -- per i pochi che si trovano in più Safari
table.insert(slist,table.concat{"[[Safari Amici#Safari di tipo ", w, "|", w, "]]"})
end
table.insert(safari,table.concat(slist,", "))
table.insert(safari,")")
if frame.args.safariforme then -- quando solo alcune forme si trovano nel safari
table.insert(safari,' <span style="font-size:smaller;">(')
table.insert(safari,frame.args.safariforme)
table.insert(safari,')</span>')
end
table.insert(disp6,table.concat(safari))
end
-- altri metodi
if frame.args.gen6other then
table.insert(disp6,specialtext(frame.args.gen6other))
end
-- caso base: necessita trasferitore (non "non disponibile": se non è nè in quinta nè in sesta non deve apparire nella lista)
if table.getn(disp6)==0 then
disp6="[[Pokétrasferitore]]"
else disp6 = table.concat(disp6,"<br />")
end
table.insert(final, disp6.."\n|")
end
 
if (tonumber(frame.args.num) or 810) < 810 then
-- Safari
-- SETTIMA GENERAZIONE
 
-- I don't really know if there may be some standard method, so I'll add
if frame.args.safari then
-- just this
local safari = {"[[Safari Amici]] ("}
local slistdisp7 = {}
for w in frame.args.safari:gmatch("[^, ]+") do -- per i pochi che si trovano in più Safari
-- other methods
table.insert(slist,table.concat{"[[Safari Amici#Safari di tipo ", w, "|", w, "]]"})
if frame.args.gen7other then
table.insert(disp7, specialtext(frame.args.gen7other))
end
table.insert(safari,table.concat(slist,", "))
-- base case: Banca Pokémon (it's not "Not available" because it wouldn't
table.insert(safari,")")
-- have appeared in the list if it hadn't been available neither in sixth
if frame.args.safariforme then -- quando solo alcune forme si trovano nel safari
-- nor fifth gen)
table.insert(safari,' <span style="font-size:smaller;">(')
table.insert(safari,frame.args.safariforme)
if table.insertgetn(safari,')</span>'disp7)==0 then
disp7="[[Banca Pokémon]]"
else
disp7 = table.concat(disp7,"<br />")
end
table.insert(disp6final,table disp7 .concat(safari). "\n")
end
 
-- altri metodi
 
if frame.args.gen6other then
table.insert(disp6,specialtext(frame.args.gen6other))
end
 
-- caso base: necessita trasferitore (non "non disponibile": se non è nè in quinta nè in sesta non deve apparire nella lista)
 
if table.getn(disp6)==0 then
disp6="[[Pokétrasferitore]]"
else disp6 = table.concat(disp6,"<br />")
end
table.insert(final, disp6.."\n|")
 
-- SETTIMA GENERAZIONE
-- I don't really know if there may be some standard method, so I'll add
-- just this
local disp7 = {}
 
-- other methods
 
if frame.args.gen7other then
table.insert(disp7, specialtext(frame.args.gen7other))
end
 
-- base case: Banca Pokémon (it's not "Not available" because it wouldn't
-- have appeared in the list if it hadn't been available neither in sixth
-- nor fifth gen)
 
if table.getn(disp7)==0 then
disp7="[[Banca Pokémon]]"
else
disp7 = table.concat(disp7,"<br />")
end
table.insert(final, disp7 .. "\n")
 
return table.concat(final)