Anonimo

Modulo:FunzioniGeneriche: differenze tra le versioni

Da Wikitrek.
Test sort
mNessun oggetto della modifica
(Test sort)
Riga 218: Riga 218:
local Match = string.match(TestString, "[^%s]+$")
local Match = string.match(TestString, "[^%s]+$")
return Match .. " - " .. string.upper(string.sub(Match, 1, 1))
return Match .. " - " .. string.upper(string.sub(Match, 1, 1))
end
--- Test function to check properties sorting
--
-- @param frame
-- @return Comma-separated list of properties
function p.SortedPropertiesList(frame)
local AllP
Item = mw.wikibase.getEntity('Q11160')
AllP = mw.wikibase.orderProperties(Item:getProperties())
return table.concat(AllP, ",")
end
end
return p
return p