Template talk:User contrib

(Redirected from Template talk:User contrib/testcases)
Latest comment: 29 days ago by SMcCandlish in topic Color accessibility issue

Width problem

edit

As the number of edits get higher, is it possible to shrink the text in the icon box somehow? Otherwise, theoretically, we could end up with this:

100,000,000,000,000,000,000,000,000+This user has made more than 100,000,000,000,000,000,000,000,000 contributions to Wikipedia.


JPG-GR 00:22, 7 May 2007 (UTC)Reply

Reply

edit
I think that would need quite a bit of logic (adding commas for every power of 1000) Are there any other templates that have this problem? How do they deal with it. Adam McCormick 00:29, 7 May 2007 (UTC)Reply
No clue whatsoever, and I figured as much. One of those puzzles that I love, but I am waaaaaaaaay too unfamiliar with wiki-code at this point to solve this one. JPG-GR 04:51, 8 May 2007 (UTC)Reply
I believe the solution is to put them in yourself, So:
100,000,000,000,000,000,000,000,000+This user has made more than 100,000,000,000,000,000,000,000,000 contributions to Wikipedia.


or for commas and returns:
100,
000,000,
000,000,
000,000,
000,000+
This user has made more than 100,
000,000,
000,000,
000,000,
000,000
contributions
to Wikipedia.


You can put just about anything in the text box so <small></small> tags should work too:
100,000,000,
000,000,000,
000,000,000
+
This user has made more than 100,000,000,
000,000,000,
000,000,000
contributions
to Wikipedia.


Adam McCormick 16:46, 8 May 2007 (UTC)Reply
Erm... can we safely say that someone with that many edits NEEDS HELP, NOW? – Gurch 20:39, 8 May 2007 (UTC)Reply
I wouldn't say we need to worry too much about this. Assuming the average time taken to make an edit is 10 seconds, making 1026 would take 50 billion times the earth's predicted lifetime. I don't think getting over a couple hundred thou would be possible. - Zeibura S. Kathau (Info | Talk) 23:25, 22 May 2007 (UTC)Reply
No doubt. It's my debugger lifestyle. Gotta find solutions to those problems that theoretically won't happen. :) JPG-GR 04:26, 9 May 2007 (UTC)Reply
You're probably gonna have to use exponents. So for 100000000000000000000000000, it's 10<sup>26</sup>, which will produce:
1026+This user has made more than 1026 contributions to Wikipedia.

V60 干什么? · VDemolitions 15:21, 9 May 2007 (UTC)Reply
This still leaves us with the problem of, what if the exponent too becomes too wide?, e.g. 101000000000000000. Maybe a change of basis, or double exponentiation: 101015Isilanes 15:49, 9 May 2007 (UTC)Reply
If the exponent is too wide, you ban the user, because any user making that many edits within the forseeable future is clearly a renegade bot causing financial problems for the Foundation through extreme overuse of bandwidth. We don't need to solve this problem for the same reason that computer systems don't always use 5 digits for the year section of a date - it isn't worthwhile for the next 7993 years. Nihiltres(t.c.s) 19:32, 9 May 2007 (UTC)Reply
I support the above : ) - As a guideline back down to reality, let's make the top number 900 million (900 000 000), so that we sidestep the billion naming convention issue between english speakers. - jc37 19:36, 9 May 2007 (UTC)Reply
Obviously, I was kidding. 101015 edits is just as as ridiculous as 1026 edits mentioned above (however bigger it is). We can safely assume that anything above 1M or 10M must be faked. Moreover, the solution to the "problem" is that the user can write anything in the subst'ed text (e.g. 200k edits, or 0.2M edits, or 2·105 edits). — Isilanes 16:56, 10 May 2007 (UTC)Reply
A valid explanation for not needing a solution. *rests now* JPG-GR 07:09, 10 May 2007 (UTC)Reply
What about just having an optional argument for the template specifying the text size for the number in the left section? --Jordan Elder talk 01:03, 19 May 2007 (UTC)Reply
The {{#ifexpr ParserFunction seems good for an automatic solution. V60 干什么? · VDemolitions 01:12, 19 May 2007 (UTC)Reply
That's actually what I was going for in the first place, but wasn't sure if it was even possible. JPG-GR 04:27, 21 May 2007 (UTC)Reply

Colors

edit

I have added a table on the documentation page showing the colors that were used for each range in the original templates, in case users want to emulate these. --PhantomS 08:33, 7 May 2007 (UTC)Reply

Someone has significantly changed the way the template works for color and I think it makes it much more difficult to use. I've corrected the default back to the colors it was and unless there's some good reasoning I'm going to revert the change. Adam McCormick 04:59, 8 May 2007 (UTC)Reply
Note: {{subst:User contrib meta|User 100e}} will produce just about the same appearance as {{User 100e}}, but it's programmed to use {{user contrib}}. I'm in favor of using a one time substitution, rather than keeping the 4 huge switch statements. GracenotesT § 19:43, 8 May 2007 (UTC)Reply
Probably not, since users regularly update userboxes on their pages. I know I will. And I also know that I would not like to change the template back to a substed template every time. A bunch of huge switches will not waster server resources; my userpage has two of these templates on them, and one uses the set switch. V60 干什么? · VDemolitions 19:55, 8 May 2007 (UTC)Reply
Hm. Well, I guess that sounds fine, I should have never gotten into colors to begin with; just standardized it. Well, paint the bikeshed however you wish :) GracenotesT § 20:26, 8 May 2007 (UTC)Reply
Re: {{User contrib meta}}, I created an alternate version which takes the raw edit count as input and autoselects the right userbox from the old set by transcluding {{User contrib}}. This simplifies the template setup process. Nihiltres(t.c.s) 22:33, 9 May 2007 (UTC)Reply

The Color Reference is broken, {{Template:User 10e}} does not exist, and the other ones don't exist either.  Tcrow777  talk 20:27, 30 June 2007 (UTC)Reply

Those links can be deleted, they reference the old userboxes that this one replaced, they worked for the first wee this page was up. I'll go delete them. Adam McCormick 04:38, 1 July 2007 (UTC)Reply

Rename

edit

Before this page goes much further into "mass-effect", I'd like to suggest a more specific rename to Template:User edit count. "contrib" is too vague for the usage, and could mean any number of things. - jc37 17:17, 9 May 2007 (UTC)Reply

I prefer contrib because it's easy to remember and shorter to type. Either way I think this page needs to at least be a redirect. There is also some debate as to whether talk page contributions count as "edits" or just contributions Adam McCormick 18:34, 9 May 2007 (UTC)Reply
Can you point me to that debate? I think that the fact that we click on a tab labelled "edit this page" makes such a debate moot? : ) - jc37 19:15, 9 May 2007 (UTC)Reply
The edit this page bit is consistent on most wiki sites. I can't point you to a debate because I've only ever seen it in statements by individuals and personal conversations. I just meant that there is some difference between edits to the Main namespace and edits in general and that some editors (myself included) believe that edits should refer to the Main namespace as that is "Editing" the encyclopedia and that other edits such as discussion are contributing to the encyclopedia but not editing it. Adam McCormick 19:43, 9 May 2007 (UTC)Reply

List of Colors

edit

The list currently on the page was generated by Gracenotes (talk · contribs) specifically to be used for the merger of the existing edit count userboxes to the use of this one. Therefor I have move it here, in its entirety rather than transcluding it. Adam McCormick 04:06, 9 May 2007 (UTC)Reply

