How do I colour the background of a cell pink, blue or green?

+8 votes

A great new feature. I would like to incorporate.  How do I do it please?

in WikiTree Tech by Sir William Arbuthnot of Kittybrewster G2G6 Pilot (171k points)

1 Answer

+1 vote
Pink is for girls, blue is for Boys, Green is either - nothing was put in the box - or one of the tighter privacy level. It's written into the programming, you can only effect the colour by changing the gender on a profile.
by Anne B G2G Astronaut (1.2m points)
Yes indeed, though it used to be pink for boys and blue for girls. I was thinking can I distinguish my paternal and maternal relations  (or both) on my own profile, by colouring the bacckground.   I appreciate that people could only use such a scheme on their own profile.

To colour a cell, try

|| bgcolor="red" | blah blah blah ||      note the single pipe

Whole row, no extra pipe

|- bgcolor="red"

Whole table

{| bgcolor="red"

Cell overrides row etc

For better colors, see



Very  any thanks,   RJ
RJ and Sir William: Coloring like this is not recommended. The rationale is somewhat complicated. See
It's not CSS, it's basic primitive HTML.  The MediaWiki table syntax is very close to HTML tbody/td/tr tags, close enough to intermix.  The attributes go straight through, eg || bgcolor= becomes <td bgcolor=>.  I don't do CSS.  I hate CSS.

Use of attributes is part of the table scheme, since there aren't any substitutes.  Border= is essential, to get a table with or without lines.  Also, we need align=, valign=, rowspan=, colspan= etc.

Related questions

+16 votes
1 answer
+10 votes
1 answer
127 views asked Jan 22, 2016 in The Tree House by Mags Gaulden G2G6 Pilot (535k points)
+22 votes
1 answer
112 views asked Oct 12, 2015 in The Tree House by Debby Black G2G6 Mach 8 (81.1k points)
+2 votes
2 answers
658 views asked Nov 10, 2019 in Genealogy Help by Edward McManus G2G Rookie (220 points)
+10 votes
1 answer
847 views asked Sep 21, 2015 in Photos by K. Bristol G2G Crew (430 points)
+3 votes
3 answers
+5 votes
2 answers

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright