# How does Wikipedia update ages?

**URL:** <https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727>\
**Category:** Factual Questions\
**Created:** [July 22, 2014, 9:34am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727 "2014-07-22T09:34:44Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [July 22, 2014, 9:34am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/1 "2014-07-22T09:34:44Z")

</div>

There are thousands of biographical articles in Wikipedia for living people. And one standard datum for each of them is their current age. But every day, there are dozens of people who have Wikipedia articles having a birthday and becoming a year older. (Today, for example, we had a group of people ranging from Prince George turning one year old to Licia Albanese turning a hundred and one. Happy Birthday to them along with Bob Dole, Orson Bean, Tom Robbins, Alex Trebek, George Clinton, Bobby Sherman, Danny Glover, Don Henley, David Spade, Rufus Wainwright, and Selena Gomez)

Do some people go around and manually update all those ages every day? Or is there some automated process that does it?

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [July 22, 2014, 9:46am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/2 "2014-07-22T09:46:38Z")

</div>

The birth date is coded. For example, on the page for [Barack Obama](http://en.wikipedia.org/wiki/Barack_Obama), you see:

> [@](#):
>
> Born … August 4, 1961 (age 52)

In the source data for that page is:

```auto

|birth_date = {{birth date and age|mf=yes|1961|8|4}}

```

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [July 22, 2014, 9:58am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/3 "2014-07-22T09:58:06Z")

</div>

You can read more about the Birth date and age template [here](https://en.wikipedia.org/wiki/Template:Birth_date_and_age):

> [@](#):
>
> This template is used on 265,000+ pages.
> 
> To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them.
> 
> ```
> Do not use this template when the person’s exact date of birth is disputed or unknown.
> 
> ```

---

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [July 22, 2014, 10:12am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/4 "2014-07-22T10:12:59Z")

</div>

So it just automatically adds a year to everyone’s age when the appropriate date is reached? Does it happen at midnight and where is it based on? Are these automatic edits reflected in the edit history of the text?

---

<div class="post-metadata">

**Author:** ![Keeve](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Keeve](https://boards.straightdope.com/u/Keeve)\
**Post date:** [July 22, 2014, 10:41am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/5 "2014-07-22T10:41:03Z")

</div>

> [@Little\_Nemo](#):
>
> So it just automatically adds a year to everyone’s age when the appropriate date is reached? Does it happen at midnight and where is it based on? Are these automatic edits reflected in the edit history of the text?

No, it is not an automatic edit. It is an ad hoc calculation.

Consider it to be a sort of programming. If you’ve ever edited a Wikipedia article, you know that if the article contains something like

```auto

[[Straight Dope]]

```

those brackets do NOT appear to people who are reading the article. Instead, Wikipedia translates it into being a link to the article titled “Straight Dope”. Similarly, it does a quick calculation and shows you the person’s age in plain text.

---

<div class="post-metadata">

**Author:** ![N9IWP](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/n9iwp/32/3154_2.png) [@N9IWP](https://boards.straightdope.com/u/N9IWP)\
**Post date:** [July 22, 2014, 10:47am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/6 "2014-07-22T10:47:26Z")

</div>

> [@Giles](#):
>
> The birth date is coded. For example, on the page for [Barack Obama](http://en.wikipedia.org/wiki/Barack_Obama), you see:
> 
> In the source data for that page is:
> 
> ```auto
> 
> |birth_date = {{birth date and age|mf=yes|1961|8|4}}
> 
> ```

Out of curiosity what do the parameters “mf” and the “8” and the “4” for?

Brian

---

<div class="post-metadata">

**Author:** ![bob\_2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bob_2/32/3341_2.png) [@bob\_2](https://boards.straightdope.com/u/bob_2)\
**Post date:** [July 22, 2014, 10:51am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/7 "2014-07-22T10:51:39Z")

</div>

> [@Little\_Nemo](#):
>
> Do some people go around and manually update all those ages every day? Or is there some automated process that does it?

The mind boggles that anyone would think, that in this age of computers, someone would have the very tedious job of manually adding one to everyone’s age on their birthdays.

---

<div class="post-metadata">

**Author:** ![Bullitt](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bullitt/32/5725_2.png) [@Bullitt](https://boards.straightdope.com/u/Bullitt)\
**Post date:** [July 22, 2014, 10:54am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/8 "2014-07-22T10:54:45Z")

</div>

> [@N9IWP](#):
>
> Out of curiosity what do the parameters “mf” and the “8” and the “4” for?
> 
> Brian

1961|8|4 = 1961-08-04 = 04 August 1961

No idea what mf is, though.

---

<div class="post-metadata">

**Author:** ![Dervorin](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dervorin](https://boards.straightdope.com/u/Dervorin)\
**Post date:** [July 22, 2014, 10:55am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/9 "2014-07-22T10:55:12Z")

</div>

> [@N9IWP](#):
>
> Out of curiosity what do the parameters “mf” and the “8” and the “4” for?
> 
> Brian

The 8 and the 4 are the month and date of the birthday of the person in question, in this case August 4. The parameter “mf” or “df” indicates whether you want the date to be displayed month first or date first.

> **[Template:Birth date and age](https://en.wikipedia.org/wiki/Template:Birth_date_and_age)**
>
> Template:Birth date and age will return a living person's date of birth and age. Using this template rather than simply inserting the date into articles allows for the inclusion of hidden metadata about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index, or search them.
> This template is intended for use in an article about a living person. For an article about a dead person, use {{B...

> [@](#):
>
> {{Birth date and age|1993|2|4|df=yes}} returns 4 February 1993 (age 21)  
> {{Birth date and age|1993|2|4|mf=yes}} returns February 4, 1993 (age 21)

---

<div class="post-metadata">

**Author:** ![Keeve](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Keeve](https://boards.straightdope.com/u/Keeve)\
**Post date:** [July 22, 2014, 11:18am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/10 "2014-07-22T11:18:51Z")

</div>

> [@Dervorin](#):
>
> The 8 and the 4 are the month and date of the birthday of the person in question, in this case August 4. The parameter “mf” or “df” indicates whether you want the date to be displayed month first or date first.
> 
> [Template:Birth date and age - Wikipedia](http://en.wikipedia.org/wiki/Template:Birth_date_and_age)

Thanks. I was wondering about the “mf”, thinking it meant “male/female” but seeing nothing like that in the output.

I am very curious why they chose the cumbersome and cryptic “mf=yes” and “df=yes” instead of the simpler “mdy” and “dmy”.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [July 22, 2014, 11:28am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/11 "2014-07-22T11:28:38Z")

</div>

> [@Keeve](#):
>
> Thanks. I was wondering about the “mf”, thinking it meant “male/female” but seeing nothing like that in the output.
> 
> I am very curious why they chose the cumbersome and cryptic “mf=yes” and “df=yes” instead of the simpler “mdy” and “dmy”.

Whoever created the template just decided to use those letters. If you don’t like it, you can create your own template and see if it catches on. (Not being snarky here. It’s just sort of how the templates propagate. Some guy makes one and uses it and spreads it, and eventually others catch on and retain the original code for compatibility.)

---

<div class="post-metadata">

**Author:** ![Keeve](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Keeve](https://boards.straightdope.com/u/Keeve)\
**Post date:** [July 22, 2014, 1:00pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/12 "2014-07-22T13:00:57Z")

</div>

> [@Reply](#):
>
> Whoever created the template just decided to use those letters. If you don’t like it, you can create your own template and see if it catches on. (Not being snarky here. It’s just sort of how the templates propagate. Some guy makes one and uses it and spreads it, and eventually others catch on and retain the original code for compatibility.)

Given that I’m a professional programmer, I really did consider that. But then when I actually went to that link and read about it, and saw all the warnings about the hidden codes and 'bots and such, I realized that it’s not as straightforward as I thought. Still, maybe someday…

---

<div class="post-metadata">

**Author:** ![OldGuy](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@OldGuy](https://boards.straightdope.com/u/OldGuy)\
**Post date:** [July 22, 2014, 5:33pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/13 "2014-07-22T17:33:40Z")

</div>

On some pages, like mine, the age reads “64 or 65” as Wiki only knows the year of my birth and not whether I’ve had my birthday yet this year.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [July 22, 2014, 5:42pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/14 "2014-07-22T17:42:49Z")

</div>

It turns out that computers can do math.

---

<div class="post-metadata">

**Author:** ![Little\_Nemo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/little_nemo/32/3120_2.png) [@Little\_Nemo](https://boards.straightdope.com/u/Little_Nemo)\
**Post date:** [July 22, 2014, 6:02pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/15 "2014-07-22T18:02:59Z")

</div>

> [@bob\_2](#):
>
> The mind boggles that anyone would think, that in this age of computers, someone would have the very tedious job of manually adding one to everyone’s age on their birthdays.

I didn’t think that was a likely possibility but I was curious how the actual process worked.

---

<div class="post-metadata">

**Author:** ![Colophon](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Colophon](https://boards.straightdope.com/u/Colophon)\
**Post date:** [July 22, 2014, 9:34pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/16 "2014-07-22T21:34:30Z")

</div>

> [@OldGuy](#):
>
> On some pages, like mine, the age reads “64 or 65” as Wiki only knows the year of my birth and not whether I’ve had my birthday yet this year.

Well don’t leave us all in suspense! Are you just old, or pensionably old? 😛

---

<div class="post-metadata">

**Author:** ![OldGuy](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@OldGuy](https://boards.straightdope.com/u/OldGuy)\
**Post date:** [July 22, 2014, 10:12pm UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/17 "2014-07-22T22:12:43Z")

</div>

> [@Colophon](#):
>
> Well don’t leave us all in suspense! Are you just old, or pensionably old? 😛

Well since my full benefit retirement age for Social Security is 66, I guess I’m the former, though I am already 65.

---

<div class="post-metadata">

**Author:** ![N9IWP](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/n9iwp/32/3154_2.png) [@N9IWP](https://boards.straightdope.com/u/N9IWP)\
**Post date:** [July 23, 2014, 1:32am UTC](https://boards.straightdope.com/t/how-does-wikipedia-update-ages/693727/18 "2014-07-23T01:32:13Z")

</div>

> [@Dervorin](#):
>
> The 8 and the 4 are the month and date of the birthday of the person in question, in this case August 4. The parameter “mf” or “df” indicates whether you want the date to be displayed month first or date first.
> 
> [Template:Birth date and age - Wikipedia](http://en.wikipedia.org/wiki/Template:Birth_date_and_age)

Duh! I was thinking “4” meant a 4 digit year but then couldn’t think of what the “8” would be.

Brian
