Jump to content

Template talk:Birth date and age

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


What if we only know the year of Birth?

[edit]

I want to add the date of birth to this article but the input requires me to know the exact date of birth, I only know the year. How can i make the code work? PreserveOurHistory (talk) 05:38, 16 October 2022 (UTC)[reply]

@PreserveOurHistory: See {{Birth year and age}}. More options are available—see the bottom of the documentation at {{Birth year and age}}. Johnuniq (talk) 06:11, 16 October 2022 (UTC)[reply]

An error

[edit]

There is an error at the end of "Examples" section. It needs to be fixed up. – Hamid Hassani (talk) 06:12, 11 November 2023 (UTC)[reply]

I edited the documentation to explain that "Feb." (with a dot) gives an error. Johnuniq (talk) 06:46, 11 November 2023 (UTC)[reply]

Age calc?

[edit]

Kiri Te Kanawa turned 80 today. Why does the calculation from 6 March 1944 result in 79 (while 5 March 1944 results in 80)? -- Gerda Arendt (talk) 12:56, 6 March 2024 (UTC)[reply]

And now that I looked again it was correct, but I'm quite sure I saw 79 a minute ago. - Cashed version perhaps? --Gerda Arendt (talk) 12:58, 6 March 2024 (UTC)[reply]

Pages only update when they are purged. That normally happens when someone edits a page and saves a change. If no change is needed but you need to update the page, click edit at the top and then Publish. Do not enter an edit summary. Nothing appears to happen (there is no change to the page history) but the displayed page is regenerated and that means all the templates are re-evaluated. That will cause the correct date calculations to be used. Johnuniq (talk) 09:21, 7 March 2024 (UTC)[reply]
@Johnuniq: What you describe (click edit, make no changes and save) is not a purge but a WP:NULLEDIT. Whilst this will work to update an age, it's not required - a WP:PURGE is sufficient. That page describes some ways of carrying out a purge. Personally I've enabled "Add a "Purge" option to the top of the page, which purges the page's cache" at Preferences → Gadgets. --Redrose64 🌹 (talk) 22:42, 8 March 2024 (UTC)[reply]

Tracking Category added incorrectly (fixed)

[edit]

Anne van Aaken uses this template and gets the category en:Category:Date of birth not in Wikidata added (see its page information), despite the Date of Birth actually existing on the linked Wikidata Item: d:Q22236485. On the other hand, I've just added the date of birth to the Wikidata Item for Royce Adams (politician): d:Q124357417, and the wiki page no longer has that category, so something still seems to be working. I looked at the template, but I'm not sure what is wrong. Anyone any idea what might be going on with Anne van Aaken? Zvpunry (talk) 16:16, 14 March 2024 (UTC)[reply]

Nevermind. It turns out someone had added that category to the article manually. I've fixed it. Zvpunry (talk) 16:31, 14 March 2024 (UTC)[reply]