Template talk:Service award progress

Active discussions

Tweaking neededEdit

Progress to next lvl should be shown both by edit requirement and time requirement--VarunFEB2003 (talk) 14:36, 2 June 2016 (UTC)[]

VarunFEB2003, if you're talking about how the template hides one of the progress bars sometimes, you can force it to display both with displayall=yes. Enterprisey (talk!(formerly APerson) 16:39, 2 June 2016 (UTC)[]

A suggestion for changeEdit


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 (talkcontribs) 09:36, 12 June 2016 (UTC)[]

Is there a reason why you're shouting? CassiantoTalk 10:21, 12 June 2016 (UTC)[]
Try this:

Lua error in Module:Service_award_progress at line 113: attempt to compare number with nil.

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)[]
@Enterprisey: 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 Wikipedia:Service awards says a user needs to meet both to move ahead. Moreover i still didnt like the display VarunFEB2003 (talkcontribs) 14:02, 13 June 2016 (UTC)[]
You're absolutely right about the grammar mistake; I actually fixed it only recently. Enterprisey (talk!(formerly APerson) 03:21, 14 June 2016 (UTC)[]
@Enterprisey: But it hasnt changed. Which one is write - "and" or "or" VarunFEB2003 (talkcontribs) 13:59, 14 June 2016 (UTC)[]
And. Enterprisey (talk!(formerly APerson) 14:02, 14 June 2016 (UTC)[]


Can someone teach me how to make the template automatic? - 1.02 editor (talk) 02:59, 9 November 2017 (UTC)[]

1.02 editor, 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:{{user edit counts}} or similar?--~~ ScitDeiWanna 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#Bots to update edit counts. 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.
if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) {
var pageName = 'Edit_stats';
var subPages = 'true';
} // Backlink: [[User:Kanegasi/editcounter]]
Step 2: Where you have this template placed on your User page, change its edits section so that it reads like this, replacing <Your username> 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.
{{Service award progress|year=####|month=##|day=##|edits={{User:<Your username>/Edit stats/total}}}}
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.
@1.02 editor: 🐈⚞ogueScholar⚟🗨₨UserTalk 23:47, 5 July 2019 (UTC)[]
@RogueScholar: 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)[]
@RogueScholar: 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)[]
RogueScholar 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 2018Edit

please change "the editing requirement and the time requirement" to "both requirements" (talk) 16:00, 14 June 2018 (UTC)[]

  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. ‑‑ElHef (Meep?) 17:18, 14 June 2018 (UTC)[]

Edit countEdit

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 templateEdit


@Enterprisey: 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 | my contributions 15:53, 22 December 2018 (UTC)[]

@Dreamy Jazz: 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)[]
@Dreamy Jazz: 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 | 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

Currently, this editor has earned the Grandmaster Editor First-Class service award.

To get to the next level, Vanguard Editor, they need to meet the time requirement.
Progress towards the next level (by time): [ 519.5 days / 730.5 days ]

71.1% completed


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

Looking at things, it seems that the timetolevel is very weird in {{Service award progress/helper}}. 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. Headbomb {t · c · p · b} 17:41, 10 August 2019 (UTC)[]


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 lainsane (Channel 2) 18:24, 21 February 2019 (UTC)[]

@A lad insane: 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. Headbomb {t · c · p · b} 17:49, 10 August 2019 (UTC)[]

A bug with this template, seeminglyEdit

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?Edit

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 |displayall=yes, but I'm still wondering what caused this issue. Thanks, Pupsterlove02 talkcontribs 19:33, 11 June 2020 (UTC)[]

{{Service award progress/level}} had too many nested #ifexpr for some users. See #Bug report: negative progress % unless substituted. PrimeHunter (talk) 12:35, 7 August 2020 (UTC)[]

Semi-protected edit request on 9 July 2020Edit

maybe use {{CURRENTYEAR}}, {{CURRENTMONTH1}} and {{CURRENTDAY}} as defaults? (talk) 14:08, 9 July 2020 (UTC)[]

  Not done. Why? That would be contrary to the point of the parameters. –Deacon Vorbis (carbon • videos) 15:25, 9 July 2020 (UTC)[]

Edit request on 23 July 2020Edit

@Deacon Vorbis, Pupsterlove02, Headbomb, and PrimeHunter: "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)[]

@DocWatson42: Done with {{formatnum:}}.[1] It adds commas above 999. PrimeHunter (talk) 18:15, 25 September 2020 (UTC)[]
@PrimeHunter: Thank you. ^_^ —DocWatson42 (talk) 01:21, 26 September 2020 (UTC)[]

