Difference between revisions of "Infobox NPC"
From ThornsWiki
Thornswiki (talk | contribs) |
Thornswiki (talk | contribs) |
||
Line 5: | Line 5: | ||
return capiunto.create( { | return capiunto.create( { | ||
top = tostring(mw.title.getCurrentTitle()), | top = tostring(mw.title.getCurrentTitle()), | ||
− | topStyle = 'background:# | + | topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;', |
} ) | } ) | ||
:addImage( | :addImage( |
Revision as of 12:51, 15 November 2018
Documentation for this module may be created at Module:Infobox NPC/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|250px]]', frame.args["image"]), -- featured image frame.args["caption"] -- caption ) :addHeader('Biographic Information') :addRow('Age', frame.args["age"]) :addRow('Birthday', frame.args["birthday"]) :addRow('Born in', frame.args["born_in"]) :addRow('Currently in', frame.args["currently_in"]) :addHeader('Physical Information') :addRow('Race', frame.args["race"]) :addRow('Gender', frame.args["gender"]) :addRow('Height', frame.args["height"]) :addRow('Hair Color', frame.args["hair_color"]) :addRow('Eye Color', frame.args["eye_color"]) :addRow('Distinguishing Marks', frame.args["marks"]) :addHeader('Relationships') :addRow('Family', frame.args["family"]) :addHeader('Occupation') :addRow('Job Title', frame.args["title"]) end return p