Difference between revisions of "Infobox GaldoriSpell"
From ThornsWiki
Thornswiki (talk | contribs) (Created page with "local p = {} function p.default(frame) local capiunto = require 'capiunto' return capiunto.create( { top = tostring(mw.title.getCurrentTitle()), topStyle = 'background...") |
Thornswiki (talk | contribs) |
||
Line 7: | Line 7: | ||
topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;', | topStyle = 'background:#5f5543;color:#FFF;font-family:Metamorphous, serif;line-height:1.25em;', | ||
} ) | } ) | ||
− | :addRow('Spell Name', frame.args[" | + | |
− | :addRow('Conversation | + | :addImage( |
+ | string.format('[[File:%s|250px]]', frame.args["image"]), -- featured image | ||
+ | frame.args["caption"] -- caption | ||
+ | ) | ||
+ | :addHeader('Quick Facts') | ||
+ | :addRow('Spell Name', frame.args["name"]) | ||
+ | :addRow('Conversation', frame.args["conversation"]) | ||
+ | :addRow('Chapter', frame.args["chapter"]) | ||
+ | :addRow('Spell Effects', frame.args["effects"]) | ||
+ | |||
end | end | ||
return p | return p |
Revision as of 16:17, 4 December 2018
Documentation for this module may be created at Module:Infobox GaldoriSpell/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('Quick Facts') :addRow('Spell Name', frame.args["name"]) :addRow('Conversation', frame.args["conversation"]) :addRow('Chapter', frame.args["chapter"]) :addRow('Spell Effects', frame.args["effects"]) end return p