Template talk:Birth based on age as of date

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Time (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Time, a collaborative effort to improve the coverage of Time on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 

Order?[edit]

Based on this edit, apparently some readers expect an implicit "respectively". Currently the template produces something like

Born: 1990/1991 (Age 20–21)

The edit seems to suggest that the order of ages should be switched, so template produces

Born: 1990/1991 (Age 21–20)

Alternately, the order of years could be switched, producing

Born: 1991/1990 (Age 20–21)

Wondering if anyone would find either form better. Gimmetoo (talk) 15:29, 25 September 2011 (UTC)

Dead persons[edit]

Is there a way to omit the current age if the person has died? For example, the only reference regarding Faruq Z. Bey's age is that he was 61 in June 2003. This gives 1941/1942 for the year, but the template still displays his (approximate) age. Now that he has died, there really isn't another template that serves this purpose, other than simply plugging "1942" (which is probably correct, though I'm not certain) into {{BirthDeathAge}}. It would be nice if there was a way to turn off the current age with this template. -- Gyrofrog (talk) 03:14, 3 June 2012 (UTC)

 Done I just added an optional parameter, so that if you append "|noage=1" to the template, the age field is suppressed.  This option is also useful if only the year is known.  Unscintillating (talk) 22:05, 18 February 2013 (UTC)
I've created {{Birth date based on age at death}} for this purpose, but it currently just uses this template with the aformentioned "noage" parameter. (I thought it was important to create a distinct template in case usecases diverge in the future.) I've also created {{Death date and given age}} for the corresponding death date. Gordon P. Hemsley 16:42, 28 April 2013 (UTC)

Date line issue[edit]

Here's a quirky little issue with the template. Wikipedia uses UTC. When I edit in the mornings, the current local date in New Zealand is one day ahead of the UTC date. If I edit an item and enter age as of date with the local date (which I have to, because I'm quoting a newspaper article, say), then the template doesn't return the age that I have just entered, but an age range. Only when the UTC date catches up a few hours later, the template produces the correct age.

Confused? So was I. Here's an example for clarification. Roger Sutton's age was reported to be 47 in The Press published on 13 June 2012. Amending his page, I code {{Birth based on age as of date|df=yes|47|2012|6|13}}, but the template returns "(age 46–47)". That's because the UTC date is currently still 12 June. So I have to fudge the template by using yesterday's date in order for it to return "(age 47)". So hopefully, I will remember to adjust the template later today, so that I quote the correct newspaper publication date. Schwede66 21:25, 12 June 2012 (UTC)

If you just enter the correct information, won't the problem correct itself once UTC catches up? Is it really worth fudging the data just for those few hours? (Not that I'm saying the problem couldn't be corrected by changing the template itself.) Gordon P. Hemsley 16:45, 28 April 2013 (UTC)

WP:Categories for discussion/Log/2013 February 13#Category:1955 or 1956 births[edit]

This template has been mentioned at: WP:Categories for discussion/Log/2013 February 13#Category:1955 or 1956 births.  FYI, Unscintillating (talk) 17:04, 18 February 2013 (UTC)

Proposal: handle unspecified day/month[edit]

I've found a source which specifies a person's age in a specific year ("In 2001, when X was 17 …"), but not the date in that year. That got me thinking. The template I've just dropped in Template:Birth based on age as of date/sandbox will handle dates where there's no day and/or no month specified, giving the most accurate result it can.

The below table has examples – the first six are from the documentation page, to prove I've not broken existing behaviour, the remainder show the new behaviour with missing fields.

Template text Result
{{Birth based on age as of date/sandbox|50|2017|02|19}} 1966/1967 (age 51)
{{Birth based on age as of date/sandbox|50|2017|February|19}} 1966/1967 (age 51)
{{Birth based on age as of date/sandbox|50|2017|1|15}} 1966/1967 (age 51–52)
{{Birth based on age as of date/sandbox|50|2017|Nov|5}} 1966/1967 (age 50–51)
{{Birth based on age as of date/sandbox|50|2017|Nov|5|noage=1}} 1966/1967
{{Birth based on age as of date/sandbox|50|2017|1|1|noage=1}} 1966/1967
{{Birth based on age as of date/sandbox|50|2017|February}} 1966/1967 (age 50–52)
{{Birth based on age as of date/sandbox|50|2017|1}} 1966/1967 (age 51–52)
{{Birth based on age as of date/sandbox|50|2017|Mar}} 1966/1967 (age 50–51)
{{Birth based on age as of date/sandbox|50|2017}} 1966/1967 (age 50–52)

This has changed the design of the template code; if folk want me to explain I can, but I'm not sure if that's useful. I don't think I've made it any more complex, in any case.

I have also moved the   from between the year and the brackets to between "age" and the age; a line break between parts seemed to make more sense to me than a line break between the word "age" and the age.

Does anyone have any thoughts or objections before I make this the live version of the template?

me_and 18:19, 24 October 2013 (UTC)

Seeing no objections, I'm going to make this change shortly. —me_and 19:56, 18 November 2013 (UTC)
Made, then reverted – the current sandbox version leaves trailing whitespace with noage=1. I'll fix that up before trying again. —me_and 20:05, 18 November 2013 (UTC)
Made again. This time using {{if}}, which, unlike {{#if}} is capable of handling whitespace at the start of its arguments. —me_and 20:16, 18 November 2013 (UTC)

Two age citations?[edit]

I'm starting work on an article for the young actress Sydney Lucas, who just became the youngest recipient of an Obie Award. I have one reference dated 26 December 2013 which mentions that she was 10 at that time; per other references, she was still 10 as of Monday, when she received her Obie. Which date is it best to use with this template? And is there a way to specify that she was born in 2003, rather than 2002/2003 (since, given the two data points, she was clearly born between May and December 2003)? —Josiah Rowe (talkcontribs) 04:47, 22 May 2014 (UTC)

Incompatible with WP:MOSNUM[edit]

I've just seen this used in the lead sentence of a biog article, displaying "(born 1996/1997)" but sadly this isn't compatible with WP:APPROXDATE which specifies it has to be "1996 or 1997". I don't know whether there's any mileage in (a) lobbying to change WP:MOSNUM or (b) producing a variation of this template which can display the longer format? PamD 08:53, 26 November 2015 (UTC)

I have to say that "1996 or 1997" makes a lot more sense when we aren't sure about the year of birth, so in my mind, option (a) isn't sensible. Schwede66 09:03, 26 November 2015 (UTC)
Sandbox version now has |mos=1 which renders like this:
{{Birth based on age as of date/sandbox|50|2014|11|26|mos=1}}
1963 or 1964 (age 53–54)
is that what you want?
Trappist the monk (talk) 11:28, 26 November 2015 (UTC)
WOW - that is so cool and so quick and I hope PamD will agree that it is just exactly what is needed!
By the way, for completeness I tested the variation I will use:
{{Birth based on age as of date/sandbox|50|2014|11|26|noage=1|mos=1}}
It produces: "1963 or 1964"
Please accept a gold star. ⭐--Gronk Oz (talk) 12:48, 26 November 2015 (UTC)
Testing: "(born 1916 or 1917)" ... Yes, looks good. OTOH it's an awful lot of typing - I'll have to weigh up whether it's less effort to just do the sums! Or I might try to produce a cut-down version of the template with a shorter name and fewer parameters, for the simple case of "I have an age at a date, I want a birth year(s) only". But thanks very much, Trappist the monk, this looks great. When can it go "live"? PamD 12:58, 26 November 2015 (UTC)
Now live. There is the redirect {{bbad}} which doesn't require as much typing:
(born {{bbad|92|2009|12|23|mos=1|noage=1}})
(born 1916 or 1917)
Trappist the monk (talk) 13:21, 26 November 2015 (UTC)
YesYI have used it in an article already: Josh Schache. Thanks, and thanks to PamD for identifying the issue.--Gronk Oz (talk) 14:15, 26 November 2015 (UTC)
@Trappist the monk: Thanks: {{bbad}} looks better - and even better would be something which defaulted to "mos=1" and "noage=1"! ({{bbad2}}?) PamD 16:29, 26 November 2015 (UTC)
Forking templates to do stuff that is slightly different from the parent template is generally frowned on. The forks tend to get deleted.
Trappist the monk (talk) 17:39, 26 November 2015 (UTC)
I agree that changing the default to use the new mos=1 parameter would be a good idea, as that way, the MOS is adhered to. Maybe there could be a second parameter and if some editors prefer the 1996/1997 format, the use of that second parameter would achieve that. Forking isn't a good idea, but changing the default is. Schwede66 18:09, 26 November 2015 (UTC)
Except that the template is transcluded in 1200+ pages so each of those transclusions would need to be examined to determine if the 'new' default is appropriate.
Trappist the monk (talk) 18:18, 26 November 2015 (UTC)

Unpasteable examples[edit]

Not sure of the cleanest way to fix this, but the examples included in the table in this documentation all produce errors if copypasted into articles (Expression error: Unrecognized punctuation character "�"), because the {{braces}} template used to display them forces the inclusion of "thinsp" characters "to improve legibility", which the {{Birth based on age as of date}} template doesn't accept. --McGeddon (talk) 12:12, 12 November 2016 (UTC)

Indeed. It's a major annoyance. Schwede66 09:16, 21 April 2017 (UTC)

MOS:Slash[edit]

Wikipedia:Manual of Style#Slashes

Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format. JTP (talkcontribs) 03:47, 11 December 2016 (UTC)