Template talk:Service award progress

Tweaking needed
Progress to next lvl should be shown both by edit requirement and time requirement--VarunFEB2003 (talk) 14:36, 2 June 2016 (UTC)
 * , if you're talking about how the template hides one of the progress bars sometimes, you can force it to display both with . Enterprisey (talk!) (formerly APerson) 16:39, 2 June 2016 (UTC)

A suggestion for change
I DONT KNOW HOW TO WRITE THE PROGRAMME THAT THE NUMBER OF EDITS AUTOMATICALLY INCREASE IN THE TEMPLATE. BUT I SUGGEST THAT THE TEMPLATES INTERFACE AND LOOKS BE A BIT CHANGED TO LOOK LIKE THIS: VarunFEB2003 (talk • contribs) 09:36, 12 June 2016 (UTC)

Currently this editor is a Registered Editor (or Signator). To move to next level - Novice Editor (or Burba) he needs to meet the 'time' and 'number of edits' requirement which are 200 edits and 1 month of service. His progress so far is given below

Progress towards Novice Editor (or Burba) Edit Requirement - 598/200 (COMPLETED!) Time requirement - 25/30   (5 days left)

--VarunFEB2003 (talk • contribs) 09:36, 12 June 2016 (UTC)
 * Is there a reason why you're shouting?  Cassianto Talk   10:21, 12 June 2016 (UTC)
 * Try this:

""
 * Looks a bit more like your version. It looks like your version wants the user to specify a particular level to show progress to, which (in my opinion) makes the template a whole lot more manual, which is undesirable. Regarding the additional progress displays, I feel like simply displaying the number of days passed so far works fine. Enterprisey (talk!) (formerly APerson) 14:49, 12 June 2016 (UTC)


 * Anyway let's forget it. I left my caps lock on last time and forgot I wasnt shouting. This template wrongly displays it says "EDITING OR TIME REQUIREMENT" whereas Service awards says a user needs to meet both to move ahead. Moreover i still didnt like the display VarunFEB2003 (talk • contribs) 14:02, 13 June 2016 (UTC)
 * You're absolutely right about the grammar mistake; I actually it only recently. Enterprisey (talk!) (formerly APerson) 03:21, 14 June 2016 (UTC)


 * But it hasnt changed. Which one is write - "and" or "or" VarunFEB2003 (talk • contribs) 13:59, 14 June 2016 (UTC)
 * And. Enterprisey (talk!) (formerly APerson) 14:02, 14 June 2016 (UTC)

Automation
Can someone teach me how to make the template automatic? - 1.02 editor (talk) 02:59, 9 November 2017 (UTC)
 * , whenever you purge the page, it'll update. You'll have to update the edit count yourself, though. Enterprisey (talk!) 02:22, 10 November 2017 (UTC)

