« Module:Rotation de contenu » : différence entre les versions

Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 3 : Ligne 3 :
function p.choose(content, size)
function p.choose(content, size)
-- On retourne tout le contenu
-- On retourne tout le contenu
if size == nil then
if not size then
return content
return content
end
end
Ligne 34 : Ligne 34 :


function p.build(frame)  
function p.build(frame)  
content = frame:getParent().args
content = frame.args
fragment_size = frame.args[1]
fragment_size = frame:getParent().args[1]
local list = '<ul>'
local list = '<ul>'