Difference between revisions of "Infobox Kingdom"
From ThornsWiki
Thornswiki (talk | contribs) |
Thornswiki (talk | contribs) |
||
Line 13: | Line 13: | ||
:addHeader('Kingdom Overview') | :addHeader('Kingdom Overview') | ||
:addRow('Capital', frame.args["capital"]) | :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('Climate', frame.args["climate"]) | ||
− | :addRow(' | + | :addRow('Estimated Land Mass', frame.args["land"]) |
:addRow('Population', frame.args["population"]) | :addRow('Population', frame.args["population"]) | ||
− | :addRow(' | + | :addRow('Race Distribution', frame.args["percent"]) |
+ | :addRow('Racial Breakdown', frame.args["races"]) | ||
:addHeader('Kingdom Details') | :addHeader('Kingdom Details') | ||
:addRow('Currency', frame.args["currency"]) | :addRow('Currency', frame.args["currency"]) | ||
− | |||
− | |||
:addRow('Patron Diety', frame.args["worship"]) | :addRow('Patron Diety', frame.args["worship"]) | ||
+ | :addRow('Languages', frame.args["languages"]) | ||
:addHeader('Kingdom Information') | :addHeader('Kingdom Information') | ||
:addRow('Play Status', frame.args["play_status"]) | :addRow('Play Status', frame.args["play_status"]) |
Latest revision as of 22:03, 20 October 2019
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