Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:Birth date

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 10 months ago by Zackmann08 in topic Handle year and month only

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}} September Expression error: Unrecognized punctuation character "{"., 2025
  • {{dob|2025|9|}} 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. --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