Jump to content

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

Module:Infobox Player

From CrabCraft Wiki
Revision as of 20:23, 21 June 2025 by Noah (talk | contribs) (fix season joined)

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

local p = {}

local infobox = require("Module:Infobox")

function p.infobox(frame)
    local args = frame:getParent().args
    local used = {} -- track which keys we’ve output
    local out = {}
    
    local player_args = {
    	{'t', args.username},
    	{'s', 'About'},
    	{'f', 'nationality', args.nationality},
    	{'f', 'seasonjoined', args.season-joined},
    	{'s', 'Socials'},
    	{'f', 'discord', args.discord},
    }

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

return p