Template talk:Service awards
Wondering
editHow cool would it be if this template could update itself based on the editor's registration date and edit count? How possible would it be?--~TPW 22:42, 7 March 2010 (UTC)
- As possible as the existance of parser functions that give the editor's registration date and edit count. However, the registration date is constant so there is no need and the edit count parser function has not been implemented here. All in all, it is definitely possible. Set Sail For The Seven Seas 6° 30' 30" NET 00:26, 8 March 2010 (UTC)
- Thanks for the thorough response!--~TPW 03:39, 8 March 2010 (UTC)
Alignment
editSure would like to be able to align ribbons. Svanslyck (talk) 23:34, 10 May 2010 (UTC)
- See this page. Hope this helps. Set Sail For The Seven Seas 336° 17' 29" NET 22:25, 9 June 2010 (UTC)
Default award
editWhy is the "default" award for this template Master Editor II? Jayjg (talk) 03:39, 28 May 2010 (UTC)
- He's right. If you enter a blank template - {{service awards}} - you get:
{{service awards}} (outdated result) kcylsnavS{screechharrass} 23:01, 28 May 2010 (UTC)
- Yes, but is there a reason? Jayjg (talk) 00:25, 31 May 2010 (UTC)
- Yesterday's IP editor seems to have discovered the problem, but was reverted, probably because his change created an error. I'll change the template instead so the default is the minimum award. As it stands, the parameter used makes little sense. Jayjg (talk) 01:16, 1 June 2010 (UTC)
- Actually, both the presence of the {{NUMBEROFEDITS}} variable and the error message are deliberate features. The purpose was to have the default award be the highest possible award that one could achieve. However, I am now considering adding extra code that will give an error message if certain parameters are not given. Thanks. Set Sail For The Seven Seas 329° 22' 15" NET 21:57, 9 June 2010 (UTC)
- This extra code is now active on the template. Set Sail For The Seven Seas 288° 20' 0" NET 19:13, 10 June 2010 (UTC)
- That works well, thanks! Jayjg (talk) 23:07, 10 June 2010 (UTC)
- This extra code is now active on the template. Set Sail For The Seven Seas 288° 20' 0" NET 19:13, 10 June 2010 (UTC)
- Actually, both the presence of the {{NUMBEROFEDITS}} variable and the error message are deliberate features. The purpose was to have the default award be the highest possible award that one could achieve. However, I am now considering adding extra code that will give an error message if certain parameters are not given. Thanks. Set Sail For The Seven Seas 329° 22' 15" NET 21:57, 9 June 2010 (UTC)
- Yesterday's IP editor seems to have discovered the problem, but was reverted, probably because his change created an error. I'll change the template instead so the default is the minimum award. As it stands, the parameter used makes little sense. Jayjg (talk) 01:16, 1 June 2010 (UTC)
- Yes, but is there a reason? Jayjg (talk) 00:25, 31 May 2010 (UTC)
Grognard categories
editApparently there were duplicate Grognard categories existing, and the ones used by this template was were deleted yesterday, so I found the proper ones and changed the code to link to them. Hope I didn't screw anything up. --| Uncle Milty | talk | 15:14, 12 July 2010 (UTC)
- Nope, nothing got screwed up! Set Sail For The Seven Seas 277° 6' 15" NET 18:28, 19 September 2010 (UTC)
A couple things
editThere are two things that need to be fixed with this template. First, the newest level, Signator, should be added. Second, the second and third Grognard levels need to be fixed; the names for the levels are not correct. I'd do this, but I'm afraid that I would break something. :) ~~ Hi878 (Come shout at me!) 18:19, 27 August 2010 (UTC)
- Done - The template has been updated to reflect the recent changes. Hope this helps. Set Sail For The Seven Seas 277° 22' 30" NET 18:29, 19 September 2010 (UTC)
- Thank you. ~~ Hi878 (Come shout at me!) 17:49, 11 October 2010 (UTC)
Bug?
editLatest edit must have introduced some error (or it was always there). I think it happens when the day is equal to today, for instance:
{{service awards|year=2007|month=10|day=21|edits=12000|format=ubxmedal}}
This editor is a Veteran Editor II and is entitled to display this Bronze Editor Star. |
(Display "Sorry, you don't have enough edits or haven't been on Wikipedia long enough!")
Note that this will probably work well tomorrow, today, 2010-09-21 it does not work. Changing day to 22 solves the problem. --Muhandes (talk) 19:36, 21 September 2010 (UTC)
- Interesting. I'll check that out. Thanks. Set Sail For The Seven Seas 295° 2' 30" NET 19:40, 21 September 2010 (UTC)
- Fixed - It seems I didn't implement the new code properly. Anyway, it should be working fine now. Thanks. Set Sail For The Seven Seas 299° 2' 45" NET 19:56, 21 September 2010 (UTC)
- It works well, thank you. --Muhandes (talk) 23:39, 21 September 2010 (UTC)
- Fixed - It seems I didn't implement the new code properly. Anyway, it should be working fine now. Thanks. Set Sail For The Seven Seas 299° 2' 45" NET 19:56, 21 September 2010 (UTC)
Users in waiting
editWhen I was looking at the categories for the service awards, I was wondering about the usefulness of a series of categories like Category:Rocambolesque Bordonths in waiting? This would be used for editors that have the number of edits required but not the service time. It would also populate these in waiting award categories so that deletion discussions can be avoided since all of these categories would be populated. Yea, this could place an editor in several future categories, but would that be a problem? I suspect that the problem would be, is there an easy way to implement this in the template code? If the code was changed, I would set up the subcategories. Another option would be to only place the editor in the in waiting category for the number of edits if different then their current category. Vegaswikian (talk) 23:37, 11 August 2011 (UTC)
- Of course, maybe I can do that in the sandbox. I've to check the list of Wikipedia's most active users in terms of edits first. A\/\93r-(0la 03:31, 12 August 2011 (UTC)
Changes on 2012-02-19
editI've just made some major changes to this template. For those who are interested, the changes I made are:
- Split most of the logic into Template:Service awards/core to reduce the repetition of date calculation templates. These made the code hard to understand and were more work for MediaWiki to parse. The date calculation is now done once in Template:Service awards, and the result is passed into the /core template.
- Added support for the top two service awards, which were previously unsupported.
- Changed the required edit counts and durations of service to match those at Wikipedia:Service awards. This mainly affects the higher levels of award.
- Changed the wording of some of the default captions to match those used by the other templates. Again, this mainly affects the higher levels of award.
– PartTimeGnome (talk | contribs) 20:54, 19 February 2012 (UTC)
alternatives
editI like this template a lot but I notice it doesn't support the "Ecce Lux" ribbon alternatives for the Tutnum ranks. Could someone help on this? Chris Troutman (talk) 00:54, 24 January 2014 (UTC)
- Done. Use the
format=ribbon2
parameter. These ribbons are a mix of different sizes, but the template will resize them all to 120px wide. You can change the size it uses by passing thesize=NNpx
parameter. – PartTimeGnome (talk | contribs) 22:03, 24 January 2014 (UTC)
Text-wrapping
editIs there a parameter for text-wrapping? I want my template to not wrap text; I'm currently using line breaks as a workaround. —Bobbychan193 (talk) 01:06, 8 August 2019 (UTC)
Proposal to add incremental awards to this template
editI have made it so that the incremental award ribbons are shown on {{Service awards/sandbox}} and I have done this by changing {{Service awards/core}}, {{Service awards/compose}} and removed the need for {{Service awards/select/sandbox}} and instead use Module:SelectServiceAward since it is simpler and the template stopped working after there were too many nested if statements. I was wondering if anyone objected to me implementing this to the main template, thanks. Terasail[Talk] 15:42, 16 October 2020 (UTC)
- @Terasail: I am not conversant in Lua, much less fluent. Is there a way to write the code so that display of the incremental awards is optional? If that would be too difficult, don't worry about it. — Jkudlick ⚓ t ⚓ c ⚓ s 14:50, 21 October 2020 (UTC)
- @Jkudlick: It is definitely possible, I haven’t used lua in about 2 years before I made this so it probably could be done better. I will look into adding it later. Terasail II[Talk] 15:02, 21 October 2020 (UTC)
- @Jkudlick: I added
|noinc=
to the award and if set to "yes" then the incremental awards will not show as ribbons. Do you think it is ok to add these changes now?Terasail[Talk] 14:22, 28 October 2020 (UTC)
- @Jkudlick: I added
- @Jkudlick: It is definitely possible, I haven’t used lua in about 2 years before I made this so it probably could be done better. I will look into adding it later. Terasail II[Talk] 15:02, 21 October 2020 (UTC)
Text is messed up when ubxbook option is used
editThe text is messed up when the ubxbook option is used
{{service awards|year=2020|month=3|day=12|edits=1|format=ubxbook}} for example, shows as
This editor is a Signator and is entitled to display this Scroll of Signatures. |
with [[Wikipedia:Service awards#Registered Editor (or )|]] visible. The transclusion of the userbox has been messed up somehow. The first four ranks, to Grognard are affected. Grognard Extraordinaire is fine and those after it. I'm not sure where the problem is. --NoSnakesInIreland (talk) 17:57, 12 March 2021 (UTC)
this user is an ....
editCurrently its displaying with the text
- This user is an...
even before consonants, which is incorrect. There are no recent edits to this template, so I assume the problem is buried within the code. Can someone help? Thanks, —Soap— 23:13, 11 May 2021 (UTC)
also
editIt's a bit odd that this is within the scope of WikiProject Awards, .... isnt that a mainspace project? Should this have been linked to Wikipedia:WikiProject Wikipedia Awards instead or did one subsume the other? —Soap— 16:56, 16 May 2021 (UTC)
Please check
editI just updated for the new Sagacious Editor level, and I was hoping that someone who knows the template inner workings a bit better than I can test it to make sure I didn't miss something. Much thanks. VanIsaac, GHTV contWpWS 00:42, 14 January 2023 (UTC)