Module:Infobox war
From Paracosm
More actions
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