Difference between revisions of "Module:Creature"
Jump to navigation
Jump to search
Banyantimes (talk | contribs) |
Banyantimes (talk | contribs) |
||
| Line 19: | Line 19: | ||
:addRow( 'Family', args.familia ) | :addRow( 'Family', args.familia ) | ||
:addRow( 'Genus', args.genus ) | :addRow( 'Genus', args.genus ) | ||
:addRow( ' | :addRow( 'Scientific name (Species)', args.species ) | ||
return retval | return retval | ||
end | end | ||
return p | return p | ||
Latest revision as of 06:42, 24 February 2022
Documentation for this module may be created at Module:Creature/doc
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
local args = frame:getParent().args
local headerStyle
if args.headerstyle and args.headerstyle ~= '' then
headerStyle = string.format('background-color:%s;', args.headerstyle)
else
headerStyle = 'background-color:grey;'
end
local retval = capiunto.create( {
title = args.title,
headerStyle = headerStyle,
} )
:addImage( args.image, args.caption )
:addRow( 'Order', args.ordo )
:addRow( 'Family', args.familia )
:addRow( 'Genus', args.genus )
:addRow( 'Scientific name (Species)', args.species )
return retval
end
return p