Template talk:Birth date
Appearance
| Template:Birth date is permanently protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This is the talk page for discussing improvements to the Birth date template. |
|
| Archives: 1, 2Auto-archiving period: 31 days |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
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)
- 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)
- 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)
- @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)
- @Zackmann08: See Template:Birth date#Notes:
- 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)