Jump to content

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

Module:Infobox Software

From CrabCraft Wiki

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

local p = {}
local infobox = require("Module:Infobox")

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

    local software_args = {
        {'t',       args.name},
        {'i',       args.image and args.image ~= '' and string.format('[[File:%s|300px]]', args.image) or ''},
        
        {'s',       'Development Information'},
        {'f',       'Name',            args.name},
        {'f',       'Developer',       args.developer},
        {'f',       'Status',          args.status},
        {'f',       'Release Date',    args.release_date},

        {'s',       'Scope'},
        {'f',       'Seasons Covered', args.seasons},
        {'f',       'Platform',        'Web Browser'},

        {'s',       'External Links'},
        {'f',       'Website',         args.website},

        {'s',       'About'},
        {'f',       'Description',     args.description},
    }

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

return p