Template talk:User current age

From Wikipedia, the free encyclopedia

[edit] Documentation

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:

21 This Wikipedian is 21 years, 7 months, and 18 days old
on June 10, 2008.


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.

[edit] See also

[edit] Discussion

Contents


[edit] Wrong age

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)

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

[edit] Protecting children's info

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)

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)
See Wikipedia:Protecting children's privacy. --kingboyk 12:58, 4 November 2006 (UTC)
  • Note that the proposed Wikipedia:Protecting children's privacy is controversial, and presently under ArbCom scrutiny. It may be wise to wait for their decision on the matter before taking action based on that proposal. >Radiant< 22:53, 5 November 2006 (UTC)

[edit] Template:11

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)

Explain...--Alfakim-- talk 12:31, 11 November 2006 (UTC)
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)
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)

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)

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)
Yes, I get it too - it's Template:08 now as you might expect :-) ugen64 14:46, 18 August 2007 (UTC)
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)
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)
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)