Differenze tra le versioni di "Modulo:Wikilib/forms"

m
Added abbrLT (needed in Wikilib/lists grouped lists)
m (Added formSortValue)
m (Added abbrLT (needed in Wikilib/lists grouped lists))
trueName = type(trueName) == 'number' and string.tf(trueName) or trueName
return trueName .. f.toEmptyAbbr(extform)
end
 
--[[
 
Less than confront for form abbr of a Pokémon. The parameters are the Pokémon's
AltForms-data and the two form abbr.
 
--]]
f.abbrLT = function(formsData, abbr1, abbr2)
return table.search(formsData.gamesOrder, abbr1)
< table.search(formsData.gamesOrder, abbr2)
end