At some point, these colors should be reorganized to represent more of a progression so that the number of edits can be visually referenced without referencing the guide (at which point the guide would be used only for customization. Adam McCormick 19:21, 9 May 2007 (UTC)Reply

Re-add the 100,000+ ", and as a result may be slightly insane"

edit
  Resolved
 – The insane parameter was added to the template.

APerson (talk!) 14:18, 27 July 2013 (UTC)Reply

Would anyone support me in re-adding the ", and as a result may be slightly insane" text for contribution numbers over 100,000? This would be the simple addition of two ParserFunctions, one inside the other:

  • Wikipedia. would become "Wikipedia{{#ifeq:{{#expr: {{{1}}} > 100000}}|1|, and as a result may be slightly insane|<!--null-->}}.

I think it'd be nice, since this improves the emulation of the old templates, but I don't know what other people think. What's your opinion? Nihiltres(t.c.s) 22:47, 9 May 2007 (UTC)Reply

I don't really think that it adds much to the template. I'd prefer an insane param like "insane=yes" that would activate the text. I'd still prefer to have neither. Adam McCormick 06:02, 10 May 2007 (UTC)Reply
It's probably a good idea to retain the classic bits, just for a sake of history. Plus, it'd be nice to see something like "this user has 2 edits and as a result may be slightly insane" just for sillyness factor. JPG-GR 07:11, 10 May 2007 (UTC)Reply
OK, an insane parameter would be just fine as a means of implementation, and I was thinking just the same as regards history, JPG-GR. The idea of having it apply for users with 2 edits who want it, why not? Nihiltres(t.c.s) 13:50, 10 May 2007 (UTC)Reply

Categories

edit

If as seems likely per Wikipedia:Templates_for_deletion/Log/2007_May_5#Numerous_edit-count_userboxes this box will replace all the existing boxes, shouldn't it output categories like the other boxes do? --kingboyk 17:33, 12 May 2007 (UTC)Reply

Regarding categories, there is talk about deleting them alltogether due to past precedent never being overturned at DRV. Disregarding that, we have established on WP:UCFD that edit count categories should only exist in 5k increments at most. So to whoever is thinking about adding this, please do not have this template add people to categories such as "Wikipedians with over 6,000 edits" or other redlinked categories that are likely to encourage someone to create such categories. Thanks. VegaDark (talk) 06:37, 20 May 2007 (UTC)Reply
I am trying to set this up please don't panic! Adam McCormick 04:47, 21 May 2007 (UTC)Reply
OK, 5000 categories work, now to deal with non-number text Adam McCormick 04:51, 21 May 2007 (UTC)Reply

Userbox Error: 200+ edits

edit

When I use the userbox, I get a 200+ edits boxs with the number in white! Take a look to see what I mean: User:PostScript/ImportantBoxes —The preceding unsigned comment was added by PostScript (talkcontribs) 17:59, 13 May 2007 (UTC).Reply

Fixed. V60 干什么? · VDemolitions 20:23, 13 May 2007 (UTC)Reply
I think the font switches need to be changed so that the numbers that are supposed to be colors other than white are listed as the font defaults to white Adam McCormick 21:42, 13 May 2007 (UTC)Reply
That should do it, hopefully that works? Adam McCormick 17:58, 14 May 2007 (UTC)Reply
Yessir, it works, thank you very much. --PostScript (info/talk/contribs) 00:33, 15 May 2007 (UTC)Reply

Errors

edit

I got an 'Expression error: Unrecognised punctuation character "?"' with the userbox today. I'm assuming it was because I stuck a ³ in which messes up the script. Is it possible to be able to use the old userbox for now, until the script is finalised.

Not only did it mess up my userbox, for some bizarre reason it messed up the __NOTOC__ magic word! Centy 13:03, 21 May 2007 (UTC)Reply

We're gonna have to revert the changes until after somebody successfully tests this in a sandbox. V60 干什么? · 喝掉的酒 · ER 4 19:07, 21 May 2007 (UTC)Reply
Ok, it should work now but the solution is less-than-ideal There doesn't seem to be any function to identify strings. I'll add code to show commas with {{formatnum}} Adam McCormick 00:49, 22 May 2007 (UTC)Reply
Anyway way to allow users the option to turn of commas? 1,337 looks far worse than 1337 edits. Centy 21:02, 22 May 2007 (UTC)Reply
Yes, but it could be messy. I'll give it a shot Adam McCormick 23:02, 22 May 2007 (UTC)Reply
Messy was the word, I hate {{#ifeq:}}. It wouldn't take {{{1}}}. Anyhow, adding "format=no" should now kill the text formating. Let me know if there's another problem Adam McCormick 02:40, 23 May 2007 (UTC)Reply

Minor issue: extra line at the bottom

edit

Hi. A minor issue: there's an extra line at the bottom of the template that is transcluding onto user pages. This is generally not an issue except when the userbox is placed in a table or next to other userboxes. See, for example, the transclusions here and here. Could someone please fix it? Thanks, Black Falcon (Talk) 18:06, 25 May 2007 (UTC)Reply

Thanks to Alanbly for fixing it. -- Black Falcon (Talk) 17:46, 26 May 2007 (UTC)Reply
No problem, couldn't see the extra line in the preview Adam McCormick 21:17, 27 May 2007 (UTC)Reply

Categories for Deletion

edit

The categories corresponding to this template are all up for deletion, please weight in at the discussion if you care. Adam McCormick 04:36, 4 June 2007 (UTC)Reply

Slight comma issue

edit

In the sentence "This user has made over 100,000 contributions to Wikipedia, and, as a result, may be slightly insane," the comma after "Wikipedia" shouldn't be there. It's a list with two items, and a comma only needed with three or more (and even then, it's optional). I tried to fix it myself, but in removing the comma, it wound up displaying as "...to Wikipediaand, as..." --Brandon Dilbeck 07:02, 11 June 2007 (UTC)Reply

Fixed Adam McCormick 18:30, 25 June 2007 (UTC)Reply

150,000

edit

I propose a new box/colour for 150,000 contribs, as some users have attained/are close to attaining this number of contribs. I propose that this box be really really outstanding, with loyd colours etc. What does everyone think? -- Anonymous DissidentTalk 09:36, 24 June 2007 (UTC)Reply

You can do it if you want, but please keep in mind that colours don't matter that much. (zelzany - fish) 17:49, 1 July 2007 (UTC)Reply
If this change is made (And I'll make it if there's consensus), then we need an even more outrageous color for 200k edits, as it is currently set the same as 100k. What color combination do you propose? Adam McCormick 22:28, 1 July 2007 (UTC)Reply
Red and black always serves to stun. Anonymous DissidentTalk 15:01, 4 July 2007 (UTC)Reply
edit

Is there anyway I can change where the link goes to? I'd like it to go to http://en.wikipedia.org/wiki/Special:Contributions/Rockfang instead of where it currently goes. Rockfang (talk) 12:21, 29 November 2007 (UTC)Reply

Question

edit

Is there a way to make this same thing work for a Wikia project? or is there already one on wikia? if you could respond on my talk page that would be great. Thanks! Sirkadtalk 03:05, 11 January 2008 (UTC)Reply

Edit Counter

edit

Recently there was an edit concerning which edit counter this template should use. I have always been of the opinion that the counter by wantanabe_kate is the best (and easiest to read) out there. The new edit pointed here I think there needs to be more discussion before this is made the default. If the new link is decided to be "better" I'll add a parameter to allow the original as I find it much more legible. Adam McCormick (talk) 06:37, 14 January 2008 (UTC)Reply

I talked to the user who made the change after the first time he changed it. Apparently the one that we changed it back to, wannabe-kate, is "... extremely slow when you get into tens of thousands of edits, and was only implemented to combat the (now mostly non-existemt) replication lag." ([1]) I agree, it is slower (a lot slower), but I prefer it anyways, because it is just better   . I think it would be a good idea to add a parameter that way people can chose whichever one they like. - Rjd0060 (talk) 16:25, 14 January 2008 (UTC)Reply
Also, if you could make a couple different options, like the one requested on the thread 2 above this one. - Rjd0060 (talk) 16:29, 14 January 2008 (UTC)Reply
OK I've made a first attempt at adding a "link" parameter. it works like this:

{{User contrib|100}} makes:

100+This user has made more than 100 contributions to Wikipedia.

{{User contrib|100|link=http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user={{urlencode:{{BASEPAGENAME}}}}&dbname=enwiki_p}} makes:

100+This user has made more than 100 contributions to Wikipedia.

{{User contrib|100|link=http://en.wikipedia.org/wiki/Special:Contributions/Alanbly}} makes:

100+This user has made more than 100 contributions to Wikipedia.

Latest change - commas

edit

Noticed that since the last change, any boxes with a comma in them break. Compare

49,000+This user has made more than 49,000 contributions to Wikipedia.


with

49,000+This user has made more than 49,000 contributions to Wikipedia.


Lugnuts (talk) 21:20, 28 January 2008 (UTC)Reply

Yep - I, too, just noticed the comma-problem and came over here to see what was up. Is this edit (diff) that permitted "indiscrete values" the one that did it? --Lquilter (talk) 23:04, 28 January 2008 (UTC)Reply
That edit did cause the problem and as such I've reverted it (just as it was reverted by the original editor). I am going to make this clear, unless such an edit does take commas into account it should not be made. I personally would prefer removing all preprogrammed colors but the templates which this one replaced used them so they were kept. Adam McCormick (talk) 02:05, 29 January 2008 (UTC)Reply
No you didn't, I did. The problem is fixed now. The colors won't work if you use commas though, but it didn't before either so i doesn't matter. --MrStalker (talk) 17:38, 29 January 2008 (UTC)Reply
Yes I did, Wikipedia is just smart enough not to post both changes. Thank you for fixing your edit. Adam McCormick (talk) 17:42, 29 January 2008 (UTC)Reply
Ok, just noticed that your edit doesn't work for any value under 1000. Adam McCormick (talk) 18:06, 29 January 2008 (UTC)Reply
Damn it... I've reverted again. I'll see if I can come up with a solution for this. --MrStalker (talk) 18:24, 29 January 2008 (UTC)Reply
I've got one, Tell me what you think Adam McCormick (talk) 18:42, 29 January 2008 (UTC)Reply
Thanks, I was on the same track, never thought of using #iferror though. It should be working now. --MrStalker (talk) 18:49, 29 January 2008 (UTC)Reply

A new unique= parameter

edit

Just letting everyone know that I added a new parameter to the template that when a user adds unique=X to the variables it adds the text "X of which are unique". E.g. "This user has made over 826 contributions to Wikipedia , 448 of which are unique." or "This user has made over 826 contributions to Wikipedia , 448 of which are unique and X of which are deleted" . It has all been fixed so that it doesn't interfere with the deleted= variable. I added this when I noticed that wannabe_kate lists the number of unique edits per page and I think that would be a useful thing for a user to display as well as their total edit count. Happy Editing!  Atyndall93 | talk  11:47, 10 April 2008 (UTC)Reply

Color scheme

edit

Prior to my long absence starting back around October 2006, I had the thought to merge these templates and to give them a new color scheme as well. If anyone is interested, click here. Also, there is another template that is floating around which seems to be a duplicate of this one User mainspace edits. If there are differences between the two, it is suggested they be merged and one deleted. - LA @ 07:55, 3 May 2008 (UTC)Reply

Second version possible?

edit

Would it be possible to create a second Babel with all contributions of a single user to all projects of Wikimedia? Marcus Cyron (talk) 00:58, 15 May 2008 (UTC)Reply

Just use the link parameter, so for you it would be:
{{User contrib|the top|link=http://tools.wikimedia.de/~purodha/sample/dbswithuser.php?usr={{urlencode:Marcus Cyron}}&go=Go%21&uselang=en}}
Which shows up as:
the top+This user has made more than the top contributions to Wikipedia.


Isn't that easier than creating a new version? Adam McCormick (talk) 05:05, 16 May 2008 (UTC)Reply

Use on MediaWiki

edit

I am a member of the wiki Lostpedia. I copied this template and edited it onto there at [2].But it will not display correctly [3]. I copied my version to my page on Wikipedia and it works [4][5]. Does anyone know why this is?--Connor401 (talk) 20:25, 20 June 2008 (UTC)Reply

It's probably a problem with the setup of parser functions over there, maybe they don't allow parser functions in user space. You should try moving it to template space and see if it displays correctly. Adam McCormick (talk) 21:46, 20 June 2008 (UTC)Reply
Still No. Template:[6] Inclusion:[7]--Connor401 (talk) 14:16, 21 June 2008 (UTC)Reply
Is it still an issue if you remove "Template:" from the page you're transcluding to? Adam McCormick (talk) 20:17, 23 June 2008 (UTC)Reply

Edit counter

edit

Is there a way to change the link from showing Kate's Tool to SQL's Tool, which shows deleted contributions? Ctjf83Talk 18:58, 9 August 2008 (UTC)Reply

Adding a "link=" parameter should do it. -- Avi (talk) 07:05, 29 August 2008 (UTC)Reply
It worked! Thanks Ctjf83Talk 00:46, 12 September 2008 (UTC)Reply

query.php is dead

edit

The query.php link is dead so this needs to be updated. Snappy56 (talk) 08:56, 6 September 2008 (UTC)Reply

  Done. Cheers. --MZMcBride (talk) 23:41, 12 September 2008 (UTC)Reply

Specifying English Wikipedia?

edit

{{editprotected}} I've copied this template and created {{User contrib SUL}}. Is it an idea to specify in this template that this is a count for the English language wikipedia (en.wikipedia.org)? Nsaa (talk) 22:44, 9 September 2008 (UTC)Reply

  Done but in future please don't subst the {{editprotected}} template. Stifle (talk) 11:50, 10 September 2008 (UTC)Reply
Why? I must delete my box now. Why not for all projects? If here is a specification, there also should be a version for all Wikimedia-Projects. Marcus Cyron (talk) 20:45, 11 September 2008 (UTC)Reply

I'm reposting the tag because this suggestion wasn't discussed. I'm with Marcus, if you really want to specify English Wikipedia it should be a flag you can set, not the default. Please change it back or make it a parameter. Adam McCormick (talk) 00:27, 12 September 2008 (UTC)Reply

I've partially reverted the change. I added a {{{lang}}} parameter, so that people who want to specify "English" can do so. --MZMcBride (talk) 23:41, 12 September 2008 (UTC)Reply
Thanks. Marcus Cyron (talk) 21:12, 13 September 2008 (UTC)Reply

Adjust line height

edit

{{editprotected}}

Currently this userbox expands vertically if the text if forced onto three lines. This can be fixed by reducing the line height slightly. Change the line beginning:

| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color:

to read

| style="font-size: 8pt; padding: 4pt; line-height: 1.1em; color:

Chris Cunningham (not at work) - talk 18:58, 8 October 2008 (UTC)Reply

  Done. Huntster (t@c) 09:45, 13 October 2008 (UTC)Reply

Contributions in different Wikipedias

edit

Reading all of the above (if I haven't overlooked something), the user boxes seem limited to the contributions in one Wikipedia only. What can a user do who has >5000 contributions in the English Wikipedia and >3000 in the German? One user box with 5000 or 8000? Or two user boxes??--Ratzer (talk) 08:18, 24 October 2008 (UTC)Reply

You can do whatever you want, You could use {{User contrib|8000}} which gives:
8,000+This user has made more than 8,000 contributions to Wikipedia.
Or to be specific you could use {{User contrib|8000|lang=English and German}} which gives:
8,000+This user has made more than 8,000 contributions to the English and German Wikipedia.
Or to be explicit you could use {{User contrib|5000|lang=English}}{{-}}{{User contrib|3000|lang=German}} which gives:
5,000+This user has made more than 5,000 contributions to the English Wikipedia.
3,000+This user has made more than 3,000 contributions to the German Wikipedia.
It's all up to you. I would suggest using one of the first two. Adam McCormick (talk) 15:49, 24 October 2008 (UTC)Reply

Is it me or does the edit tool not working?

edit

It says it has a 69 hour high database server tag, but when I use the wannabe kate tool, it counts fine.--Truco 23:45, 5 January 2009 (UTC)

I agree the counter should be put back to Kate's tool. Adam McCormick (talk) 06:06, 9 January 2009 (UTC)Reply

Make the 30,000+ edits golden-ish instead of purple?

edit

Could we make the 30,000+ edits golden-ish instead of purple? Considering that once you pass 30,000, the colors never change, I'd rather look at a lighter color than purple. Gary King (talk) 19:47, 23 February 2009 (UTC)Reply

Userbox template version

edit

{{editprotected}} Could this template be changed so that it uses the {{Userbox}} template. I've done a version in the sandbox which does that. So can it be copied over. Thanks. -- WOSlinker (talk) 18:20, 10 August 2009 (UTC)Reply

  Done Let me know if there are any problems. Plastikspork (talk) 20:17, 10 August 2009 (UTC)Reply
edit

"There are various edit counters here."

The "here" link is broken, just thought I should let somebody know. —Preceding unsigned comment added by Iankap99 (talkcontribs) 22:26, 14 May 2010 (UTC)Reply

Bot/script

edit

May I suggest the addition of bot=(yes|no), script=(yes|no), script_wrote=(yes|no), broke=(yes|no) and busted=(yes|no) parameters which may encourage bot and script users to be more honest in their edit counts. As in: "I've made 20,000 edits to Wikipedia, 19,783 of which were by a script, but I wrote it myself, and it only broke 17 articles, and I never got busted for it!" --Lexein (talk) 14:30, 20 August 2010 (UTC)Reply

Language

edit

Regardless of the setting of |lang=, the link to Soxred's edit counter stays as English Wikipedia, although the text changes. --Redrose64 (talk) 16:52, 26 February 2011 (UTC)Reply

So, either we need something that converts "French" to "fr", or we need to add a second parameter, say lang_code, which allows one to set the value for lang. Which is better? Thanks! Plastikspork ―Œ(talk) 21:44, 26 February 2011 (UTC)Reply

Other projects

edit

Would it be possible to add a parameter so that other projects can be specified? For example |project=Wikimedia Commons would show that string instead of "Wikipedia". This will also allow combinations such as |lang=French|project=Wiktionary. --Redrose64 (talk) 16:56, 26 February 2011 (UTC)Reply

Seems reasonable. Could you create a sandbox version? Thanks! Plastikspork ―Œ(talk) 21:45, 26 February 2011 (UTC)Reply
  Done, see Template:User contrib/testcases. I refrained from attempting any amendment to Soxred's edit counter (see section above). --Redrose64 (talk) 22:38, 26 February 2011 (UTC)Reply
And done. If you have any suggestions for the thread above, I will make the change there as well. Thanks! Plastikspork ―Œ(talk) 23:04, 26 February 2011 (UTC)Reply

Edit request from Buaidh, 11 April 2011

edit

Add "|id-p=2px" to make large edit numbers more legible. Yours aye,  Buaidh  17:33, 11 April 2011 (UTC)  Buaidh  17:33, 11 April 2011 (UTC)Reply

This doesn't seem to have any effect. Can you test the output in the template sandbox, please? Chris Cunningham (user:thumperward: not at work) - talk 13:43, 13 April 2011 (UTC)Reply

Other language wikipedias

edit

Can the template be copied to other language wikipedias? If yes, how do we do the attribution, since a simple copy-paste would attribute it to the copier. Thanks.--Siddhartha Ghai (talk) 00:34, 12 July 2011 (UTC)Reply

never mind.--Siddhartha Ghai (talk) 06:55, 10 March 2012 (UTC)Reply
Sorry, only just noticed this. Yes, a copy can be done by a user who is an administrator on the Wikipedia which presently lacks this template - see Help:Import. --Redrose64 (talk) 18:53, 10 March 2012 (UTC)Reply

9,000

edit

I'd just like to humbly request some sort of Easter egg when an editor's count is over 9000. --BDD (talk) 18:54, 29 October 2012 (UTC)Reply

Edit request

edit

Please replace http://toolserver.org/~tparis/pcount/index.php?name={{urlencode:{{{2|{{BASEPAGENAME}}}}}}}&lang=en&wiki=wikipedia with http://toolserver.org/~River/cgi-bin/count_edits?user={{urlencode:{{{2|{{BASEPAGENAME}}}}}}}&dbname=enwiki_p for the time being. TParis' tools are currently down, and it's unknown how long it will take before his tools are up and running again. Right now, the link does not work. Thanks in advance, HeyMid (contribs) 16:32, 1 June 2013 (UTC)Reply

Done! Plastikspork ―Œ(talk) 20:24, 1 June 2013 (UTC)Reply

Edit request

edit

The text should read "This user has made more than..." not "This user has made over..." Please can this be changed. Thanks. Lugnuts Dick Laurent is dead 12:49, 6 October 2013 (UTC)Reply

Would you mind making the change to Template:User contrib/sandbox? There seem to be quite a few similar constructions which you might want to change as well. — Martin (MSGJ · talk) 11:59, 7 October 2013 (UTC)Reply
OK, how does this look? Lugnuts Dick Laurent is dead 12:05, 7 October 2013 (UTC)Reply
Fine, if that is the only change required.   Done — Martin (MSGJ · talk) 07:59, 8 October 2013 (UTC)Reply
Thanks. Lugnuts Dick Laurent is dead 08:20, 8 October 2013 (UTC)Reply

Protected edit request on 5 January 2014

edit

The additional count for the number of article-space edits made should also have commas; as you can see in this example, 2,038 is missing a comma:

3,123+This user has made more than 3,123 contributions to Wikipedia, over 2,038 of which were to articles.

This could be done using the {{formatnum:<NUMBER>}} magic word. APerson (talk!) 14:25, 27 July 2013 (UTC) APerson (talk!) 01:58, 5 January 2014 (UTC)Reply

  Done I actually used {{#switch: {{{format|yes}}}|yes = '''{{FORMATNUM:{{{articles}}}}}'''|no = '''{{{articles}}}'''}} so that it is only formated when the top number is formated. Happy editing! Technical 13 (talk) 05:18, 5 January 2014 (UTC)Reply
Why use {{#switch:}} when there are only two outcomes (comma or no comma)? One of the {{#if:}} variants would be far more efficient. --Redrose64 (talk) 20:50, 5 January 2014 (UTC)Reply
@Redrose64: I'm pretty sure that the switch was used so that the default value could be set to "yes" and the parameter could be given either the values "yes" or "no". APerson (talk!) 03:13, 29 January 2014 (UTC)Reply
It could have been done as '''{{#ifeq:{{{format|}}}|no|{{{articles}}}|{{FORMATNUM:{{{articles}}} }} }}''' --Redrose64 (talk) 11:01, 29 January 2014 (UTC)Reply

Template-protected edit request on 20 March 2014

edit

Change {{{link|http://tools.wmflabs.org/xtools/pcount/index.php?name={{urlencode:{{{2|{{BASEPAGENAME}}}}}}}&wiki=wikipedia&lang=en}} to {{{link|//tools.wmflabs.org/supercount/index.php?user={{urlencode:{{{2|{{BASEPAGENAME}}}}}}}&project=en.wikipedia}}, because that's the new location of the edit counter. Armbrust The Homunculus 17:18, 20 March 2014 (UTC)Reply

  Done{{U|Technical 13}} (tec) 17:22, 20 March 2014 (UTC)Reply
  Thank you Armbrust The Homunculus 17:40, 20 March 2014 (UTC)Reply

Template-protected edit request on 11 April 2014

edit

Make a , appear in e.g. 30351 when it is in |distinct=30351 as the rest of the template. See User:Josve05a/userboxes that it is not doing that. (tJosve05a (c) 21:27, 11 April 2014 (UTC)Reply

  Done Jackmcbarn (talk) 22:19, 11 April 2014 (UTC)Reply

Template-protected edit request on 23 April 2014

edit

Add formatnum to the parameter |deleted= as well. See above request. (tJosve05a (c) 08:58, 23 April 2014 (UTC)Reply

  Done Jackmcbarn (talk) 11:39, 23 April 2014 (UTC)Reply
edit

The stats link doesn't make any sense for the |log=yes option. That should change it to a link to some tool that actually counts log actions. In the interim I've made it be the Special:Log&user= link, as better than nothing.

I also added, tested and documented a |projsite= parameter, e.g. |projsite=commons.wikimedia or |projsite=fr.wiktinoary to change the stats link to be correct when |project= is used.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  12:42, 17 May 2014 (UTC)Reply

Total feature now useless

edit

I propose removing the |total=yes feature, as it is malfunctional and serves no purpose any longer. The link it creates goes to some XML gibberish that provides inaccurate stats, at least for users who've been on the system a long time (they're supposed to include all edits, even deleted, but in my case the number reported there is lower than the count produced minus deleted edits, by the external too. The external too in main link, meanwhile, provides both non-deleted and total edit counts. A third problem is that it doesn't show in the right place in complex uses of the template (it should have always been immediately after the regular number of edits (i.e. parameter 1) as formatted in the template output, and before add-on stats like those produced by |distinct= and other such parameters; it didn't make any sense at the very end, after such parameters' output.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  12:42, 17 May 2014 (UTC)Reply

Grammar issue: pages that may be insane

edit

When insane=yes as well as deleted=# are used, the userbox ends up looking like this:

9,001+This user has made more than 9,001 contributions to Wikipedia, over 101 of which were to pages that are now deleted and, as a result, may be slightly insane.

This implies that the pages that were deleted may be slightly insane. I'm not sure where else to put the phrase generated by insane=yes; maybe the words "This user" could be added in front of "may be slightly insane" if deleted=# is used? APerson (talk!) 22:05, 22 July 2014 (UTC)Reply

Template-protected edit request on 29 August 2014

edit

Needs updating for the new edit counter (so mine would be [8] instead of [9], for example) Thanks. :) --AmaryllisGardener talk 21:08, 29 August 2014 (UTC)Reply

  Not done. Both of these are working, just because it is "newer" doesn't mean it is what belongs here. Let's see a brief discussion first, then reactivate the editreq if needed.— xaosflux Talk 04:05, 30 August 2014 (UTC)Reply
@Xaosflux: Well, since MediaWiki:Sp-contributions-footer uses it, I thought it should be used here as well... --AmaryllisGardener talk 20:40, 4 September 2014 (UTC)Reply
@AmaryllisGardener: thanks for note, this is   Done. — xaosflux Talk 23:06, 4 September 2014 (UTC)Reply
Thank you! --AmaryllisGardener talk 23:10, 4 September 2014 (UTC)Reply

Template-protected edit request on October 22, 2014

edit

The xtools link was wonky all last weekend and it now goes to a 404 message. Can we please switch back to the old edit counter (I just checked and though it takes about a minute to load it is still working) - at least until the xtools one is working again? If not no worries and thanks for your time. MarnetteD|Talk 03:43, 23 October 2014 (UTC)Reply

  Donexaosflux Talk 04:08, 23 October 2014 (UTC)Reply
Thank you @Xaosflux:. If this is going to be an ongoing problem I wonder whether it would be of any use to have two templates - "User contrib" (with xtools) and "User contrib2" (with wmflabs supercount) - I understand this might not be feasible. My only thought was that it would keep your (or any other admin) from having to switch this one back and forth. Thanks again and cheers. MarnetteD|Talk 04:36, 23 October 2014 (UTC)Reply
@Xaosflux and MarnetteD: Now the newer one is back working, and is faster than the old one. I wonder if this will be the end of our troubles? --AmaryllisGardener talk 17:44, 23 October 2014 (UTC)Reply
Thanks for the update @AmaryllisGardener:. @Xaosflux: please feel free to change it back when you see these posts. Cheers to you both. MarnetteD|Talk 17:58, 23 October 2014 (UTC)Reply
  Done
@AmaryllisGardener: xtools has been down for several days now. Do you have any idea how long this situation will continue. I am loathe to ask Xoasflux to keep changing it back and forth and I have the wwmflabs supercount in my sandbox. OTOH if it is going to be down for some time it might be worth changing it back as other editors who use this userbox may not know why it isn't working. Any info you can give will be appreciated. MarnetteD|Talk 01:44, 5 November 2014 (UTC)Reply
@MarnetteD: I don't have any info on why xtools is not working every few days, nor do I know who is over xtools. Cyberpower678 might still be in charge of xtools, but according to his userpage, he is "ON INDEFINITE WIKIBREAK STARTED 72 DAYS AGO!". --AmaryllisGardener talk 02:04, 5 November 2014 (UTC)Reply
Thanks for taking the time to reply @AmaryllisGardener:. I guess this userbox is at the whims of forces beyond us. HeeHee. Cheers. MarnetteD|Talk 02:10, 5 November 2014 (UTC)Reply
Having reactivated mentions in my settings, I got pinged. If super count works for the moment, use it. If not, I'll try to get xtools restarted.—cyberpower ChatAbsent 03:54, 5 November 2014 (UTC)Reply
There are several threads at WP:VPT regarding the ups and downs of xtools and others. --Redrose64 (talk) 10:46, 5 November 2014 (UTC)Reply
xTools is back online.—cyberpower ChatAbsent 17:15, 5 November 2014 (UTC)Reply

Template-protected edit request on 25 January 2015

edit

Site has been moved, requesting links be updated. DragonZero (Talk · Contribs) 11:27, 25 January 2015 (UTC)Reply

  Done. SiBr4 (talk) 11:42, 25 January 2015 (UTC)Reply
edit
  Resolved
 – It's just comes and goes. Gotta live with it.

xtools is down again.

{{User contrib SUL}} uses this link: Special:CentralAuth. See:

  • {{User contrib SUL|49,000|Timeshifter}}
49,000+This user has made over 49,000 contributions to Wikimedia projects.

This is the link in that template:

It has separate numbers for many Wikimedia projects, and for Wikipedias in many languages. --Timeshifter (talk) 14:03, 8 March 2015 (UTC)Reply

  Not done: please establish a consensus for this alteration before using the {{edit template-protected}} template. xTools seems to be working to me. The only time there has been any outages that I'm aware of (as an xTools maintainer) in the recent past have been due to Labs restarts and maintenance and outages. If you see xTools down, I encourage you to wait 15 minutes and try again (there is an automatic restarting tool for when things go wrong that checks every 15 minutes) and if it's still not working ping the tool maintainers. We all have talk pages and I believe we all have email available. — {{U|Technical 13}} (etc) 01:52, 12 March 2015 (UTC)Reply

Whole server is non-responsive as of this moment.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  06:33, 1 August 2015 (UTC)Reply

It's back, just kinda slow.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  05:10, 6 August 2015 (UTC)Reply

Why aren't the edit-counts filled automatically? (like it's done for the mobile userpages)

edit

I'm not sure if I got this right: do you really have to manually fill in the edit-counts yourself? Or is there some bot already doing that automatically?
The userpages on mobile already feature automatic edit-counts, so why isn't there a way to have these on the usual pages?
Or should I ask about this at Wikipedia:Village pump?
--Fixuture (talk) 20:34, 6 April 2015 (UTC)Reply

Colour Contrast

edit

Many of the colours used in this template are not compliant with WP:COLOR – that is, they do not meet the WCAG 2 AAA Compliancy level. I've taken the chance to modify the colours myself in my sandbox: these are the colours before modification, and these are the colours after modification – the colours (text and background) that have been changed are displayed in bold in the former link. I recommend that these be updated as soon as possible, to comply with policy. Alex|The|Whovian 17:33, 2 October 2015 (UTC)Reply

As this is not a reader-facing template I have applied the requested changes in the spirit of WP:BOLD. This change may be reverted on request. — Martin (MSGJ · talk) 09:41, 5 October 2015 (UTC)Reply
To my knowledge, WP:COLOR applies to everything on Wikipedia. Take a look at my user page, and tell me how the 15,000 edits box is in any way accessible to those with sight issues. Alex|The|Whovian 10:14, 5 October 2015 (UTC)Reply
A misunderstanding I think. As this was not reader-facing I said I would make the change now rather than wait for further discussion. You said you had modified the colours in the sandbox, so I copied Template:User contrib/sandbox over to the live template, without even checking what was in there. Turns out that sandbox has not been edited since 2013, so I have now reverted. Now waiting for you to specify where the proposed code actually is. Regards — Martin (MSGJ · talk) 15:01, 5 October 2015 (UTC)Reply
I believe I added links in my original post, as well as the part where I said I've taken the chance to modify the colours myself in my sandbox. Alex|The|Whovian 15:06, 5 October 2015 (UTC)Reply
I did follow the links to your userspace, but as far as I can see that's just a table with lots of colours in. You still need to code the template and the best place for that is Template:User contrib/sandbox. Feel free to reactivate when ready. — Martin (MSGJ · talk) 15:33, 5 October 2015 (UTC)Reply
It's the table of colours directly from the template's documentation. I've done my bit my updating the table with compliant colours - it's not necessarily up to me to implement it in the template's sandbox as well. Alex|The|Whovian 23:17, 5 October 2015 (UTC)Reply
  Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. To repeat the point I had to make on another template earlier today, it's your change, the role of the admin or template editor is to provide a dis-interested second pair of eyes and make sure nothing breaks. It IS up to you to make the change in the sandbox, and to provide testcases if necessary.It's then up to the admin or TE to check it and implement it. You can not bother doing the work if you don't want to do it, but don't expect anybody else to do it either. Bazj (talk) 19:57, 9 October 2015 (UTC)Reply

Revisiting this, this has now been done in the sandbox, and can now be updated in the live version. Test cases are available in the specific subpage - the revised versions are on the left, whereas the original/current version is on the right. Alex|The|Whovian 13:49, 15 December 2015 (UTC)Reply

  Deployed — Martin (MSGJ · talk) 20:48, 15 December 2015 (UTC)Reply

Edit request 13 February 2016

edit
Please change it so that only "more than 8,000 contributions" is linked, instead of "more than 8,000 contributions to". Anarchyte (work | talk) 03:55, 13 February 2016 (UTC)Reply
  Not done: There are more than one parameter to which "to" is common, so it is included within the link. If you think this is a big enough issue to warrant the edits, then please reopen this edit request in a "change X to Y" format. Thank you for your participation!  Assume good faith! Paine  04:35, 13 February 2016 (UTC)Reply

Edit request

edit

The template supports the additions of deleted contributions, distinct pages, images, etc. Per the sandbox, I've added automated contributions (e.g. Twinkle, AWB, etc). Example in test cases, code in sandbox ready to deploy. Alex|The|Whovian? 03:38, 18 February 2016 (UTC)Reply

  Done Please remember to update the documentation. Regards, Bazj (talk) 10:01, 18 February 2016 (UTC)Reply
  Done Alex|The|Whovian? 10:06, 18 February 2016 (UTC)Reply

Automatic Updates

edit

Hi all,

I'm sorry if I was being a little dim here, but is there any way to auto update the amounts recorded for this infobox? We have Special:Contributions, which gives a numerical amount on the list, is there a way to import this into the infobox, so that it doesn't need to be updated manually? It seems a little odd that we have the ability to see the amount, but no way to make this value appear in the infobox.

Of course, I could have simply missed it. Please let me know if this is/isn't possible. Many Thanks Lee Vilenski (talkcontribs) 11:00, 15 February 2018 (UTC)Reply

Hello everybody! I was thinking something like this:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#/*
#* Copyright (C) 2019 Jimmy Olano (http://www.ks7000.net.ve/)
#*
#* This program is free software: you can redistribute it and/or modify
#* it under the terms of the GNU General Public License as published by
#* the Free Software Foundation, either version 3 of the License, or
#* https://www.gnu.org/licenses/gpl-3.0.en.html any later version.
#* This program is distributed in the hope that it will be useful,
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#* GNU General Public License for more details.
#*
#* You should have received a copy of the GNU General Public License
#* along with this program. If not, see <https://www.gnu.org/licenses/>.
#*
#* Special thanks to Kenneth Reitz for created "Requests" <http for humans>
#* https://requests.kennethreitz.org/en/master/dev/authors/
#*/

import requests
from bs4 import BeautifulSoup

user = "Jimmy_Olano"
url = "https://xtools.wmflabs.org/ec/en.wikipedia.org/"+user
my_headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}

try:
page = requests.get(url, headers=my_headers)
if page.status_code == "200":
wiki_soup = BeautifulSoup(page.text, 'html.parser')
count_edits = wiki_soup.find_all(class_="xt-test--total-edits")[0].get_text()
print(_("User "+user+" has "+count_edits+" editions."))
except:
print(_("No connection with wmflabs!"));

Of course we will need a robot which everyday update count (if any) for each user that uses robot; Have a nice day! 8-) --Jimmy Olano (talk) 14:04, 19 November 2019 (UTC)Reply

More colors?

edit

As more people break the 100,000 edits mark, any objection to adding a few more color patterns? I'm happy to do it... --Zackmann (Talk to me/What I been doing) 18:45, 1 October 2018 (UTC)Reply

I would support your adding more colors (colours for WP:ENGVAR) Zackmann08. I enjoyed seeing what the new color scheme would be as I passed each 10,000 mark and then they stopped at some point. I know it is just for fun but if there are objections then that is okay too. MarnetteD|Talk 19:28, 1 October 2018 (UTC)Reply
Anyone want to suggest some color patterns? --Zackmann (Talk to me/What I been doing) 16:45, 3 October 2018 (UTC)Reply
I'd leave it up to you - with the one suggestion that you test them to make sure the colors don't wash out the written text. Cheers. MarnetteD|Talk 16:50, 3 October 2018 (UTC)Reply

Redoing this

edit

So I've decided to redo this template and make use of a module to do some much better calculations. This is in the VERY early stages and I would welcome any and all input! My thinking is that rather than having seemingly random colors, lets actually do things in a progressive way. He is my current plan of attack:

  • Every 5,000 edits the font colors change (1-4,999 is one set, then 5,000-9,999, etc.)
  • Every 25,000 edits the background colors change and the font colors reset.

Right now this is just food for thought. I'm still playing with how to do it, but would welcome any ideas!

--Zackmann (Talk to me/What I been doing) 19:13, 16 October 2018 (UTC)Reply

Anybody care to chime in? could use some input! --Zackmann (Talk to me/What I been doing) 17:28, 18 October 2018 (UTC)Reply
@Frayae: that defeats the entire point of the userbox... If you want to do custom colors, just use {{userbox}}. --Zackmann (Talk to me/What I been doing) 06:28, 19 October 2018 (UTC)Reply

Template-protected edit request on 18 October 2018

edit

This template is now generating errors on hundreds of user pages, judging from the latest additions to Category:Pages with script errors. Please restore the previous non-module version to fix the errors until the errors are fixed. JohnBlackburnewordsdeeds 23:20, 18 October 2018 (UTC)Reply

@JohnBlackburne and Frayae: thanks and sorry... Doing my best. Thought I had it working but missed some edge cases. Would love if you felt like testing out the sandbox. I THINK I have it working now but going to hold off on re-implementing until I will be at my computer for a lengthy time to address issues as they come. --Zackmann (Talk to me/What I been doing) 23:52, 18 October 2018 (UTC)Reply

Old:

1+This user has made more than 1 contribution to Wikipedia.

New:

1+This user has made more than 1 contribution to Wikipedia.
@Frayae: fixed! --Zackmann (Talk to me/What I been doing) 00:33, 19 October 2018 (UTC)Reply
Looking at the category again it’s adding user pages to the category. Only a handful though, not hundreds. Here are the ones in the category at the moment which seem to be due to it:
--JohnBlackburnewordsdeeds 05:12, 19 October 2018 (UTC)Reply
Is there still some issue to resolve?  — SMcCandlish ¢ 😼  10:19, 8 November 2018 (UTC)Reply

Template-protected edit request on 19 October 2018

edit
100,000+This user has made more than 100,000 contributions to Wikipedia.




Not sure if anyone's aware but the 100000 userbox above has been changed from black background/yellow text to yellow background/black text which looks rather odd, Wasn't sure if this should be changed back ?, Thanks –Davey2010Talk 17:58, 19 October 2018 (UTC)Reply

Well until I started editing it, there was no color for 100,000 anyway... So part of the process was to re-do the color scheme. I posted on here multiple times requesting input and no one chimed in. You're welcome to update the colors. --Zackmann (Talk to me/What I been doing) 19:52, 21 October 2018 (UTC)Reply
I changed the 10,000 edit user box back to its previous colors. — Frayæ (Talk/Spjall) 20:09, 21 October 2018 (UTC)Reply
Hi Frayae, Thanks for replying - Unfortunately nothing appears to have changed?, Thanks, –Davey2010Talk 20:18, 21 October 2018 (UTC)Reply
Ah fixed, Many thanks again Frayae (and to everyone else who's kindly replied), Thanks, –Davey2010Talk 20:22, 21 October 2018 (UTC)Reply
10,000 and 100,000 edit user boxes both restored to their previous colors now.  Frayæ (Talk/Spjall) 20:24, 21 October 2018 (UTC)Reply

logs=?

edit

@Zackmann08: did you recently remove the logs=yes parameter? If so will you be restoring this? — xaosflux Talk 15:17, 23 October 2018 (UTC)Reply

WP:BRD applied after no response from @Zackmann08:. — xaosflux Talk 20:14, 3 November 2018 (UTC)Reply
@Xaosflux: sorry I have a lot of irons in the fire. Will fix this now. My apologies. --Zackmann (Talk to me/What I been doing) 22:48, 3 November 2018 (UTC)Reply
@Xaosflux: that should do it. If you are seeing any other issues, please let me know. :-) --Zackmann (Talk to me/What I been doing) 23:30, 3 November 2018 (UTC)Reply
P.S. Sorry it took me so long to fix it. --Zackmann (Talk to me/What I been doing) 23:31, 3 November 2018 (UTC)Reply
@Zackmann08: thanks, looking good. — xaosflux Talk 23:38, 3 November 2018 (UTC)Reply

Setting the colors

edit

I'm trying to use the instructions on the template page to change the colors of the template on my user page, using the id-bg, info-bg, border, id-font, and info-font parameters, but it doesn't seem to be working. What am I doing wrong?

45,000+This user has made more than 45,000 contributions to Wikipedia.


Mudwater (Talk) 13:07, 29 December 2018 (UTC)Reply

@Zackmann08: recently worked on the scripting, giving a poke. — xaosflux Talk 16:23, 29 December 2018 (UTC)Reply
@Mudwater and Xaosflux: sorry I missed this... I took a wiki-vacation over Christmas. Gogo Dodo just brought this to my attention. Let's see what I can do. :-) --Zackmann (Talk to me/What I been doing) 08:11, 13 January 2019 (UTC)Reply
@Mudwater and Gogo Dodo: should be working now... I'm about to call it a night, but if you find any issues, drop me a line and I'll look in the AM. Sorry again for missing this in December! --Zackmann (Talk to me/What I been doing) 08:22, 13 January 2019 (UTC)Reply
@Zackmann08: Excellent. Thanks! Now here's my next question. What are the parameters I should use to set the colors to be the same as in the user rights userboxes? That is, I'd like the background to be grey on the left and light grey on the right, with black font for regular text, blue font for the linked text, and a dark grey border, like this:
 This user has autoconfirmed rights on the English Wikipedia. (verify)

This might be documented somewhere, but I've looked around and I can't find it. Mudwater (Talk) 14:28, 13 January 2019 (UTC)Reply

@Mudwater: so this is all based off of {{Userbox}} so that's where you will find the documentation and just a reminder you can always create your own custom box. But let me see if I can't do it for ya...

45,000+This user has made more than 45,000 contributions to Wikipedia.

Hope that helps. --Zackmann (Talk to me/What I been doing) 18:54, 13 January 2019 (UTC)Reply

@Zackmann08: Yes, very nice. Thanks again! Mudwater (Talk) 19:28, 13 January 2019 (UTC)Reply

No colours any more

edit

Where have all the colours gone? In the past, the colours of this userbox varied according to the value fed in, and this is described at Template:User contrib#Color reference (expand the box). Now it's always two shades of grey, whatever the value. --Redrose64 🌹 (talk) 18:42, 29 June 2019 (UTC)Reply

Apparently that was lost when the template was converted to use Lua. If one needs custom color now, they have to define it using these keys for the font, background and border colors. – Ammarpad (talk) 18:52, 29 June 2019 (UTC)Reply

Archived list of color codes

edit

For anyone who wants to see the colors used for separate edit count templates for reference, click here. The template has been archived in the Wayback Machine. CHICHI7YT (talk) 19:58, 11 November 2019 (UTC)Reply

CHICHI7YT, or you can just see it here; it still exists on Wikipedia, just in the history. -- /Alex/21 09:13, 21 January 2020 (UTC)Reply

Template-protected edit request on 10 June 2020

edit

Please merge Module:User contrib/sandbox into Module:User contrib, and Template:User contrib/doc/sandbox into Template:User contrib/doc. They are both identical, apart from the |reverted= parameter, which I added, to show deleted edits instead of just edits to deleted pages. WT79 (Speak to me | account info) 06:50, 10 June 2020 (UTC) The sandbox also re-adds the |link= parameter, which was lost during conversion to lua. WT79 (Speak to me | account info) 07:32, 22 June 2020 (UTC)Reply

Would you create some testcases please to show how it works? — Martin (MSGJ · talk) 18:53, 10 June 2020 (UTC)Reply
@MSGJ:Already exist at Template:User contrib/testcases – see lowest one for current change (all the others are identical). WT79 (Speak to me | account info) 13:49, 11 June 2020 (UTC)Reply
Sorry for the late reply - surprised that someone else didn't pick this up. I don't understand the grammar in the sentence "This user has made more than 201 contributions to Wikipedia, over 41 of which were to pages that are now deleted, over 2 of which were subsequently reverted." By "reverted" do you mean that 2 of those pages which were deleted have now been restored? Or do you mean something else? — Martin (MSGJ · talk) 05:55, 21 June 2020 (UTC)Reply
@MSGJ:By "reverted", I mean edits that have been subsequently undone, but are still 'live' in as much as they are viewable by non-administrators. These are opposed to edits which occur to pages which were subsequently deleted, as per how it shows currently, with the deleted= parameter. WT79 (Speak to me | account info) 06:46, 22 June 2020 (UTC)Reply
Sorry, I am re-adding the |link= parameter to sandbox so have temporally closed this request. WT79 (Speak to me | account info) 07:01, 22 June 2020 (UTC)Reply
 YFinished editing sandbox, reopened request. WT79 (Speak to me | account info) 07:14, 22 June 2020 (UTC)Reply
@MSGJ:Sorry for bad grammar; it appears to be an issue with many of the template's parameters. The grammar is the same for the |deleted=, |reverted=, |articles=, and |automated= parameters, and a similar issue is present if the |distinct= and |unique= parameters are used together. WT79 (Speak to me | account info) 07:30, 22 June 2020 (UTC)Reply
Tools exist to count edits and deleted edits. How would you count reverted edits? --Redrose64 🌹 (talk) 10:10, 22 June 2020 (UTC)Reply
I also wonder why this would be useful. Deactivated request for now ... — Martin (MSGJ · talk) 07:26, 25 June 2020 (UTC)Reply
edit

The link= parameter appears to be broken. This can be seen in the examples in doc. Does anyone know what is causing this issue, and how to fix? WT79 (Speak to me | account info) 14:16, 10 June 2020 (UTC)Reply

WT79 The Engineer, the parameter |link= has been lost during template's conversion into a Lua module. Module:User contrib simply doesn't support it. —⁠andrybak (talk) 23:08, 10 June 2020 (UTC)Reply
doc should be modified to support this. WT79 (Speak to me | account info) 00:01, 11 June 2020 (UTC)Reply
Based on the above discussions about colors and |link=, it looks like the conversion to use a Lua module was never tested thoroughly and was never finished. It may be best to revert to the previous non-Lua version. – Jonesey95 (talk) 01:45, 21 June 2020 (UTC)Reply
I have re-added this parameter to sandbox version. WT79 (Speak to me | account info) 07:11, 22 June 2020 (UTC)Reply

Template-protected edit request on 25 June 2020

edit

Please merge Module:User contrib/sandbox into Module:User contrib. It should be identical to the current version apart from that it re-adds the |link= parameter (with alias |url=), which was lost when the template was converted to lua. WT79 (Speak to me | account info) 09:46, 25 June 2020 (UTC)Reply

  Done Nardog (talk) 15:11, 30 June 2020 (UTC)Reply

A template/module detecting how many contribs I made

edit

Instead of me manually changing over time. Can we make a userbox that detects your contributions? --MirahezeGuy (talk) 15:38, 29 September 2020 (UTC)Reply

This has been attempted in the past; see User:UBX/LiveEditCounter. I think we need a new scripting expert though... WT79 (speak to me | editing patterns | what I been doing) 17:48, 29 September 2020 (UTC)Reply
273,000+This user has made more than 273,000 contributions to Wikipedia.
If you're an admin, it's quite easy: Template:Adminstats/Redrose64 is updated roughly every day by Cyberbot I (talk · contribs). I can extract figures from that using {{adminstats}}, for example {{adminstats|Redrose64|style=raw ed+del}} emits 273764 which I can then use thus: {{User contrib|{{rounddown|{{adminstats|Redrose64|style=raw ed+del}}|-3}}|Redrose64}}, see right. --Redrose64 🌹 (talk) 21:04, 29 September 2020 (UTC)Reply
@MirahezeGuy, WT79, and Redrose64: Is there any template that'd be able to comb through the table at WP:List of Wikipedians by number of edits and return the value for a given user? That'd get us the top 10,000 users, which I'd imagine would be the majority of people interested in having this template on their page. I see {{Table row counter}} exists, so it seems like it should be possible to do in Lua. {{u|Sdkb}}talk 07:15, 22 October 2020 (UTC)Reply

Magic word requested

edit

I have opened a phab ticket requesting a magic word that would allow this template to be updated automatically. See phab:T278506. {{u|Sdkb}}talk 02:57, 26 March 2021 (UTC)Reply

They closed it as a duplicate. --Redrose64 🌹 (talk) 14:49, 26 March 2021 (UTC)Reply
Redrose64, and a duplicate of a declined task. So it looks like this won't be coming anytime soon, unless someone who knows Lua takes up the idea directly above and finds a way to make it work. {{u|Sdkb}}talk 18:58, 26 March 2021 (UTC)Reply

linked=no option does not appear to work

edit

Unless I am misunderstanding the documentation, it appears that |linked=no does not work. I also tried blank |link= and blank |url=, but in each case, the link in the body of the userbox is generated. Please see this testcase.

My goal is to provide an option for editors who have added a wikilink to the edit count, as in the second testcase. I think this used to work fine, but now it creates a "wikilink inside external link" Linter error. – Jonesey95 (talk) 17:34, 8 May 2024 (UTC)Reply

Then it's a deficiency in Module:User contrib. --Redrose64 🌹 (talk) 21:47, 8 May 2024 (UTC)Reply
I assume so, since the template just calls the module. This is the talk page for that module, so I posted the note here. – Jonesey95 (talk) 23:40, 8 May 2024 (UTC)Reply

Color accessibility issue

edit

When |log=yes, the dark-green background color is too dark to be readable (either plain or link text) for many people on many devices. Suggest changing that #3B7B46 (that's what my color-picker app says it is) to a somewhat similar but more practical #2B9A59.  — SMcCandlish ¢ 😼  20:27, 31 October 2024 (UTC)Reply