Here are some userboxes for showing who was Prime Minister of the United Kingdom when a user was born. These were inspired by User:Karlhahn/user born administration, which shows the relevant President of the United States.

Just add the code below to your userpage. For example, adding {{User:Lambdoid/User Heath}} will display the Edward Heath userbox.

Userboxes edit

Code Result Dates in office
{{User:Lambdoid/User Brown}}
  This user was born during the Brown government
from 27 June 2007
{{User:Lambdoid/User Blair}}
  This user was born during the Blair government
2 May 1997 to 27 June 2007
{{User:Lambdoid/User Major}}
  This user was born during the Major government
28 November 1990 to 2 May 1997
{{User:Lambdoid/User Thatcher}}
  This user was born during the Thatcher government
4 May 1979 to 28 November 1990
{{User:Lambdoid/User Callaghan}}
  This user was born during the Callaghan government
5 April 1976 to 4 May 1979
{{User:Lambdoid/User Wilson 2}}
  This user was born during the second Wilson government
4 March 1974 to 5 April 1976
{{User:Lambdoid/User Heath}}
  This user was born during the Heath government
19 June 1970 to 4 March 1974
{{User:Lambdoid/User Wilson 1}}
  This user was born during the first Wilson government
16 October 1964 to 19 June 1970
{{User:Lambdoid/User Douglas-Home}}
' This user was born during the Douglas-Home government
20 October 1963 to 16 October 1964
{{User:Lambdoid/User Macmillan}} User:Lambdoid/User Macmillan 11 January 1957 to 19 October 1963
{{User:Lambdoid/User Eden}} User:Lambdoid/User Eden 7 April 1955 to 9 January 1957
{{User:Lambdoid/User Churchill 2}} User:Lambdoid/User Churchill 2 26 October 1951 to 7 April 1955
{{User:Lambdoid/User Attlee}} User:Lambdoid/User Attlee 27 July 1945 to 26 October 1951
{{User:Lambdoid/User Churchill 1}} User:Lambdoid/User Churchill 1 10 May 1940 to 27 July 1945