Jump to content

Template talk:User Wikipedian for

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

This is an old revision of this page, as edited by Shrillpicc100 (talk | contribs) at 01:47, 12 May 2015 (→‎Parameter explanation?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Bug

Resolved

(What I actually came here for) This box appears to have been freaked out by leap year; it's currently showing me as 1 year, 2 months, and minus 2 days... --barneca (talk) 00:20, 1 March 2008 (UTC)[reply]

Yup, same here this year: This user has been on Wikipedia for 3 years, 2 months, and -2 days. -- samj inout 13:45, 1 March 2009 (UTC)[reply]
"This user has been on Wikipedia for 7 years, 2 months and -2 days." Jason Quinn (talk) 05:58, 1 March 2013 (UTC)[reply]
The problem seems to be in {{for year month day}}. E.g. {{for year month day|year=2005|month=12|day=31}} today gives "7 years, 2 months and -2 days". BTW, Jason – you need to specify the year=, month=, and day= parameters to tell the template when you started. Without them it assumes you started on 31 December 2005. – PartTimeGnome (talk | contribs) 21:46, 1 March 2013 (UTC)[reply]
{{For year month day}} has now been fixed. – PartTimeGnome (talk | contribs) 15:31, 2 March 2013 (UTC)[reply]
Great, thanks PartTimeGnome! Geez, you know you've been around for a while when the template way off by more than a year and you don't even realize it! Jason Quinn (talk) 02:53, 3 March 2013 (UTC)[reply]

Float needs to be passed to the user box

Right now, this has float forced to left. No choice. It has to float left. It calls the userbox, which allows you to include your own choice of a value for float. So, this template should allow float as a parameter and pass that to the userbox. Then, the user could have float=right or float=none. There is no reason that float=left should be forced on everyone. -- kainaw 12:39, 10 August 2011 (UTC)[reply]

I tried using the "link=true" parameter to link "on Wikipedia" to the user creation log, but the link target has no results: this is what the link takes me to (with my username in the "target" box) and this is what it should take me to (with my username in the "performer" box). הסרפד (Hasirpad) [formerly Ratz...bo] 06:02, 18 December 2012 (UTC)[reply]

That link should work with the username in the target box (e.g. for me). I'm not sure why it doesn't for you; this might be a bug in MediaWiki. Unfortunately, using "performer" doesn't work for users who had their account created by someone else using the Request an account process. For users who created accounts on behalf of others, using "performer" lists all of the accounts they created, in addition to their own. See for yourself:

Interesting. Also interesting is that when I use my old username (Ratzd'mishukribo) as the "target", I can find myself in the user creation log - as הסרפד, of course. Fo you have any suggestions how I can link to the appropriate log entry? הסרפד (Hasirpad) [formerly Ratz...bo] 23:31, 18 December 2012 (UTC)[reply]

This user has been on Wikipedia for 0 days.
Looks like the bug is related to having a renamed account – I checked a handful of other renamed accounts, and they have the same problem. You can work around it by omitting link=true and instead using diff= to give a different URL. For example, {{User Wikipedian for|diff={{fullurl:Special:Log/newusers|page=User:Ratzd'mishukribo}} }} will give the userbox on the right, where the link should work. – PartTimeGnome (talk | contribs) 00:03, 19 December 2012 (UTC)[reply]
Thank you! הסרפד (Hasirpad) [formerly Ratz...bo] 00:53, 19 December 2012 (UTC)[reply]

Another bug

Wait a moment: another question about an apparent bug.

This user has been on Wikipedia for 18 years, 4 months and 4 days.
  • This is the result I get when I fill the year, month, and day parameters manually, which is correct.


This user has been on Wikipedia for 0 days.
Sorry, that was my mistake. The year=, month= and day= parameters are required; I should not have omitted them (they default to 31 December 2005 if not specified). Your example with all four parameters (year, month, day and diff) is correct. – PartTimeGnome (talk | contribs) 19:04, 19 December 2012 (UTC)[reply]

Edit request on 2 March 2013

To force the user to use the parameters, and not use a default date, please replace the info line with the follow:

<span class="plainlinks neverexpand">{{#ifeq:{{{wikibirthday}}}|no||{{#ifeq:{{CURRENTMONTH}}{{CURRENTDAY}}|{{{month}}}{{{day}}}|Today is this user's {{#ifeq:{{CURRENTYEAR}}|{{{year}}}|'''first day''' on Wikipedia|'''[[:Category:Current Wikipedia birthdays|WikiBirthday]]'''}}.<includeonly>[[Category:Current Wikipedia birthdays|{{ROOTPAGENAMEE}}]]</includeonly>}}}} This user has been {{#if:{{{link|}}}|[http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=newusers&user=&page=User%3A{{ROOTPAGENAMEE}} on Wikipedia]|{{#if:{{{diff|}}}|[{{{diff}}} on Wikipedia]| on Wikipedia}}}} for {{#ifeq:{{{year|<noinclude>y</noinclude>}}}||an indeterminate time|{{#ifeq:{{{month|<noinclude>y</noinclude>}}}||'''{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{#expr:{{CURRENTYEAR}}-{{{year}}}}} years'''|{{#ifeq:{{{day|<noinclude>y</noinclude>}}}||'''{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{#expr:{{CURRENTYEAR}}-{{{year}}}}} years'''|'''{{for year month day|year={{{year|2001}}}|month={{{month|01}}}|day={{{day|15}}}}}'''}}}}}}.</span>

Thank-you. 117Avenue (talk) 04:14, 2 March 2013 (UTC)[reply]

Done. I also formatted the code to make it a bit more readable. Best — Mr. Stradivarius ♪ talk ♪ 12:03, 2 March 2013 (UTC)[reply]


This user has been on Wikipedia for 19 years and 10 or 11 months.
This does not appear to be working right. I have October 2004 specified without the day. It's always returned an accurate period assuming I think the last day of the month. Now it gives a vague "8 or 9 years" even though it has sufficient information to do better. Yworo (talk) 00:13, 9 March 2013 (UTC)[reply]
An assumption would make it wrong, just add the day. According to the log you created your account 21:35, 1 June 2009. 117Avenue (talk) 07:02, 9 March 2013 (UTC)[reply]

On second thought, that's not too difficult to calculate. Please sync the template with my latest revision to the sandbox. It allows people to celebrate wikibirthdays, whether they zero padded their month or day or not, replaces 'an indeterminate time' with 'some time' for users who did not specify a date, and calculates a time for those with a month and year, but no day. Thanks, 117Avenue (talk) 08:06, 9 March 2013 (UTC)[reply]

Just a thought: It would be better if the calculation for ambiguous dates (i.e. omitted month or day) and the text for missing dates ("some time") was in Template:for year month day, so the other templates that perform similar date calculations can take advantage of it. {{User Wikipedian for}} and the other templates would then use the code {{For year month day|year={{{year|}}}|month={{{month|}}}|day={{{day|}}}}} to call it.
Good thinking on your fix for wikibirthdays. BTW, did you mean to mark your own edit request as answered? (I'll leave re-activating it up to you once you've considered the above.) – PartTimeGnome (talk | contribs) 22:54, 9 March 2013 (UTC)[reply]
No, it was getting late, and I meant to change it to a no after pasting, but forgot. I made the improvements to For year month day, as you suggested. In this request I would like the template synced with my latest revision to the sandbox, it fixes the WikiBirthday, as I mentioned above, and moves the missing info calculations to Template:For year month day. Thanks, 117Avenue (talk) 01:46, 11 March 2013 (UTC)[reply]
Done. Thanks again! — Mr. Stradivarius ♪ talk ♪ 11:37, 19 March 2013 (UTC)[reply]

I have been here for more than 4 days, and have made more than 10 edits. Why can't I edit?

I have been here for more than 4 days, and have made more than 10 edits. Why can't I edit? Dimension10 (talk) 04:51, 19 July 2013 (UTC)[reply]

This template is fully protected, which means only administrators can edit it. The protection log says User:Hesperian protected it as a high-risk template (i.e. high risk of vandalism) in 2008.
Is there a particular change you want to make? – PartTimeGnome (talk | contribs) 21:31, 19 July 2013 (UTC)[reply]
There was probably a big pink message explaining this to you: "WARNING: This page has been protected so that only users with administrative rights can make edits." rʨanaɢ (talk) 14:54, 20 July 2013 (UTC)[reply]
I have no objection to downgrading of protection. Attitudes towards protection have changed since 2008; I think semi-protection may not even have existed then. Hesperian 03:52, 24 July 2013 (UTC)[reply]
I wouldn't have an objection to it, either. Since it's not used in article space, I don't see the template as particularly high-risk. rʨanaɢ (talk) 12:58, 24 July 2013 (UTC)[reply]
I also support downgrading the protection. Userboxes are not used in articles or anywhere particularly prominent. There are fewer than 7500 transclusions of this template. – PartTimeGnome (talk | contribs) 20:18, 24 July 2013 (UTC)[reply]
I went ahead and changed it to semi-protection. If anyone objects we can discuss it more. rʨanaɢ (talk) 01:13, 25 July 2013 (UTC)[reply]
Thank you. I think semi-protection is about right. – PartTimeGnome (talk | contribs) 17:18, 25 July 2013 (UTC)[reply]

This template for commons

Is there a commons version of this userbox to place on my Wikipedia userpage? Wiki ian 08:06, 8 August 2014 (UTC)[reply]

Parameter explanation?

Should a description of the userbox's parameters (and how to use them) be included on the main page? Shrillpicc100 (talk) 21:13, 11 May 2015 (UTC)[reply]

That is, documentation (oops, forgot the word—and I'm a programmer!) Shrillpicc100 (talk) 01:47, 12 May 2015 (UTC)[reply]