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 21:31, 22 June 2025 by Max (talk | contribs) (Create infobox season module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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', 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},
	    {'s', 'World Download'},
	    {'f', 'Download Link',   args.worlddownload},
	}

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

return p