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

Module:StarDisplay: Difference between revisions

From Mine in Abyss
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"
 
(No difference)

Latest revision as of 18:47, 17 October 2024

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