More actions
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
headerStyle = "background-color: grey;" | headerStyle = "background-color: grey;" | ||
end | end | ||
local retval = capiunto.create({ | local retval = capiunto.create({ | ||
title = args. | title = args.name, | ||
headerStyle = headerStyle, | headerStyle = headerStyle, | ||
captionStyle = "text-align: center;", | captionStyle = "text-align: center;", | ||
imageStyle = "text-align: center;", | |||
}) | }) | ||
retval:addImage("[[File:" .. args.image .. "|200px]]", args.caption) | |||
retval:addImage("[[File:" .. args.image .. "| | retval:addRow("Alias", args.other_names or "Unknown") | ||
retval:addRow("Sex", args.sex or "Unknown") | |||
retval:addRow("Nation from", args.nation_from or "Unknown") | |||
retval:addRow("Breed", args.breed or "Unknown") | |||
retval:addRow("Fur color", args.coat or "Unknown") | |||
retval:addRow("Born", args.born or "Unknown") | |||
retval:addRow("Died", args.died or "Unknown") | |||
retval:addRow("Cause of death", args.cause_of_death or "Unknown") | |||
retval:addRow("Resting place", args.resting_place or "Unknown") | |||
retval:addRow("Occupation", args.occupation or "Unknown") | |||
retval:addRow("Owner", args.owner or "Unknown") | |||
retval:addRow("Appearance", args.appearance or "Unknown") | |||
retval:addRow("Weight", args.weight or "Unknown") | |||
retval:addRow("Height", args.height or "Unknown") | |||
retval:addRow("Sound", args.sound or "Unknown") | |||
retval:addRow("Social Media", args.social_media or "Unknown") | |||
return retval | return retval | ||
end | end | ||
return p | return p |