Bug report: negative progress % unless substitutedEdit

  • "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: {{Service award progress|year=2020|month=6|day=7|edits=2500}} produces a negative progress percentage:
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.

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

-19.9% completed
  • However, if I subst it: {{subst:Service award progress|year=2020|month=6|day=7|edits=2500}} I get the expected 50.2% completion.

—[AlanM1 (talk)]— 08:13, 7 August 2020 (UTC)[]

{{Service award progress/level}} had too many nested #ifexpr and caused Wikipedia:Template limits#Highest expansion depth to be broken. Fixed by [2]. PrimeHunter (talk) 12:33, 7 August 2020 (UTC)[]

Bug report: Count starts overEdit

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".

Currently, this editor has earned the Vanguard Editor service award.

To get to the next level, Senior Vanguard Editor, they need to meet the time requirement.
Progress towards the next level (by time): [ 643 days / 730.5 days ]

88% 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#Extra carriage return after "Template:FM station data" (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)[]

  Done. Primefac (talk) 18:05, 16 February 2021 (UTC)[]

@Primefac: 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)[]
Currently, this editor has earned the Vanguard Editor service award.

To get to the next level, Senior Vanguard Editor, they need to meet the time requirement.
Progress towards the next level (by time): [ 643 days / 730.5 days ]

88% completed


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.
Example with displayall=yes
Currently, this editor has earned the Vanguard Editor service award.

To get to the next level, Senior Vanguard Editor, they need to meet the time requirement.
Progress towards the next level (by edits): [ 24933 / 18000 ]

138.5% completed


Progress towards the next level (by time): [ 643 days / 730.5 days ]

88% completed


I am, of course, willing to turn that off if consensus determines otherwise. Primefac (talk) 12:54, 24 March 2021 (UTC)[]
@Primefac: 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 incorrectEdit

I get this:

Currently, this editor has earned the Novice Editor service award.

To get to the next level, Novice Editor, level 2, they need to meet the editing requirement.
Progress towards the next level (by edits): [ 30 / 200 ]

15% completed


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? AnotherEditor144 talk 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 your 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. AnotherEditor144 talk contribs 09:14, 18 February 2021 (UTC)[]

Problem with the edit countEdit

The edit count is not accurate:

Currently, this editor has earned the Novice Editor service award.

To get to the next level, Novice Editor, level 2, they need to meet the editing requirement.
Progress towards the next level (by edits): [ 63 / 200 ]

31.5% completed


{{service award progress|2020|1|1|1}}
The edit count displayed by the template is always one less than the "edits" parameter. — Preceding unsigned comment added by Wallglobemat (talkcontribs) 12:01, 16 June 2021 (UTC)[]

First off, that's not the correct use; every parameter is named, so it would need to be |year=2020, |month=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 countEdit

Hi there! I stumbled across this template on User:Qwerfjkl where {{Service award progress|year=2021|month=02|day=19|edits=9220}} incorrectly displays the template below.

Currently, this editor has earned the Journeyman Editor, level 2 service award.

To get to the next level, Journeyman Editor, level 3, they need to meet the time requirement.
Progress towards the next level (by time): [ 13.9 days / 45.5 days ]

30.5% completed


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

Currently, this editor has earned the Journeyman Editor, level 2 service award.

To get to the next level, Journeyman Editor, level 3, they need to meet the time requirement.
Progress towards the next level (by edits): [ 6720 / 500 ]

1344% completed


Progress towards the next level (by time): [ 13.9 days / 45.5 days ]

30.5% completed


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 BarEdit

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.

Currently, this editor has earned the Novice Editor, level 2 service award.

To get to the next level, Novice Editor, level 3, Hebrew: Service award progress‎ needs to meet the editing requirement.
Progress towards the next level (by edits): [ 87 / 200 ]

43.5% completed


— Preceding unsigned comment added by MrAgentSochi (talkcontribs) 23:23, 5 July 2021 (UTC)[]

@MrAgentSochi: It appears your code is invoking the template {{he}}, 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 {{Service award progress|year=year|month=6|day=14|edits=487|genderoverride=he}}
Currently, this editor has earned the Novice Editor, level 2 service award.

To get to the next level, Novice Editor, level 3, he needs to meet the editing requirement.
Progress towards the next level (by edits): [ 87 / 200 ]

43.5% completed


Only the time progress bar is shown because you have already met the time requirement. To see both progress bars, add |displayall=yes 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)[]
Return to "Service award progress" page.