Thanks a lot! -1.02 editor (talk) 04:18, 10 November 2017 (UTC)
 * is there any way to automate the edit counts also? is there a template for that like: or similar?-- ScitDei Wanna talk? 08:42, 30 December 2017 (UTC)
 * If you're talking about some template that would automatically display your edit count, no, that doesn't exist. It's also unlikely that such a template will be created, for the reasons listed at WP:FDB. Enterprisey (talk!) 23:05, 30 December 2017 (UTC)
 * There is in fact a method to programatically update the edit count displayed by this template, in a way that also respects the concerns mentioned by Enterprisey in the comment preceding this one. I've used it judiciously for awhile now and it has performed as intended, nor have I received any subsequent reprimand from the WikiDeities on high. It is as follows:
 * Step 1: On your WikiPedia common.js page place the following JavaScript on its own paragraph (i.e. an empty line should precede it if you already have other text there) and save it. This will add a new link named Edit Counter followed by the current version of the script next to the View, Edit source, New section and History/Your Contributions links at the top of your User page, shown only to you. When you click this new link it will change to read "Processing..." and if all goes well then change to "Success!", meaning that the script edited three subpages in your Userspace, one of them named 'total' whose sole contents are an integer equal to the current count of your total Wikipedia edits, another named 'date' with the date you last clicked the link, and a third described below in step 2. Many other options for the script can be found at its documentation page and all credit goes to WikiPedia member Kanegasi for creating it. My only contributions are determining that with one of the options configured as shown (the line that reads "var subPages = 'true';") it can serve to update this template quite nicely and explaining how I did it here.
 * Step 2: Where you have this template placed on your User page, change its edits section so that it reads like this, replacing  with your WikiPedia username (no angle brackets, naturally). The parent name of the subpages (a/k/a the part of the link with slashes on each side between your username and 'total'), which is now also a cool new page (viewable here after first use if you didn't change it) containing a table breaking down your total edit count by Namespace and the date you last clicked the Edit Counter link, is defined between single quotes on the line of the code starting with var pageName and can be anything you want. I personally have it set to Edit_stats but remember if you change the pageName value in the code you need to change it to match here in the template on your User page as well. Spaces (if you use them in the parent name) in the JavaScript on common.js are represented by underscores, but where you have the template here they're just spaces.
 * With this change the template will now read the contents of that 'total' page whenever someone visits your User page and displays that number as your progress towards the next Service Award instead of being stuck with a fixed value you have to manually edit on your User page itself. This avoids the issue of too many server resources being used by a more sophisticated method that would dynamically calculate your edit count upon every visit to your User page. Instead, it's just transcluding the contents of another Wikipedia page into the template like the system does quite easily many millions of times every day as designed, while also saving us the trouble of having to manually edit the template ourselves to keep it current (and in the process looking rather self-absorbed and pretentious). ;-) Just don't click that Edit counter link at the top of your User page more than once a week, ruining it for all of us by getting the script blacklisted due to abuse, okay? (Server resources are needed for the calculations that generate the updated values plus three kinda-spammy entries in the edit log to save them, remember?) Great! That's why I didn't go so far as to edit this template's documentation to include these instructions, only posting them here instead. Enjoy, everyone.
 * 🐈⚞ℛogueScholar⚟🗨₨UserTalk 23:47, 5 July 2019 (UTC)
 * wow thanks a lot for making the script. Will make sure to use it on my page now. 1.02 editor (T/C) 02:10, 7 July 2019 (UTC)
 * This is an AWESOME script - Thanks so much for making it! I'm always impressed with how creative some of y'all can be :) ThadeusOfNazerethTalk to Me! 16:51, 15 November 2019 (UTC)
 * I placed the above script on my common.js page, but I get Expression errors on the User page template. Any idea what I'm missing? Doghouse09 (talk) 16:17, 8 September 2020 (UTC)
 * Me too. Can you please help? Firestar464 (talk) 07:48, 19 November 2020 (UTC)
 * Belay my last; it finally updated! Thanks! Doghouse09 (talk) 16:39, 8 September 2020 (UTC)
 * Me too. Can you please help? Firestar464 (talk) 07:48, 19 November 2020 (UTC)
 * Belay my last; it finally updated! Thanks! Doghouse09 (talk) 16:39, 8 September 2020 (UTC)

Semi-protected edit request on 14 June 2018
please change "the editing requirement and the time requirement" to "both requirements" 83.28.59.243 (talk) 16:00, 14 June 2018 (UTC)
 * Red information icon with gradient background.svg Not done: If I'm understanding your request correctly, this would require a complete rewrite of the template code to accomplish what appears to be a cosmetic change. If you want to take on that rewrite yourself, you can work on it in the sandbox, and reopen this request when it's completed for further review. &#8209;&#8209; El Hef  ( Meep? ) 17:18, 14 June 2018 (UTC)

Edit count
Can there be a feature on this template so that it shows the correct edit count automatically rather than having to manually update it each time. Pkbwcgs (talk) 16:24, 26 October 2018 (UTC)
 * This is not possible with current software (unless you want a bot to do it, like the admin stats one), and it's unlikely that the feature will be added. Interestingly enough, I had the same question when I made this template almost four years ago, and got the same response then - funny how that works. There's probably also a WP:perennial proposal section about this too, but I'm on a phone. Enterprisey (talk!) 05:12, 28 October 2018 (UTC)

