More actions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
local retval = capiunto.create({ | local retval = capiunto.create({ | ||
title = args.title, | title = args.title, | ||
titleStyle = "font-size: 2em;", | titleStyle = "font-size: 2em; margin: 1em;", | ||
headerStyle = headerStyle, | headerStyle = headerStyle, | ||
captionStyle = "text-align: center;", | captionStyle = "text-align: center;", | ||
}) | }) | ||
retval:addImage("[[File:" .. args.image .. "|293px]]", args. | retval:addImage("[[File:" .. args.image .. "|293px|center]]", args.caption) | ||
if args.alias then retval:addRow("Aliases", args.alias) end | if args.alias then retval:addRow("Aliases", args.alias) end | ||
if args.sex then retval:addRow("Sex", args.sex) end | if args.sex then retval:addRow("Sex", args.sex) end | ||
Line 27: | Line 27: | ||
if args.rescued then retval:addRow("Rescued", args.rescued) end | if args.rescued then retval:addRow("Rescued", args.rescued) end | ||
if args.died then retval:addRow("Died", args.died) end | if args.died then retval:addRow("Died", args.died) end | ||
if args. | if args.cause_of_death then retval:addRow("Cause of death", args.cause_of_death) end | ||
if args. | if args.resting_place then retval:addRow("Resting place", args.resting_place) end | ||
if args.occupation then retval:addRow("Occupation", args.occupation) end | if args.occupation then retval:addRow("Occupation", args.occupation) end | ||
if args.mate then retval:addRow("Mate", args.mate) end | if args.mate then retval:addRow("Mate", args.mate) end | ||
if args.weight then retval:addRow("Weight", args.weight) end | if args.weight then retval:addRow("Weight", args.weight) end | ||
Line 37: | Line 38: | ||
if args.sound then retval:addRow("Sound", args.sound) end | if args.sound then retval:addRow("Sound", args.sound) end | ||
if args.social_media then retval:addRow("Social media", args.social_media) end | if args.social_media then retval:addRow("Social media", args.social_media) end | ||
local footnote = "<div style=\"font-size: 0.8em; text-align: center;\">This is a footnote.</div>" | |||
retval:addRow("", footnote) | |||
return retval | |||
end | end | ||
return p | return p |