Revision as of 23:57, 11 May 2008 editGnevin (talk | contribs)Extended confirmed users26,261 edits →Template doesn't have functionality of {{tl|Birth year and age}}← Previous edit | Revision as of 15:15, 11 October 2008 edit undoPigsonthewing (talk | contribs)Autopatrolled, Event coordinators, Extended confirmed users, Page movers, File movers, IP block exemptions, New page reviewers, Pending changes reviewers, Rollbackers, Template editors266,093 edits →Class="bday": new sectionNext edit → | ||
Line 28: | Line 28: | ||
So it's 5 templates + other features in one | So it's 5 templates + other features in one | ||
] (]) 23:54, 11 May 2008 (UTC) | ] (]) 23:54, 11 May 2008 (UTC) | ||
== Class="bday" == | |||
Does this template output the birth date in YYYY-MM-DD format, hidden by CSS, and wrapped with <code>class="bday"</code>, as done by {{tl|birth date}} and {{tl|birth date and age}}? If not, it should not be used to replace those templates until it does, as that functionality is used by ] ]s (usually, but not always, in infoboxes). If it does, that needs to be clearly documented. Thank you. ] (User:Pigsonthewing); ]; ] 15:15, 11 October 2008 (UTC). |
Revision as of 15:15, 11 October 2008
Documentation and template name
Please write some documentation for this template, as there's currently no explanation as to how this template should be used. Also, the template name looks a bit odd. Why is "DOD" in capital letters but "Dob" not? Perhaps the template name should be changed to something like "{{AgeDOBDOD}}", "{{AgeDoBDoD}}" or "{{BirthDeathAge}}" (I prefer the last one). Finally, instead of creating a new template, perhaps it would have been better simply to merge "{{Birth date}}", "{{Birth date and age}}", "{{Birth year and age}}", "{{Death date}}", "{{Death date and age}}" and "{{Death year and age}}" together. In fact, if the template effectively combines the functions of all those templates, I would suggest that you consider making a proposal on the talk pages of those templates to replace them with your template. — Cheers, JackLee 02:16, 12 March 2008 (UTC)
- Will do some documentation tonight ,and I like your suggested name,merging isn't possible as the death template puts the death year first where as the birth one have the birth year first but replacing them is doable Gnevin (talk) 11:37, 12 March 2008 (UTC)
Cool. — Cheers, JackLee 13:15, 12 March 2008 (UTC)
- Is this ok ? will add the df switch and document it in a bit Gnevin (talk) 14:26, 12 March 2008 (UTC)
Thanks for creating this template – I think it's fantastic! It's exactly what I've previously suggested, which is to merge all the templates relating to birth and death dates and age. I've got one suggestion for improving the template. You've designed the template so that any unknown information can simply be omitted. However, typing "{{BirthDeathAge|||||1975||}}" can be a bit tricky as you have to carefully count the number of pipes ("|") to insert. What about making it possible to also enter "D" for a death date, and to type zeroes instead of leaving the parameters blank, like this: "{{BirthDeathAge|D|0|0|0|1975|0|0}}"? Do you think that's helpful? For more flexibility, you may also want it possible for people to enter "b" and "d" into the template instead of "B" and "D".
By the way, I've created a shortcut to this template called "{{BDA}}". I wanted to make "{{bda}}" redirect to this template too, but that currently redirects to "{{Birth date and age}}". — Cheers, JackLee 19:28, 12 March 2008 (UTC)
- OK wiki doesnt compare chars like normal programming language all it does it see it the field is empty i've tried very think i can think of including
{{BirthDeathAge|D| | | |1975| | }}(note i know   needs to be followed by a comma this is just to show_ but that doesn't work. As for the B it doesn't have to be a B it can be b or jibberish or 22sdsde , once again all it's doing it making it so the field isn't empty Gnevin (talk) 20:49, 12 March 2008 (UTC)
- {{`}} created to help with this issue Gnevin (talk) 23:18, 10 May 2008 (UTC)
Template doesn't have functionality of {{Birth year and age}}
Hi, Gnevin. I've noticed that the template doesn't have the functionality of {{Birth year and age}}. Can this be fixed? — Cheers, JackLee 19:28, 16 March 2008 (UTC)
- I have added that , didn't know that template existed Gnevin (talk) 19:44, 16 March 2008 (UTC)
- What's the point of two separate templates? Why not merge this into {{Birth year and age}}? --BrownHairedGirl (talk) • (contribs) 23:12, 11 May 2008 (UTC)
Depending on the parameters specified, this template displays a person's birth or death year, or full birth or death date, with or without the person's age. It therefore combines the functionality of the following templates:
* {{Birth date}} * {{Birth date and age}} – same as {{Birth date}}, except that "(age ##)" appears after the birth date * {{Birth year and age}} – year of birth and approximate age * {{Death date}} * {{Death date and age}} – same as {{Death date}}, except that "(aged ##)" appears after the death date * {{Death year and age}} – year of death and approximate age at death
So it's 5 templates + other features in one Gnevin (talk) 23:54, 11 May 2008 (UTC)
Class="bday"
Does this template output the birth date in YYYY-MM-DD format, hidden by CSS, and wrapped with class="bday"
, as done by {{birth date}} and {{birth date and age}}? If not, it should not be used to replace those templates until it does, as that functionality is used by hCard microformats (usually, but not always, in infoboxes). If it does, that needs to be clearly documented. Thank you. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 15:15, 11 October 2008 (UTC).