Template talk:Birth date and age/Archive 1

message: This is a very nice & useful template, but it displays as "Month day, year".  Perhaps those in the know could program a "day month year" alternative version for those articles that use that format?  Bolivian Unicyclist 12:11, 15 October 2006 (UTC)
replies: text: It displays the date however you have it set in your preferences. If you prefer the day-month-year order, just set your preferences to that. —Angr 11:51, 18 October 2006 (UTC)
replies: text: The problem is that most Wikipedia readers don't have accounts, and therefore do not have date preferences set. While it is nice to have the age displayed in a template, for anything but U.S.-centric articles it displays the date in an incorrect format. I've been going through and removing it for articles on Australian, European and other leaders. --Pete 20:18, 30 January 2007 (UTC)

text: If you don't want the extra formatting, just use Template:Age. I created the original "age calculation" template so that those people who should be tagged with their age, can be. Which people those are, I haven't got a clue. Good luck deciding! --Uncle Ed 21:58, 3 November 2006 (UTC)
thread_title: Request

message: To make it international acceptable I've added fall through parameters (month=, day=, year=) - these can be called in any order during transclusion. Matthew Fenton (talk contribs &site=en.wikipedia.org count email) 13:46, 12 November 2006 (UTC)
thread_title: Fall through

message: This template has been approved for use in .  See Template talk:Infobox actor for discussion.  Dismas|(talk) 22:55, 14 November 2006 (UTC)
replies: text: I've a problem with using this in Template:Korean Go player in that it does not list the line (e.g. Cho Chikun) in the infobox. CanbekEsen 00:08, 12 January 2007 (UTC)
replies: text: I've figured it out. CanbekEsen 21:12, 12 January 2007 (UTC)
thread_title: Use in infoboxes

message: the template page is reading: 
...is this correct? --emerson7 | Talk 18:06, 10 December 2006 (UTC)
replies: text: That's just the rogue output from the template, in reality when called it won't spit out that error message to you :-) thanks/Fenton, Matthew Lexic Dark 52278 Alpha 771 18:18, 10 December 2006 (UTC)
thread_title: Error?

message: The template has a few items that look like: 
Is the repeated  necessary, or could it be  ? Gimmetrow 20:16, 17 December 2006 (UTC)
replies: text: The extra  is for style reasons. thanks/Fenton, Matthew Lexic Dark 52278 Alpha 771 20:27, 17 December 2006 (UTC)
replies: text:  Could you explain further? What style reasons does this code advance? Gimmetrow 00:45, 18 December 2006 (UTC)
replies: text:  Look at the actual template and you will notice the numbers are outputted rather then day, year or month. thanks/Fenton, Matthew Lexic Dark 52278 Alpha 771 00:50, 18 December 2006 (UTC)
replies: text:  I'm just asking how it works and why it's there. The code seems to say: use the value of , but if that isn't defined, then use the value of , but if that is also not defined, then use the value of . But that won't be defined if the code ever gets there. Please explain? Gimmetrow 01:27, 18 December 2006 (UTC)

text:  expands to "" (the empty string) if neither parameter number 1 nor parameter "year" are defined.  expands to "" and reminds the callers that they must specify either parameter number 1 or year but not leave out both. You can test that yourself by copying  into Special:ExpandTemplates. --Ligulem 10:53, 27 December 2006 (UTC)
thread_title: Code question

message: How about  tags after the date of birth?
It would look like this:
: December 25, 1984 (age 22)
---Majestic- 08:24, 25 December 2006 (UTC)
replies: text: I went ahead and made this change. Just remove the 'small' tags if there is a consensus in favor of the larger text. --CBD 13:15, 27 December 2006 (UTC)
thread_title: Suggestion

message: The "age" section should be wrapped in "noprint," so that we don't produce dated paper versions. Night Gyr (talk/Oy) 21:11, 8 January 2007 (UTC)
replies: text: Done. Luna Santin 23:23, 8 January 2007 (UTC)
replies: text: Is there an opposite to noprint, such as printonly?  If so, could change to add "as of yyyy mmm dd", so that "flattened" material is always correct.  --Scott McNay 04:55, 20 January 2007 (UTC)
thread_title: {{tlsubst|noprint}}

message: May I suggest adding the word "current" in front?  I was looking at a bio page, and saw "age nn" under the picture, and wasn't sure if that meant the age as of when the picture was taken.  Adding the word "current" should help.
Also, I'd like to suggest that  and  be added to suppress the error message that appears on the template page, and add "See Template_Talk:Birth date and age for discussion about this template" in the <noinclude> section. --Scott McNay 04:52, 20 January 2007 (UTC)
thread_title: Current, IncludeOnly

