Jump to content

📢 Please make sure to read our Style Guide before editing. For questions, suggestions, or technical issues, please contact Noah.

Module:Infobox Season

From CrabCraft Wiki
Revision as of 10:56, 24 June 2025 by Max (talk | contribs) (Adds formatting to image)

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

local p = {}

local infobox = require("Module:Infobox")

function p.infobox(frame)
    local args = frame:getParent().args

	local season_args = {
	    {'t', args.name},
        {'i', string.format('[[File:%s|300px]]', args.image)},
	    {'s', 'Overview'},
	    {'f', 'Name', args.name},
	    {'f', 'Started', args.started},
	    {'f', 'Ended', args.ended},
	    {'f', 'Total Days', args.totaldays},
	    {'s', 'Player Statistics'},
	    {'f', 'Whitelisted Players', args.players},
	    {'f', 'Peak Players', args.peakplayers},
	    {'s', 'Server Info'},
	    {'f', 'Version', args.version},
	    {'f', 'Platform', args.platform},
	    {'f', 'Experiments', args.experiments},
	    {'s', 'World Download'},
	    {'f', 'Download Link', args.worlddownload},
	}

    return infobox.infobox {
        getParent = function() return { args = season_args } end
    }
end

return p