Bug with this template
I am unsure what is going on, but on my userpage the template displays negative progress towards the next level? Is this intentional? I couldn't see where the issue may have come from. Thanks, Dreamy Jazz 🎷 talk to me &#124; my contributions 15:53, 22 December 2018 (UTC)
 * looks just to be a rounding error (see User:Xaosflux/Sandbox25) - though really we don't need that degree of precision on "days" ... — xaosflux  Talk 16:05, 22 December 2018 (UTC)
 * actually looks like a user error :D Check it out now on your page. —  xaosflux  Talk 16:10, 22 December 2018 (UTC)
 * I updated the documentation a little as well. — xaosflux  Talk 16:12, 22 December 2018 (UTC)
 * Thanks, Dreamy Jazz 🎷 talk to me &#124; my contributions 18:03, 22 December 2018 (UTC)
 * Precision on days fixed. Also, thanks for the docs update! Enterprisey (talk!) 20:52, 22 December 2018 (UTC)

There's an issue for mine too

Time since 2006-05-18 is 4849 days total, out of ~5110 (not counting leap days). It should not show 123% completed. &#32; Headbomb {t · c · p · b} 17:31, 10 August 2019 (UTC)


 * Looking at things, it seems that the  is very weird in Service award progress/helper. &#32; Headbomb {t · c · p · b} 17:41, 10 August 2019 (UTC)
 * Fixed. Time was 13 years, not 14. I also added level 20 while I was at it. &#32; Headbomb {t · c · p · b} 17:41, 10 August 2019 (UTC)

Alternative
Based on an editor's comment at the Teahouse, I've made a version of this- since the gender override doesn't fix the conjugation, and thus "they" won't enter properly, my version is just this one with the genders removed (it always says "they") and the grammar corrected. I'm not sure if I'm posting this in he right place. -A la d insane (Channel 2)  18:24, 21 February 2019 (UTC)
 * Not sure why that's necessary. The template respects user preferences on gender. If you mean they conjugation part specifically, I took care of that here. &#32; Headbomb {t · c · p · b} 17:49, 10 August 2019 (UTC)

A bug with this template, seemingly
Hello. I've seen that someone else had a problem with this exact thing, so I'll be brief. The time count for the next level on my page appears to be negative, instead of saying that it's completed. Is this a problem with my page, or the template itself? Thanks. NineFiveSeven (talk) 13:01, 5 December 2019 (UTC)

Minor bug?
For some reason, this template occasionally puts the page it is on into the hidden Category:Pages where expansion depth is exceeded. I determined this template was the culprit when trying to figure out why that was happening on my userpage and testing various options to try and remove it. Here is an example. The first archive of this talk page is in the same category. I found a workaround by adding the parameter, but I'm still wondering what caused this issue. Thanks, Pupsterlove02  talk • contribs 19:33, 11 June 2020 (UTC)
 * Service award progress/level had too many nested  for some users. See . PrimeHunter (talk) 12:35, 7 August 2020 (UTC)

Semi-protected edit request on 9 July 2020
maybe use CURRENTYEAR, CURRENTMONTH1 and CURRENTDAY as defaults? 95.49.9.155 (talk) 14:08, 9 July 2020 (UTC)


 * ❌. Why? That would be contrary to the point of the parameters. –Deacon Vorbis (carbon &bull; videos) 15:25, 9 July 2020 (UTC)

