Jump to content

Template talk:Birth date

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

Handle year and month only

[edit]

Is there a way to easily update this to handle the case where the day is not known? For example:

  • {{dob|2025|9}}(2025-09-{{{day}}})September Expression error: Unrecognized punctuation character "{"., 2025
  • {{dob|2025|9|}}(2025-09-00)September , 2025

Ideally both of those would produce September, 2025.

—~~ Zackmann (Talk to me/What I been doing) 20:48, 11 September 2025 (UTC)[reply]

The problem is that output from the template includes Template:Birth date#hCard microformat and that requires a full date. Just put "September 2025" (no template) if that is all that is known. Johnuniq (talk) 04:03, 12 September 2025 (UTC)[reply]
BOOOOO. That is disappointing. But also glad that I checked before just implementing it! —Zackmann (Talk to me/What I been doing) 04:05, 12 September 2025 (UTC)[reply]
@Zackmann08: See Template:Birth date#Notes:
  • ...
  • The template will appear broken when the parameters are left blank.
  • When only the month or year of a person's birth and/or death are known, ... consider using the templates {{Birth year}} or {{Birth year and age}} instead.
In other words: you're attempting to use the wrong template. Try {{birth year|September 2025}} → September 2025 (2025-09). --Redrose64 🌹 (talk) 16:07, 12 September 2025 (UTC)[reply]
Thanks! —Zackmann (Talk to me/What I been doing) 00:33, 13 September 2025 (UTC)[reply]