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

Module:FertilizerWindows

From Piñata Journal
Revision as of 09:44, 25 February 2026 by Admin Jeremy (talk | contribs)

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

local p = {}

local icon = '[[File:Fertilizer bag icon.png|45px]]'

function p.render(frame)

    local window = tonumber(frame.args[1]) or 0
    local count = tonumber(frame.args[2]) or 0
    if count == 0 then return '' end

    local label = ''
    if window == 0 then
        label = 'After Planting'
    else
        label = 'After ' .. window .. ' Bud Burst'
    end

    local icons = ''
    for i=1,count do
        icons = icons .. icon
    end

    return '<div class="vp-fert-window">'
        .. '<div class="vp-fert-label">' .. label .. '</div>'
        .. '<div class="vp-fert-icons">' .. icons .. '</div>'
        .. '</div>'
end

return p