Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Module:CapiuntoTest

From Catpedia
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 infoboxStyle = "width: 300px; max-width: 100%;"
     local retval = capiunto.create({
     local retval = capiunto.create({
         title = args.title,
         title = args.name,
        titleStyle = "font-size: 2em;",
         headerStyle = headerStyle,
         headerStyle = headerStyle,
         captionStyle = "text-align: center;",
         captionStyle = "text-align: center;",
         infoboxStyle = infoboxStyle,
         imageStyle = "text-align: center;",
     })
     })
    local imageStyle = "display: block; margin-left: auto; margin-right: auto;"
     retval:addImage("[[File:" .. args.image .. "|250px]]", args.caption)
     retval:addImage("[[File:" .. args.image .. "|293px|center|link=]]", args.caption, imageStyle) -- added "center" to the image properties
     retval:addRow("Alias", args.other_names or "Unknown")
     if args.alias then retval:addRow("Aliases", args.alias) end
     retval:addRow("Sex", args.sex or "Unknown")
     if args.sex then retval:addRow("Sex", args.sex) end
     retval:addRow("Nation from", args.nation_from or "Unknown")
     if args.nationality then retval:addRow("Nation from", args.nationality) end
     retval:addRow("Breed", args.breed or "Unknown")
     if args.breed then retval:addRow("Breed", args.breed) end
     retval:addRow("Fur color", args.coat or "Unknown")
     if args.coat then retval:addRow("Coat", args.coat) end
     retval:addRow("Born", args.born or "Unknown")
     if args.born then retval:addRow("Born", args.born) end
     retval:addRow("Died", args.died or "Unknown")
    if args.abandoned then retval:addRow("Abandoned", args.abandoned) end
     retval:addRow("Cause of death", args.cause_of_death or "Unknown")
     if args.rescued then retval:addRow("Rescued", args.rescued) end
     retval:addRow("Resting place", args.resting_place or "Unknown")
    if args.died then retval:addRow("Died", args.died) end
     retval:addRow("Occupation", args.occupation or "Unknown")
     if args.cause_of_death then retval:addRow("Cause of death", args.cause_of_death) end
     retval:addRow("Owner", args.owner or "Unknown")
     if args.resting_place then retval:addRow("Resting place", args.resting_place) end
     retval:addRow("Appearance", args.appearance or "Unknown")
     if args.occupation then retval:addRow("Occupation", args.occupation) end
     retval:addRow("Weight", args.weight or "Unknown")
     if args.mate then retval:addRow("Mate", args.mate) end
     retval:addRow("Height", args.height or "Unknown")
     if args.weight then retval:addRow("Weight", args.weight) end
     retval:addRow("Sound", args.sound or "Unknown")
     if args.height then retval:addRow("Height", args.height) end
     retval:addRow("Social Media", args.social_media or "Unknown")
     if args.owner then retval:addRow("Owner", args.owner) end
    if args.known_for then retval:addRow("Known for", args.known_for) end
     if args.sound then retval:addRow("Sound", args.sound) 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
     return retval
end
end


return p
return p
Please note that all contributions to Catpedia are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see Catpedia:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: