Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 19:13, 13 June 2026 by Gravy (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local infobox = require( 'Module:InfoboxLua' )

local p = {}

function p.main( frame )
    local args = require( 'Module:Arguments' ).getArgs( frame )

    return infobox.render( {
        title = args.title or mw.title.getCurrentTitle().subpageText,
        subtitle = args.subtitle and ('Part of ' .. args.subtitle) or nil,
        image = args.image,
        sections = {
            {
                items = {
                    { label = 'Date', content = args.date },
                    { label = 'Location', content = args.place },
                    { label = 'Action', content = args.action },
                    { label = 'Status', content = args.status },
                    { label = 'Territorial changes', content = args.territory },
                    { label = 'Result', content = args.result },
                    { label = args.combatants_header or 'Belligerents', content = args.combatants }
                }
            },
        }
    } )
end

return p
Last modified