Module:Stars
Une page d'Inkipédia, le wiki Splatoon
La documentation pour ce module peut être créée à Module:Stars/doc
local p = {} p.main = function (frame) local result = "" local fullstars = frame:getParent().args['count'] or frame:getParent().args[1] or 0 local size = frame:getParent().args['size'] or frame:getParent().args[2] or "24px" local totalstars = frame:getParent().args['total'] or frame:getParent().args[3] or 3 for _ = 1, fullstars do result = result .. "[[file:star-full.png|" .. size .. "|link=]]" end for _ = 1, totalstars - fullstars do result = result .. "[[file:star-empty.png|" .. size .. "|link=]]" end return result end return p