Template talk:User contrib
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Width problem
editAs 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+ |
JPG-GR 00:22, 7 May 2007 (UTC)
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)
- 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)
- I believe the solution is to put them in yourself, So:
100,000,000,000,000,000,000,000,000+
- 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)
- or for commas and returns:
100,
000,000,
000,000,
000,000,
000,000+
- 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+
- Erm... can we safely say that someone with that many edits NEEDS HELP, NOW? – Gurch 20:39, 8 May 2007 (UTC)
- 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)
- 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)
- You're probably gonna have to use exponents. So for 100000000000000000000000000, it's 10<sup>26</sup>, which will produce:
1026+ - V60 干什么? · VDemolitions 15:21, 9 May 2007 (UTC)
- 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: 101015 — Isilanes 15:49, 9 May 2007 (UTC)
- 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)
- 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)
- 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)
- 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)
- A valid explanation for not needing a solution. *rests now* JPG-GR 07:09, 10 May 2007 (UTC)
- 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)
- The {{#ifexpr ParserFunction seems good for an automatic solution. V60 干什么? · VDemolitions 01:12, 19 May 2007 (UTC)
- 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)
Colors
editI 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
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)
- 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)
Rename
editBefore 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)
- 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)
- 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)
- 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)
- 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)
List of Colors
editThe 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)
- 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)
Re-add the 100,000+ ", and as a result may be slightly insane"
editAPerson (talk!) 14:18, 27 July 2013 (UTC)
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)
- 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)
- 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)
- 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)
- 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)
Categories
editIf 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)
- 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)
- I am trying to set this up please don't panic! Adam McCormick 04:47, 21 May 2007 (UTC)
- OK, 5000 categories work, now to deal with non-number text Adam McCormick 04:51, 21 May 2007 (UTC)
- I am trying to set this up please don't panic! Adam McCormick 04:47, 21 May 2007 (UTC)
Userbox Error: 200+ edits
editWhen 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 (talk • contribs) 17:59, 13 May 2007 (UTC).
- Fixed. V60 干什么? · VDemolitions 20:23, 13 May 2007 (UTC)
- 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)
- That should do it, hopefully that works? Adam McCormick 17:58, 14 May 2007 (UTC)
- Yessir, it works, thank you very much. --PostScript (info/talk/contribs) 00:33, 15 May 2007 (UTC)
- That should do it, hopefully that works? Adam McCormick 17:58, 14 May 2007 (UTC)
- 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)
Errors
editI 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)
- 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)
- 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)
- 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)
- Yes, but it could be messy. I'll give it a shot Adam McCormick 23:02, 22 May 2007 (UTC)
- 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)
- Yes, but it could be messy. I'll give it a shot Adam McCormick 23:02, 22 May 2007 (UTC)
Minor issue: extra line at the bottom
editHi. 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)
- Thanks to Alanbly for fixing it. -- Black Falcon (Talk) 17:46, 26 May 2007 (UTC)
- No problem, couldn't see the extra line in the preview Adam McCormick 21:17, 27 May 2007 (UTC)
Categories for Deletion
editThe 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)
Slight comma issue
editIn 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)
150,000
editI 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)
- 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)
- 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)
- Red and black always serves to stun. Anonymous DissidentTalk 15:01, 4 July 2007 (UTC)
- 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)
Changing the link
editIs 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)
Question
editIs 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)
Edit Counter
editRecently 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)
- 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)
- 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)
- OK I've made a first attempt at adding a "link" parameter. it works like this:
{{User contrib|100}} makes:
100+ |
{{User contrib|100|link=http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user={{urlencode:{{BASEPAGENAME}}}}&dbname=enwiki_p}} makes:
100+ |
{{User contrib|100|link=http://en.wikipedia.org/wiki/Special:Contributions/Alanbly}} makes:
100+ |
Latest change - commas
edit
Noticed that since the last change, any boxes with a comma in them break. Compare
49,000+ |
with
49,000+ |
Lugnuts (talk) 21:20, 28 January 2008 (UTC)
- 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)
- 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)
- 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)
- 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)
- Ok, just noticed that your edit doesn't work for any value under 1000. Adam McCormick (talk) 18:06, 29 January 2008 (UTC)
- 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)
- I've got one, Tell me what you think Adam McCormick (talk) 18:42, 29 January 2008 (UTC)
- 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)
- I've got one, Tell me what you think Adam McCormick (talk) 18:42, 29 January 2008 (UTC)
- 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)
- Ok, just noticed that your edit doesn't work for any value under 1000. Adam McCormick (talk) 18:06, 29 January 2008 (UTC)
- 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)
- 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)
- 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)
A new unique= parameter
editJust 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)
Color scheme
editPrior 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)
Second version possible?
editWould 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)
- 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+
- Isn't that easier than creating a new version? Adam McCormick (talk) 05:05, 16 May 2008 (UTC)
Use on MediaWiki
editI 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)
- 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)
- Still No. Template:[6] Inclusion:[7]--Connor401 (talk) 14:16, 21 June 2008 (UTC)
- 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)
- Still No. Template:[6] Inclusion:[7]--Connor401 (talk) 14:16, 21 June 2008 (UTC)
Edit counter
editIs 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)
- Adding a "link=" parameter should do it. -- Avi (talk) 07:05, 29 August 2008 (UTC)
- It worked! Thanks Ctjf83Talk 00:46, 12 September 2008 (UTC)
query.php is dead
editThe query.php link is dead so this needs to be updated. Snappy56 (talk) 08:56, 6 September 2008 (UTC)
- Done. Cheers. --MZMcBride (talk) 23:41, 12 September 2008 (UTC)
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)
- Done but in future please don't subst the {{editprotected}} template. Stifle (talk) 11:50, 10 September 2008 (UTC)
- 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)
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)
- 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)
- Thanks. Marcus Cyron (talk) 21:12, 13 September 2008 (UTC)
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)
- Done. — Huntster (t • @ • c) 09:45, 13 October 2008 (UTC)
Contributions in different Wikipedias
editReading 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)
- You can do whatever you want, You could use {{User contrib|8000}} which gives:
8,000+ |
- Or to be specific you could use {{User contrib|8000|lang=English and German}} which gives:
8,000+ |
- Or to be explicit you could use {{User contrib|5000|lang=English}}{{-}}{{User contrib|3000|lang=German}} which gives:
5,000+ |
3,000+ |
- It's all up to you. I would suggest using one of the first two. Adam McCormick (talk) 15:49, 24 October 2008 (UTC)
Is it me or does the edit tool not working?
editIt 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)
Make the 30,000+ edits golden-ish instead of purple?
editCould 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)
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)
- Done Let me know if there are any problems. Plastikspork (talk) 20:17, 10 August 2009 (UTC)
Broken link
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 (talk • contribs) 22:26, 14 May 2010 (UTC)
Bot/script
editMay 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)
Language
editRegardless 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)
- 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)
Other projects
editWould 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)
- Seems reasonable. Could you create a sandbox version? Thanks! Plastikspork ―Œ(talk) 21:45, 26 February 2011 (UTC)
- 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)
- 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)
- 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)
Edit request from Buaidh, 11 April 2011
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- 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)
Other language wikipedias
editCan 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)
- never mind.--Siddhartha Ghai (talk) 06:55, 10 March 2012 (UTC)
- 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)
9,000
editI'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)
Edit request
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Edit request
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- 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)
- OK, how does this look? Lugnuts Dick Laurent is dead 12:05, 7 October 2013 (UTC)
- Fine, if that is the only change required. Done — Martin (MSGJ · talk) 07:59, 8 October 2013 (UTC)
- OK, how does this look? Lugnuts Dick Laurent is dead 12:05, 7 October 2013 (UTC)
Protected edit request on 5 January 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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 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)
- 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)- 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)- @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)
- It could have been done as
'''{{#ifeq:{{{format|}}}|no|{{{articles}}}|{{FORMATNUM:{{{articles}}} }} }}'''
--Redrose64 (talk) 11:01, 29 January 2014 (UTC)
- It could have been done as
- @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)
- Why use
Template-protected edit request on 20 March 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Done — {{U|Technical 13}} (t • e • c) 17:22, 20 March 2014 (UTC)
- Thank you Armbrust The Homunculus 17:40, 20 March 2014 (UTC)
Template-protected edit request on 11 April 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Make a ,
appear in e.g. 30351 when it is in
as the rest of the template. See User:Josve05a/userboxes that it is not doing that.
(t) Josve05a (c) 21:27, 11 April 2014 (UTC)
|distinct=
30351
Template-protected edit request on 23 April 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add formatnum to the parameter |deleted=
as well. See above request.
(t) Josve05a (c) 08:58, 23 April 2014 (UTC)
Link fixes
editThe 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)
Total feature now useless
editI 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)
Grammar issue: pages that may be insane
editWhen insane=yes as well as deleted=# are used, the userbox ends up looking like this:
9,001+ |
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)
Template-protected edit request on 29 August 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- 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)
- @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)
- @AmaryllisGardener: thanks for note, this is Done. — xaosflux Talk 23:06, 4 September 2014 (UTC)
- Thank you! --AmaryllisGardener talk 23:10, 4 September 2014 (UTC)
Template-protected edit request on October 22, 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Done — xaosflux Talk 04:08, 23 October 2014 (UTC)
- 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)
- @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)
- 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)
- 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)
- @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)
- 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)
- 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)
- There are several threads at WP:VPT regarding the ups and downs of xtools and others. --Redrose64 (talk) 10:46, 5 November 2014 (UTC)
- xTools is back online.—cyberpower ChatAbsent 17:15, 5 November 2014 (UTC)
- There are several threads at WP:VPT regarding the ups and downs of xtools and others. --Redrose64 (talk) 10:46, 5 November 2014 (UTC)
- 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)
- 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)
- @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)
- @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)
- Done
- 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)
- @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)
- 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)
Template-protected edit request on 25 January 2015
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Site has been moved, requesting links be updated. DragonZero (Talk · Contribs) 11:27, 25 January 2015 (UTC)
- Done. SiBr4 (talk) 11:42, 25 January 2015 (UTC)
How about this link instead of xtools?
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
xtools is down again.
{{User contrib SUL}} uses this link: Special:CentralAuth. See:
- {{User contrib SUL|49,000|Timeshifter}}
49,000+ |
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)
- 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}} (e • t • c)
01:52, 12 March 2015 (UTC)
Whole server is non-responsive as of this moment. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 06:33, 1 August 2015 (UTC)
- It's back, just kinda slow. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 05:10, 6 August 2015 (UTC)
Why aren't the edit-counts filled automatically? (like it's done for the mobile userpages)
editI'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)
Colour Contrast
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- 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)
- 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)
- 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)
- 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)- 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)
- 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)
- 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)
- 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)
- 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)
- I believe I added links in my original post, as well as the part where I said
- 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)
- 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)
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)
- Deployed — Martin (MSGJ · talk) 20:48, 15 December 2015 (UTC)
Edit request 13 February 2016
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
- 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)
- 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)
Edit request
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Done Please remember to update the documentation. Regards, Bazj (talk) 10:01, 18 February 2016 (UTC)
Automatic Updates
editHi 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 (talk • contribs) 11:00, 15 February 2018 (UTC)
- 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)
More colors?
editAs 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)
- 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)
- Anyone want to suggest some color patterns? --Zackmann (Talk to me/What I been doing) 16:45, 3 October 2018 (UTC)
- 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)
- Anyone want to suggest some color patterns? --Zackmann (Talk to me/What I been doing) 16:45, 3 October 2018 (UTC)
Redoing this
editSo 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!
- Sandbox: User:Zackmann08/Sandbox2
- Module: Module:User contrib
--Zackmann (Talk to me/What I been doing) 19:13, 16 October 2018 (UTC)
- Anybody care to chime in? could use some input! --Zackmann (Talk to me/What I been doing) 17:28, 18 October 2018 (UTC)
- It would be nice to be able to chose the colors via template parameters and not have to use a set color scheme. — Frayæ (Talk/Spjall) 23:27, 18 October 2018 (UTC)
- @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)
Template-protected edit request on 18 October 2018
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- @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)
- @Zackmann08: As far as I can tell, the problem is when no parameters are specified. This used to give a basic output, but now gives a lua error. — Frayæ (Talk/Spjall) 23:55, 18 October 2018 (UTC)
Old:
1+ |
New:
1+ |
- 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:
- User:MrDolomite/Userboxlist
- User:MrDolomite
- User:Harrias
- User:BrownHairedGirl
- User:SMcCandlish
- User:Thane
- --JohnBlackburnewordsdeeds 05:12, 19 October 2018 (UTC)
- Is there still some issue to resolve? — SMcCandlish ☏ ¢ 😼 10:19, 8 November 2018 (UTC)
Template-protected edit request on 19 October 2018
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
100,000+ |
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)
- I am still not sure if the new colors for the 10,000 edit userbox are an improvement either. — Frayæ (Talk/Spjall) 18:05, 19 October 2018 (UTC)
- ping Zackmann08 - converting to a module is good but you should retain the previous colors Galobtter (pingó mió) 19:42, 21 October 2018 (UTC)
- 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)
- I changed the 10,000 edit user box back to its previous colors. — Frayæ (Talk/Spjall) 20:09, 21 October 2018 (UTC)
- Hi Frayae, Thanks for replying - Unfortunately nothing appears to have changed?, Thanks, –Davey2010Talk 20:18, 21 October 2018 (UTC)
- Ah fixed, Many thanks again Frayae (and to everyone else who's kindly replied), Thanks, –Davey2010Talk 20:22, 21 October 2018 (UTC)
- 10,000 and 100,000 edit user boxes both restored to their previous colors now. — Frayæ (Talk/Spjall) 20:24, 21 October 2018 (UTC)
- Ah fixed, Many thanks again Frayae (and to everyone else who's kindly replied), Thanks, –Davey2010Talk 20:22, 21 October 2018 (UTC)
- Hi Frayae, Thanks for replying - Unfortunately nothing appears to have changed?, Thanks, –Davey2010Talk 20:18, 21 October 2018 (UTC)
- I changed the 10,000 edit user box back to its previous colors. — Frayæ (Talk/Spjall) 20:09, 21 October 2018 (UTC)
- 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)
- The gold-on-black is to match other templates that related to reaching 100K edits. — SMcCandlish ☏ ¢ 😼 10:19, 8 November 2018 (UTC)
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)
- WP:BRD applied after no response from @Zackmann08:. — xaosflux Talk 20:14, 3 November 2018 (UTC)
- @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)
- @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)
- 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)
- @Zackmann08: thanks, looking good. — xaosflux Talk 23:38, 3 November 2018 (UTC)
- @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)
Setting the colors
editI'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+ |
— Mudwater (Talk) 13:07, 29 December 2018 (UTC)
- @Zackmann08: recently worked on the scripting, giving a poke. — xaosflux Talk 16:23, 29 December 2018 (UTC)
- @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)
- @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)
- @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)
- @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)
- @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)
@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+ |
Hope that helps. --Zackmann (Talk to me/What I been doing) 18:54, 13 January 2019 (UTC)
- @Zackmann08: Yes, very nice. Thanks again! — Mudwater (Talk) 19:28, 13 January 2019 (UTC)
No colours any more
editWhere 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)
- 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)
Archived list of color codes
editFor 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)
- 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)
Template-protected edit request on 10 June 2020
editThis edit request to Module:User contrib has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Would you create some testcases please to show how it works? — Martin (MSGJ · talk) 18:53, 10 June 2020 (UTC)
- @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)
- 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)
- @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) - 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) - Finished editing sandbox, reopened request. WT79 (Speak to me | account info) 07:14, 22 June 2020 (UTC)
- @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)- Tools exist to count edits and deleted edits. How would you count reverted edits? --Redrose64 🌹 (talk) 10:10, 22 June 2020 (UTC)
- I also wonder why this would be useful. Deactivated request for now ... — Martin (MSGJ · talk) 07:26, 25 June 2020 (UTC)
- @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
- 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)
- @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)
Link
editThe 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)
- 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)- doc should be modified to support this. WT79 (Speak to me | account info) 00:01, 11 June 2020 (UTC)
- 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)- I have re-added this parameter to sandbox version. WT79 (Speak to me | account info) 07:11, 22 June 2020 (UTC)
- Based on the above discussions about colors and
- doc should be modified to support this. WT79 (Speak to me | account info) 00:01, 11 June 2020 (UTC)
Template-protected edit request on 25 June 2020
editThis edit request to Module:User contrib has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Done Nardog (talk) 15:11, 30 June 2020 (UTC)
A template/module detecting how many contribs I made
editInstead of me manually changing over time. Can we make a userbox that detects your contributions? --MirahezeGuy (talk) 15:38, 29 September 2020 (UTC)
- 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)
- 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
273,000+ {{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)- @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)
Magic word requested
editI 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)
- They closed it as a duplicate. --Redrose64 🌹 (talk) 14:49, 26 March 2021 (UTC)
- 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)
linked=no option does not appear to work
editUnless 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)
- Then it's a deficiency in Module:User contrib. --Redrose64 🌹 (talk) 21:47, 8 May 2024 (UTC)
- 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)
Color accessibility issue
editWhen |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)