Actions

Module

Infobox Kingdom

From ThornsWiki

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

local p = {}
 
function p.default(frame)
	local capiunto = require 'capiunto'
	return capiunto.create( {
		top = tostring(mw.title.getCurrentTitle()),
		topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;',
	} )
	:addImage(
		string.format('[[File:%s|center|]]', frame.args["image"]), -- featured image
		frame.args["caption"] -- caption
	)
	:addHeader('Kingdom Overview')
	:addRow('Capital', frame.args["capital"])
	:addRow('University', frame.args["university"])
	:addRow('Government', frame.args["government"])
	:addRow('Rulers', frame.args["rulers"])
	:addRow('Climate', frame.args["climate"])
	:addRow('Estimated Land Mass', frame.args["land"])
	:addRow('Population', frame.args["population"])
	:addRow('Race Distribution', frame.args["percent"])
	:addRow('Racial Breakdown', frame.args["races"])
	:addHeader('Kingdom Details')
	:addRow('Currency', frame.args["currency"])
	:addRow('Patron Diety', frame.args["worship"])
	:addRow('Languages', frame.args["languages"])
	:addHeader('Kingdom Information')
	:addRow('Play Status', frame.args["play_status"])

end

return p