Template talk:User current age

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Documentation[edit]

Enter your birthday like this:

{{user current age|day=22|month=10|year=1986}}
   or
{{user current age|day=22|month=10|year=1986|hidden}}

And the template will display your age like this:

37YThis Wikipedian was born on 22 October 1986 and is 37 years, 6 months, and 21 days old.


The hidden parameter will cause your userpage to not be categorised by your age.

The date should be accurate, but the code hasn't been fully tested and does require simplification.

See also[edit]

Discussion[edit]

Wrong age[edit]

I have this template on my userpage. My birthday is on August 30 1979 but it says I'm 26 years and 3 days old! I'll be 27 at the end of this month! Can anyone check it out?? -- AnemoneProjectors (talk) 13:26, 2 August 2006 (UTC)[reply]

Thanks for fixing it just in time for my big day ;) -- AnemoneProjectors (talk) 20:54, 28 August 2006 (UTC)[reply]

Protecting children's info[edit]

This template needs to be modified to not work - and not create categories for - users under 13 years old. --kingboyk 13:57, 3 November 2006 (UTC)[reply]

I'm not sure if this was necessary. Or policy-ok. If a <13 wikipedian wants a category, sure. There can always be an option: "cat=off". --Alfakim-- talk 23:26, 3 November 2006 (UTC)[reply]
See Wikipedia:Protecting children's privacy. --kingboyk 12:58, 4 November 2006 (UTC)[reply]

When going into edit mode (today? 11.11.2006) a Template:11 shows up at the bottom - as well as on my user page when editing... --katpatuka 09:03, 11 November 2006 (UTC)[reply]

Explain...--Alfakim-- talk 12:31, 11 November 2006 (UTC)[reply]
I have that problem, too. It says when I edit my userpage that there's a template called 11 being used there that doesn't exist. I'd assume it's because of something to do with the month we're in right now, and that it'll change in ten days to Template:12. Any bets on it? Tom Temprotran 16:18, 20 November 2006 (UTC)[reply]
Well, it's now march and the missing template is {{03}}. Seems like no one cares... Brian Jason Drake 01:43, 29 March 2007 (UTC)[reply]

I have no idea what you guys are on about -- I'm fairly sure these funny templates aren't coming from this one.--Alfakim-- talk 08:51, 30 March 2007 (UTC)[reply]

I guess this is a bit delayed, but it's doing it still today, with Template:05 in my browser. Odd. As Brian said, though, looks like no one cares. +Justin (Jldb) 12:48, 14 May 2007 (UTC)[reply]
Yes, I get it too - it's Template:08 now as you might expect :-) ugen64 14:46, 18 August 2007 (UTC)[reply]
It's stemming from this part of the code:
//-->{{#ifexpr: ({{CURRENTDAY}} - {{{day|{{CURRENTDAY}}}}}) < 0 | {{#expr: {{Days in month}} + ({{CURRENTDAY}} - {{{day|{{CURRENTDAY}}}}}) }} | {{#expr: {{CURRENTDAY}} - {{{day|{{CURRENTDAY}}}}} }} }} days old, <!--
I can probably try to figure it out later today if someone doesn't beat me to it. =) --TMF Let's Go Mets - Stats 21:22, 23 August 2007 (UTC)[reply]
After further testing, the "number" template's coming from Template:Days in month or a template transcluded in that. --TMF Let's Go Mets - Stats 21:32, 23 August 2007 (UTC)[reply]
You were right, TMF. I can't believe {{Days in month}} was broken ever since the day after it was created (it was always returning 31), but it seems that was the case... I believe I have fixed it. Anomie 01:11, 24 August 2007 (UTC)[reply]

Gender toggle[edit]

Current box reads "(he/she is X years, X months, and X days old)". Can a toggle parameter not be added to specify whether the user is a "he" or "she"? — Wyliepedia 03:10, 22 April 2017 (UTC)[reply]

Better to remove it altogether. Gender is not related to age. -- Scjessey (talk) 14:08, 23 October 2017 (UTC)[reply]


Date format[edit]

This edit by Superdry19 (talk · contribs) changed the date format. I am not opposed to the change, but I foresee problems going forward with UK/US editors switching it back and forth. Is there a way to add a format switch so that people can use their preferred format? -- Scjessey (talk) 14:08, 23 October 2017 (UTC)[reply]