Module:CatInfobox: Difference between revisions

m
Protected "Module:CatInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
m (Protected "Module:CatInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(4 intermediate revisions by 3 users not shown)
Line 25: 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")
if args.partner or args.children or args.other_relations then
if args.partner or args.children or args.siblings or args.parents or args.other_relations then
retval:addHeader("Relations")
retval:addHeader("Relations")
:addRow("Parents", args.parents or "Unknown")
:addRow("Siblings", args.siblings or "Unknown")
:addRow("Partner", args.partner or "None")
:addRow("Partner", args.partner or "None")
:addRow("Children", args.children or "None")
:addRow("Children", args.children or "None")