Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:StarDisplay

From Mine in Abyss
Revision as of 18:47, 17 October 2024 by Scyu (talk | contribs) (Created page with "local p = {} function p.render(frame) local danger = tonumber(frame.args[1]) or 0 local stars = "" for i = 1, danger do stars = stars .. "⭐" -- Change this to "15px" if using an image end return stars end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:StarDisplay/doc

local p = {}

function p.render(frame)
    local danger = tonumber(frame.args[1]) or 0
    local stars = ""

    for i = 1, danger do
        stars = stars .. "⭐"  -- Change this to "[[File:Star.png|15px]]" if using an image
    end

    return stars
end

return p