message: With the introduction of a similar template providing output in International Dating format, I intend renaming this template to "US birth date and age" in order to maintain consistency and reduce confusion. As it stands, many editors are using this template for articles where the subject is not a U.S. or Phillipines citizen, and of course this produces a date format which is inconsistent with the remainder of the article. --Pete 00:02, 28 February 2007 (UTC)
replies: text: I don't understand.  This template already outputs the date in European format if the user's preferences are set for that format.  Why do we need seperate templates?  Dismas|(talk) 01:40, 28 February 2007 (UTC)
replies: text: Nutshell: The preferences would cover it all, or even the majority of users signed up and properly set the prefs. This is to address the issue of casual/annom users. A casual user in London should get an article a bout a British celeb in a "proper" and consistent formatting. — J Greb 02:12, 28 February 2007 (UTC)
replies: text: Most Wikipedia users aren't editors and don't have accounts. This goes to the issue of quality and professionalism, to have all dates in an article in the correct standard. We should label the two templates appropriately, not leave one as an implicit default. --Pete 02:58, 28 February 2007 (UTC)
replies: text: Why not add an optional field for Euro dates, in order to merge the two? --PhantomS 03:07, 28 February 2007 (UTC)
replies: text: Considering that the U.S. and the Philippines are about the only two nations using American Dating format, why not have an optional field for U.S. dates? I'd prefer to have one template that takes the input as a standard wikidate in either format, and outputs the same format, adding the calculated age. --Pete 03:12, 28 February 2007 (UTC)
replies: text: I see the problem now.  I would rather have the template changed than have two templates.  I think it would lessen the confusion for editors.  Dismas|(talk) 14:53, 2 March 2007 (UTC)

text: A neat solution, but unfortunately it goes dead against the Manual of Style. We write out dates with the full month, and we format them in the order relevant to the country. --Pete 16:35, 28 February 2007 (UTC)
replies: text: The ISO format is not for narrative text, but for computer interchange.  Why can't this template have an optional 4th parameter for the default formatting for "no date preference" users?  And by the way Canada usually uses the Mmmm DD, YYYY format, too.  --rogerd 15:41, 2 March 2007 (UTC)

text: Canada uses both, but the month-day-year format remains a minority usage globally. Using ISO as an input parameter might seem straightforward to you, but it's confusing to the average editor. What is needed is wikidate input, just like every other date in Wikipedia text, and have the template just spit it out as input, after working out the age. The idea is to keep it simple so people will use it effectively. --Pete 17:16, 2 March 2007 (UTC)

text: If you can get this through WP:DATE, fine. Otherwise, it's not worth talking about anywhere else. In the meantime, let's stick to what the Manual of Style says, hmmm? --Pete 17:01, 3 March 2007 (UTC)
replies: text: According to the ISO date formats section of WP:DATE, “ISO 8601 dates may sometimes be useful elsewhere; for example, they are useful in lists, tables, for dates of birth/death” —MJBurrage • TALK • 01:10, 4 March 2007 (UTC)
replies: text: "...birth/death, for conciseness and ease of comparison." Finishing the quote for you. It may be that the points of contention become: 1) is use in an infobox a form of list or table, and 2) does the information need to be more concise for comparison against other articles. — J Greb 01:17, 4 March 2007 (UTC)

text: I make the point that it isn't American vs Commonwealth. It's American vs International, as  day-month-year format is in wide use throughout Europe, Africa, South America and much of Asia. I see your point about the template being a table, and yes, using ISO format would solve the problem. I can't say that I love it, however. --Pete 17:10, 4 March 2007 (UTC)
thread_title: Rename template

message: Why can I only "view source", there's no edit button. Gronky 12:35, 29 March 2007 (UTC)
replies: text: The template is protected to avoid vandalism. Templates, like this one, that are widely used are favorite targets for vandalism as it will show up on many, many pages. I have added the appropriate template to the top of this page to explain that. -- JLaTondre 14:16, 29 March 2007 (UTC)
thread_title: Why can't I edit this template?

message: Without changing any of the visible text, microformat the d.o.b. of Marc Blume (new article) to your satisfaction. Ditto for coord in Puerto Baquerizo Moreno (no tables allowed, no infoboxes). -- roundhouse0 17:02, 3 July 2007 (UTC)
replies: text: <Yawn> Done, with no hidden metadata. Do I win a prize? Andy Mabbett 17:35, 3 July 2007 (UTC)
replies: text:  Yes, your prize is that you get to undo your edit to Marc Blume. This article now contains a obscurely named template which has no documentation. Examples such as this should be done in userspace. -- Patleahy 17:49, 3 July 2007 (UTC)
replies: text: (Ans to previous section) AM has just created a new template to address Marc Blume (which passes the first hurdle and deserves a brownie point, herewith awarded) ... OK, E. W. Bastard then. What about Hicks Building? This diff introduces duplicated coords (entered once but appearing both in the title and the infobox) and is immediately reverted because of duplication. My point is that if the change had copied the previous format (without duplication) then a would-be reverter has to think harder. -- roundhouse0 19:43, 3 July 2007 (UTC)
thread_title:  2 Examples 

