Module:CatInfobox: Difference between revisions

m
Protected "Module:CatInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
(+arg "feeders")
m (Protected "Module:CatInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
})
})
retval:addImage("[[File:" .. args.image .. "|300px]]", args.caption)
retval:addImage("[[File:" .. args.image .. "|300px]]", args.caption)
if args.other_names then retval:addRow("Also known as", args.other_names) end
if args.other_names then retval:addRow("Other name(s)", args.other_names) end
if args.other_names then retval:addRow("Feeder(s)", args.feeders) end
retval:addRow("Breed", args.breed or "Unknown")
retval:addRow("Breed", args.breed or "Unknown")
:addRow("Coat", args.coat or "Unknown")
:addRow("Coat", args.coat or "Unknown")
Line 26: Line 25:
if args.occupation then retval:addRow("Occupation", args.occupation) end
if args.occupation then retval:addRow("Occupation", args.occupation) end
if args.appearance then retval:addRow("Appearance", args.appearance) end
if args.appearance then retval:addRow("Appearance", args.appearance) end
if args.eye_color then retval:addRow("Eye Color", args.eye_color) end
if args.personality then retval:addRow("Personality", args.personality) end
if args.personality then retval:addRow("Personality", args.personality) end
retval:addRow("First known sighting", args.first_sighting or "Unknown")
retval:addRow("First known sighting", args.first_sighting or "Unknown")