Edit request on 23 July 2020
"Recent" editors: Greetings and felicitations. Would it be possible to add commas to the numbers over 999 (or 9999)) in the "Progress towards the next level (by edits):" line? (Even if I felt that it was an uncontroversial edit, I lack the knowledge and skill to perform it.) —DocWatson42 (talk) 08:19, 23 July 2020 (UTC)
 * Done with .[//en.wikipedia.org/w/index.php?title=Template:Service_award_progress/compose&diff=980296522&oldid=967570503] It adds commas above 999. PrimeHunter (talk) 18:15, 25 September 2020 (UTC)


 * Thank you. ^_^ —DocWatson42 (talk) 01:21, 26 September 2020 (UTC)

Bug report: negative progress % unless substituted
Currently, this editor has earned the Novice Editor service award. To get to the next level, Apprentice Editor, he needs to meet the time requirement.
 * "Novice editor" requires 200 edits and 1 month of service.
 * "Apprentice editor" (the next level) requires 1000 edits and 3 months of service.
 * The following code:  produces a negative progress percentage:

Progress towards the next level (by time): [ 30.5 days / 60.8 days ]

-19.9% completed —[ Alan M 1  (talk) ]— 08:13, 7 August 2020 (UTC)
 * However, if I subst it:  I get the expected 50.2% completion.
 * Service award progress/level had too many nested  and caused Template limits to be broken. Fixed by [//en.wikipedia.org/w/index.php?title=Template:Service_award_progress/level&diff=971652098&oldid=967559312]. PrimeHunter (talk) 12:33, 7 August 2020 (UTC)

Bug report: Count starts over
Greetings and felicitations. If the maximum number of edits is exceeded, the count starts over. E.g., I have 150,245 edits, which exceeds the number necessary for Senior Vanguard Editor (I still have to put in the time, as I have over a year to go), but my edits progress meter reads "1% completed".

—DocWatson42 (talk) 05:57, 13 October 2020 (UTC)
 * The bug appears to be that the edit count requirement should not be shown. 150,000 edits is enough for "Senior Vanguard Editor", so the edit requirement is already met. – Jonesey95 (talk) 16:02, 7 January 2021 (UTC)
 * From what I can parse out of the code from a quick glance, it's giving you the edits needed to reach the next level above Senior Vanguard Editor, despite that level not being met in time. This is due to the dozen edit/time checks not matching up properly. I think a rewrite of the code is in order so that the main template sends all of the relevant data to a /core subpage (i.e. edit count, time, level of each, and maybe the names as well) and it can output the progress chart. Basically, it makes no sense for the template to have to send the edits and time to multiple subpages multiple times for each progress bar. Primefac (talk) 17:59, 11 January 2021 (UTC)
 * Lua may be suitable here, as well. Enterprisey (talk!) 23:53, 11 January 2021 (UTC)
 * I thought I wrote that in my reply, but yeah, that's definitely a possibility. I'm slowly hacking my way through my idea above, but honestly just pitching everything to a module might make more sense. Will keep things updated. Primefac (talk) 02:18, 12 January 2021 (UTC)
 * Thanks for taking a look. Enterprisey (talk!) 03:05, 12 January 2021 (UTC)
 * No problem. Busy week, but will try to look at this again in the next few days. Primefac (talk) 12:39, 16 January 2021 (UTC)


 * Reposting from Wikipedia talk:WikiProject Templates (which Primefac has already seen):
 * "My personal preference, if it can be done, would be to have the template, where applicable, display 'Progress towards the next level' by time and edits in the actual totals, and percentages greater than 100% (in numeric form). E.g., 'Progress towards the next level (by edits): [ 25,001 / 25,000 ]'/'100.0% completed'."
 * —DocWatson42 (talk) 01:27, 28 January 2021 (UTC)
 * Having made a few inroads at coding this, it would extremely simplify the backend. Depending on what params people actually use, they might not even notice. Maybe I'll throw in a few tracking params... Primefac (talk) 02:30, 28 January 2021 (UTC)

✅. Primefac (talk) 18:05, 16 February 2021 (UTC)
 * I'm not certain if it is what you intended when you made the changes (thank you for making them ^_^), but the following is what I get when entering 156,933 edits, rather than percentages greater than 100%, which is what I (and my ego ^_-) would still prefer. In your no doubt copious spare time. ^_- —DocWatson42 (talk) 04:37, 24 March 2021 (UTC)


 * The default setting (prior to overhaul) was to show only if displayall was passed a value. Out of 475 transclusions of this template, only ~60 (or a little more than 10% of) users set the template to show everything-all-the-time. Rather than assume folks didn't know the template could display all values, I made the assumption that they were intentionally not displaying both edits and time, and with >75% of folks using it in that way I did not want to mess it up too much. For you, the easy fix is to just add a displayall param, as seen below.


 * I am, of course, willing to turn that off if consensus determines otherwise. Primefac (talk) 12:54, 24 March 2021 (UTC)
 * I'm afraid I'm only now returning to this page and seeing your last comment. Thank you. ^_^ —DocWatson42 (talk) 05:24, 16 June 2021 (UTC)

Time and edit counters incorrect
I get this:

where y=2021, m=02 and d=13. It still says 0 days. I have 230 edits, but it only says 30. Can you fix that? AnotherEditor144talk contribs 17:44, 14 February 2021 (UTC)
 * See the thread above. It's on my to-do list, just a little further down. Primefac (talk) 18:17, 14 February 2021 (UTC)
 * For what it's worth, I misread question. This template isn't showing your current edits/days, it's showing how many more you need to reach the next level. That's why it shows "small" numbers like 30 when the edit count is 230.  Primefac (talk) 18:16, 16 February 2021 (UTC)
 * Ok. I know now. AnotherEditor144talk contribs 09:14, 18 February 2021 (UTC)

Problem with the edit count
The edit count is not accurate:

The edit count displayed by the template is always one less than the "edits" parameter. — Preceding unsigned comment added by Wallglobemat (talk • contribs) 12:01, 16 June 2021 (UTC)
 * First off, that's not the correct use; every parameter is named, so it would need to be 2020, 1, etc. Second, it is performing exactly as expected, as described in this section above, namely that is shows number of edits to the next level. Since Novice Editor requires 200 edits, and they already have 1 edit, they have 199 to go (and have done 0 of those 199). Primefac (talk) 12:23, 16 June 2021 (UTC)
 * Another question: Why does the time to get Novice Editor status have a value of 29.5 instead of 30? Wallglobemat (talkand contribs) 19:21, 16 June 2021 (UTC)
 * Couldn't tell you for sure, but if I had to guess it's because over the course of a year "1 month" averages out to 30.5 days, and since you only need 1 day to get Registered Editor, Novice only needs 29.5 more. Primefac (talk) 20:21, 16 June 2021 (UTC)
 * I'm still at Registered Editor, even though the required 200 edits and 29.5 days are already finished. Wallglobemat (talkand contribs) 00:11, 17 June 2021 (UTC)
 * No you're not? Try purging your cache. Primefac (talk) 00:54, 17 June 2021 (UTC)
 * displayall=yes worked. Wallglobemat (talkand contribs) 11:29, 17 June 2021 (UTC)

Another problem with the edit count
Hi there! I stumbled across this template on User:Qwerfjkl where  incorrectly displays the template below.

I tried adding yes, but that doesn't fix the issue:

Shouldn't this editor already be at Apprentice Editor, working on Journeyman Editor? Thanks! GoingBatty (talk) 00:28, 27 June 2021 (UTC)
 * Yes. The templates and the system this template is based on were changed recently, and I'm honestly not sure that all of the changes actually made it into this template. I haven't had a chance to double-check all of the changes to figure out if they're actually proper, but I'll get to it as soon as I can. Primefac (talk) 01:01, 27 June 2021 (UTC)
 * Issues should be fixed. Spent the day converting everything to use a module. That being said, I haven't managed yet to figure out how to format the numbers like they were before, so if anyone wants to chip in on that feel free. Primefac (talk) 00:28, 28 June 2021 (UTC)

Hebrew And Only 1 Progress Bar
Is there a reason it says "Hebrew" instead of "he" and why is there only 1 progress bar shown? Please let me know if there are other problems with this. — Preceding unsigned comment added by MrAgentSochi (talk • contribs) 23:23, 5 July 2021 (UTC)
 * It appears your code is invoking the template, which redirects to Template:Lang-he, which indicates to readers the original form of a term or phrase in Hebrew. Instead, I suggest you simply use


 * Only the time progress bar is shown because you have already met the time requirement. To see both progress bars, add   to the template on your user page. Happy editing!  GoingBatty (talk) 01:24, 6 July 2021 (UTC)
 * Thanks for the help! MrAgentSochi (talk) 01:30, 6 July 2021 (UTC) MrAgentSochi
 * I know you've got this sorted now, but it's always a better idea to use the main template than try and invoke the module directly - definitely saves on mistakes since the template does all the work for you! Primefac (talk) 21:18, 6 July 2021 (UTC)

Edit Automation
@Enterprisey Is there any way, I can automate the edit counter? Or else what is the edit count url link? ― ItcouldbepossibleTalk 15:08, 19 December 2021 (UTC)


 * @Itcouldbepossible, the community has rejected automating the edit counter. I suggest updating it infrequently. The edit count url link is a parameter to customize which edit counter you want to use. I can't think of any useful purpose for it. Enterprisey (talk!) 03:39, 20 December 2021 (UTC)

I'm sorry for editing this template.
I have been accidentally editing the entire template, instead of just my award progress counter. I am so sorry for any errors this may have caused. I have realized my mistake and will try my best to never do this again. ERBuermann (talk) 13:46, 2 November 2022 (UTC)

Weird faded bar in edit count
Not sure if I'm the only one noticing this, but on the edit count bar, there is a faded grey bar, as well as the normal green bar. What is the meaning of this faded grey bar? Been confused about it for a while now. Please ping me when you respond, as I don't have this page watchlisted. Thanks! Yoshi24517 Chat   Online  01:21, 3 February 2023 (UTC)


 * @Yoshi24517 I do not see a grey bar on my end on both your user page or my own. I have also checked in vector2022 and well as vector 2010. Could you describe the issue more? On your template you have a green bar for days to next level and an empty one for edits to next level. Paulpat99 (talk) 03:44, 3 February 2023 (UTC)


 * Hmmm. I'll have an image in a while or so. Yoshi24517  Chat   Online  05:33, 3 February 2023 (UTC)
 * Paulpat99 Here's what I am seeing: [[File:Service award progress grey faded bar example.png]] The thing I am seeing is circled. Hope this helps. Yoshi24517  Chat   Online  05:43, 3 February 2023 (UTC)
 * @Yoshi24517 That is literally the other bar. One is for edits to next level other for time to next level. Its grey cause you haven't made progress yet. Paulpat99 (talk) 06:25, 3 February 2023 (UTC)
 * @Paulpat99 I updated my template to 13,000, and now the 25% edit progress green bar is there, but just after the end of it is the little grey bar. I'm surprised you don't see this. Don't get me wrong, I'm not trying to attack you, its just a bit weird that its there and (maybe?) nobody else understands it. At first I thought the grey bar was "auto updating" meaning it would move as you make edits, but then I look at it before I updated it from 12,000 to 13,000 and realize that didn't match up. So now I'm just confused. Yoshi24517  <sup style="color:black;font-family:'Genshin Impact'">Chat  <sub style="margin-left:-4.4ex"> Online  19:10, 3 February 2023 (UTC)
 * @Yoshi24517 Oh damn yeah I see the grey bar now. I had to look a bit closer on my screen. Apologies I didn't see this earlier. Paulpat99 (talk) 21:26, 3 February 2023 (UTC)
 * Extra note: I had a person on IRC look into it as well. I took a look at the actual module code for it (found here), it looks like the code for it is rightBar, which we believe is kinda broken for the time being, but it is there. Yoshi24517  <sup style="color:black;font-family:'Genshin Impact'">Chat  <sub style="margin-left:-4.4ex"> Online  19:29, 3 February 2023 (UTC)

Percentage Progress to Three Significant Digits?
I'd like a more "real time" tally, even via purging the cache weekly, daily, whatever. Are finer Significant figures technically feasible? Tnx. kencf0618 (talk) 23:11, 25 November 2023 (UTC)
 * Percent is already shown at 3 sig figs, and I see no reason to make it 4. There is no way to have any sort of "auto refresh" (even our templates like Clock require a refresh to show the most accurate value). So I guess I'm not entirely sure what you're asking. Primefac (talk) 13:10, 26 November 2023 (UTC)


 * I'm not talking about a real-time counter —purges are fine by me. And sorry if I was unclear... I thinking of three significant digits to the right of the decimal point. As a matter of design philosophy, the progress counters to my mind isn't granular enough. I've been stuck at 1831/4000 edit count and 45.8% (45.800%) progress to Veteran Editor IV for quite a while, and I'm beginning to suspect that I'm missing something obvious... kencf0618 (talk) 15:50, 27 November 2023 (UTC)
 * Edit counts need to be manually updated. Primefac (talk) 19:28, 27 November 2023 (UTC)
 * I've been doing that for a few days now thanks to the help here. For purposes of actually autistic finer granularity and thrills I would still like to see the three digits to the right of the decimal point, even if the penultimate or ultimate are zero. E.g., 2958 edits towards 4000 yields 73.950% progress. Thx. kencf0618 (talk) 14:49, 1 December 2023 (UTC)