message: Add description how it works , copied from  :
   (aged )
Returns a person's date of birth and his/her age .
Syntax:

Example:
returns (
)
Note: The template will appear broken when the parameters are left blank (as seen above).
Also  should be protected (Gnevin 21:37, 3 April 2007 (UTC)
replies: text: Done. I moved the docs, categories, etc. to a subpage which is not (currently) protected, so you can tweak it yourself. CMummert · talk 23:43, 3 April 2007 (UTC)
replies: text: There's just  as a syntax. You should add year,month and day, example:  ---Majestic- 23:49, 3 April 2007 (UTC)
thread_title: Description

message: If you add a leading zero to the day it shows the leading zero in the results like
 
Adding a #expr (see Help:Calculation#Numbers_as_input) around the day statement will convert it to a number:   
See an example on the Norwegian Wiki: :no:Mal:Birth date and age. Nsaa 15:10, 12 May 2007 (UTC)
thread_title:  Day parameter - add a text to number conv 

message: is it at all possible to add non-breaking space to prevent the unsightly linebreaks as illustrated below?
 From this:
 25 January 1980 (age
 27)
 
 To this:
 25 January 1980 
 (age 27)
--emerson7 | Talk 00:34, 25 May 2007 (UTC)
replies: text: --After Midnight 0001 20:25, 2 July 2007 (UTC)
thread_title:  Wrapping/non-breaking space 

message: Given WP:BLP#Privacy_of_birthdays, is there an alternative template that works on just the birth year? Ian Cairns 14:32, 27 May 2007 (UTC)
thread_title: Privacy of birthdays

message: Please add ja:Template:生年月日と年齢. Thank you.--Ko-ta 02:14, 14 June 2007 (UTC)
thread_title:  Interlang 

message:  
Please replace  with . Andy Mabbett 10:58, 3 July 2007 (UTC)
replies: text: Done. Nihiltres(t.c.s) 18:50, 3 July 2007 (UTC)
replies: text: \Thank you.Andy Mabbett 18:54, 3 July 2007 (UTC)
thread_title:  Documentation fix 

message: Why is this noprinting?:
 (age )
What is the point of adding calculated age-as-of-now to an article and not letting people print that information as part of their hardcopy of the article?  The fact that it disappears when printed is very likely to severely confuse most users, who do not understand CSS display capabilities. — SMcCandlish [talk] [cont]  ‹(-¿-)› 14:47, 24 July 2007 (UTC)
replies: text: As I understand, the idea was to avoid having printed versions that would rapidly go out of date -- while a living person's current age is a variable, their age at the time of their death is a constant, so that's not wrapped in noprint. Although regardless, this should be converted into a span or removed, depending on consensus. – Luna Santin (talk) 10:35, 29 July 2007 (UTC)
replies: text: I switched to a span tag. The noprint class has been used in the template for six months and it makes sense (at least, to me) to keep it, so consensus will be needed to remove it. Cheers. --MZMcBride 22:07, 31 July 2007 (UTC)
replies: text: Fair enough.  I think the noprint should come out but that should be a separate discussion with an editprotected at the end of it if consensus is to remove it. — SMcCandlish [talk] [cont]  ‹(-¿-)› 00:11, 1 August 2007 (UTC)
thread_title: Age noprint

message: The parentheses inside the display:none span appear to be misplaced and useless:
 (--)
The evident point of the display:none span is to "make room" for the hCard "bday" span, which must have a bare ISO date format, while not actually displaying this, since we are using prior code to ... wikiformat the date for display. Thus, it appears to me that we are generating parentheses as useless data/dead code. — SMcCandlish [talk] [cont]  ‹(-¿-)› 14:47, 24 July 2007 (UTC)
replies: text: Have you viewed an instance of this template in use, with your CSS disabled? The parentheses are visible and essential, then. Andy Mabbett | Talk to Andy Mabbett 14:55, 24 July 2007 (UTC)
replies: text: Ah, I can imagine that.  I'm not sure why I'd ever disable CSS for other than web coding bug testing reasons, but I see the point. — SMcCandlish [talk] [cont]  ‹(-¿-)› 15:15, 24 July 2007 (UTC)
replies: text: You may not, but other people have it disabled by default. Andy Mabbett | Talk to Andy Mabbett 16:02, 24 July 2007 (UTC)
thread_title: Useless parentheses?