Differenze tra le versioni di "Modulo:Evobox"

Gradient classes in Box, aliases for egggroup color and for altforms egggroups, parameter cat=no in Evobox *** sovrascritto il testo esistente ***
(Adding new Pokémon revealed on August 8th *** sovrascritto il testo esistente ***)
(Gradient classes in Box, aliases for egggroup color and for altforms egggroups, parameter cat=no in Evobox *** sovrascritto il testo esistente ***)
 
SMALL_TEXT_NEWLINE = [=[<div class="small-text">${text}</div>]=],
 
CAT_TRE_PHASES = '[[Categoria:Pokémon appartenenti a una linea di evoluzione a tre stadi]]',
CAT_TWO_PHASES = '[[Categoria:Pokémon appartenenti a una linea di evoluzione a due stadi]]',
CAT_ONE_PHASE = '[[Categoria:Pokémon che non fanno parte di una linea di evoluzione]]',
CAT_BRANCHED_PHASES = '[[Categoria:Pokémon con evoluzioni diramate]]',
}
 
Main Wikicode interface, but using data module. The first parameter is the
Pokémon's name ({{BASEPAGENAME}}). There are some optional parameters:
- form: the abbr of the form of which create the box.
- prune: if "no" then doesn't prune the evo-tree
- cat: if "no" then doesn't add categories
 
--]]
 
-- Adds categories
if datap.conditionscat ~= "no"
and not (data.conditions[evodata.conditions.BREEDONLY] then -- luacheck: ignore
and data.conditions[evodata.conditions.BREEDONLY]) then
-- No category to add
elseif if phase3evos and table.getn(phase3evos, "num") > 0 then
table.insert(evobox, '[[Categoria:Pokémon appartenenti a una linea di evoluzione a tre stadi]]'eb.strings.CAT_TRE_PHASES)
elseif data.evos then
table.insert(evobox, '[[Categoria:Pokémon appartenenti a una linea di evoluzione a due stadi]]'eb.strings.CAT_TWO_PHASES)
else
table.insert(evobox, '[[Categoria:Pokémon che non fanno parte di una linea di evoluzione]]'eb.strings.CAT_ONE_PHASE)
end
if phase3evos and table.getn(phase3evos, "num") > 1
or (data.evos and table.getn(data.evos, "num") > 1) then
table.insert(evobox, '[[Categoria:Pokémon con evoluzioni diramate]]'eb.strings.CAT_BRANCHED_PHASES)
end
end
 
79 548

contributi