How does Wikipedia update ages?

There are over a million pages in Wikipedia which are biographical articles of living people. (Which is an astonishing number.) A standard feature in such an article is to show the subject’s current age.

A little math shows that this means around three thousand edits a day would be necessary to update ages as people have a birthday. Obviously this is not being done by direct edits.

So I assume there must be some automated system that notes today’s date and is able to search all biographical articles for people with that birthday and add one to their age. Is this correct?

Is this all done at one time? Or is it a rolling process depending on time zones?

Are there other similar automated editing systems that I haven’t noticed?

It’s probably done by a little JavaScript program that’s part of the page and makes your browser compute the age. The computation is done by your local computer or phone, not by Wikipedia’s servers.

The article itself doesn’t have to be edited at all. There’s a template that automatically generates the age every time the page is loaded.

Interesting. I always assumed the text was there waiting, not generated when somebody opens the article.

So moving on to my other question, are there other examples of text that is generated like this when an article is opened?