7 028
contributi
(risolto errore con le orde esclusive; aggiunta voce forma safari) |
(ignora il campo gen5 per quelli di sesta più altri dettagli) |
||
local m = {}
end
return table.concat(areas,", ")
end
-- per alcune formattazioni speciali
local function specialtext(text)
if text:find("%^") then
text = text:gsub("%^(.-)%^",function(a) return sup[a] end)
end
if text:find("%*") then
text = text:gsub("%*(.-)*^",function(a) return "<span class=\"explain\" title="..a..">*</span>" end)
end
return text
end
-- QUINTA GENERAZIONE
if (tonumber(frame.args.num) or 650) <= 649 then -- salta il campo per gen6
local disp5 = {}
-- Dream World
if frame.args.dwarea then
local dwarea = "[[Dream World]]: "..splitareas(frame.args.dwarea,5)
if frame.args.dwversion then
dwarea = dwarea .. sup[frame.args.dwversion]
end
table.insert(disp5,dwarea)
end
-- Meandri nascosti
if frame.args.hh then
local hh = "[[Meandri nascosti]]: "..splitareas(frame.args.hh,5)
end
table.insert(disp5,hh)
end
-- scambi di Sciroccopoli
if frame.args.nimbasa then
local nimbasa = "[[Sciroccopoli]] ([[Scambio]] con "
nimbasa = nimbasa.."[[
end
table.insert(disp5,nimbasa..")")
end
-- RAdar
if frame.args.radar then
local radar = "[[RAdar Pokémon]]"
end
table.insert(disp5,radar)
end
-- altri metodi
if frame.args.gen5other then
table.insert(disp5,specialtext(frame.args.gen5other))
end
-- caso base: non disponibile
if #disp5==0 then
disp5="''Non disponibile''"
else disp5 = table.concat(disp5,"<br />")
end
table.insert(final, disp5.."\n|")
end
-- SESTA GENERAZIONE
-- 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)
|
contributi