Template talk:User humility

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconEditor Retention
WikiProject iconThis template is within the scope of WikiProject Editor Retention, a collaborative effort to improve the coverage of efforts to improve editor retention on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
WikiProject iconUserboxes
WikiProject iconTemplate:User humility is part of WikiProject Userboxes. This means that the WikiProject has identified it as part of the userboxes system. WikiProject Userboxes itself is an attempt to improve, grow and standardize Wikipedia's articles and templates related to the userbox system, used on many users' pages. We need all your help, so join in today!

Please select "New section" above to post your comments below:

Future revision[edit]

This template should be updated when the number of articles on the English language Wikipedia exceeds 10,000,000.  Buaidh  16:12, 17 March 2014 (UTC)[reply]

Help[edit]

Instead of a percentage, I'm getting "9.0×10−5%" on my user page. Is there something wrong with the code? I know that I only have made 4 pages, but it would be nice if the percentage would be "many" zeros with breaks to fit the square. (tJosve05a (c) 18:10, 16 January 2014 (UTC)[reply]

@Josve05a: Hi, it seems to start working at 5. Hurry and create a page! :) I know that's not much help. Buaidh seems to have some knowledge in this area. Cyphoidbomb (talk) 19:27, 16 January 2014 (UTC)[reply]
At present there are about 4426000 articles on English Wikipedia. 9.0×10−5% of that is 4 articles, which agrees with what you have listed at User:Josve05a/pages. Perhaps the problem is that you don't recognise numbers in Standard form. If so, 9.0×10−5 = 0.000090. JamesBWatson (talk) 21:24, 16 January 2014 (UTC)[reply]
JamesBWatson, Why don't just write 0.000090% in the template?
Because 9.0×10−5 is shorter. The number format templates are made to work with arbitrarily large (or small) numbers, which requires some form of advanced notation. Huon (talk) 22:12, 16 January 2014 (UTC)[reply]
It's not only shorter, but also easier to follow. Looking at 0.000000000000673, you can tell at a glance that it's pretty small, but unless you count all the zeroes it's impossible to tell how small. 6.73×10−13, however, indicates immediately how small a number we are dealing with. JamesBWatson (talk) 16:50, 17 January 2014 (UTC)[reply]
My apologies. I originally failed to test this template for numbers of articles less than five. I have made the necessary changes. Yours aye,  Buaidh  16:17, 17 March 2014 (UTC)[reply]
Thanks! (tJosve05a (c) 16:28, 17 March 2014 (UTC)[reply]

Add link to list of new articles?[edit]

Thank you for this wonderful user box!

I folded in a feature from Template:User articles created which hyperlinks from the number to a list of the created pages.

Here's the result: User:Econterms/ubox

I would like to either (1) add this feature to this template, or (2) create a Template:User humility 2 that has this feature. My knowledge of templates is not great, and maybe I messed something up. Humility is appropriate. So the safest thing is to just leave it where it is. What would be best? -- econterms (talk) 02:23, 2 July 2014 (UTC)[reply]

I think this feature will be a valuable addition to this template.  Buaidh  15:34, 18 July 2014 (UTC)[reply]

Wording quietly changed to "active" articles only, after 8 years; userbox overflow issues[edit]

I was working out why my page creation count at https://xtools.wmflabs.org/pages/en.wikipedia.org/Dan%20Harkless/all/all was 2 lower than I expected (turns out https://xtools.wmflabs.org/ec/en.wikipedia.org/Dan%20Harkless includes counts of deleted pages where the former link claims 0 Deleted), and while I was at this, I was surprised to notice that Template:User humility and Template:User humility pages had been quietly changed last month so that the text now only refers to "active" articles and pages (e.g. no mention in the docs that the textual definition of the figures was different for most of the lifetime of the userboxes, even though there are over 500 existing users).

@Buaidh: As the creator of these templates, it's certainly your prerogative to change them at will, and I guess if the way the figures are calculated has always been based on the total active articles and pages, I can see why you'd change it unconditionally, rather than making the new text selectable with a non-default "|active=1" parameter or something. However, I'm sure I'm not the only one of the 500+ users that included now-deleted articles and pages in their counts, and didn't realize that the wording in the boxes had changed out from under them.

Unless you strongly object, I would like to add a new optional "|active=" parameter that people can set to 0/n/no/N/No/NO if they want to go back to the original wording in their use of the boxes. I realize that if the calculation is based on active rather than total articles and pages, someone using the original wording of the template is technically displaying an incorrect percentage, but when you've created only 4 articles, doing the calculation with 6,000,000 vs. 6,000,001 as the total (not sure how much higher it'd be if it were the full total with all deleted articles included, rather than just one's own) doesn't seem like a significant inaccuracy.

Also, not strictly related, but there are issues with the percentages as they're currently calculated / displayed in any case. For some reason, trailing zeroes are sometimes displayed, as in:


I tried to look at fixing this a little while back, in part because on my Linux system (using Firefox, and with all the standard fonts installed, plus the major optional ones like Google Noto), counts of 1–2 digits for {{User humility}}, and 1–3 digits for {{User humility pages}} cause the contents of the userboxes to escape out the right side. I didn't immediately understand the way the calculations were being done in the template code, so as a workaround, I added text to the template documentation pages noting that one can use standardized template parameters like id-s and info-s to change the font sizes, as I've done on my user page to fix the overflow, but I'm surprised to see that you've deleted all that text. Is there a preferred way you'd like users of the boxes to deal with the content overflow issue?

Thanks,
Dan Harkless (talk) 01:16, 15 August 2019 (UTC)[reply]

Thanks for your input Dan. I changed the wording to match the Template:User active ??? series. I use the https://xtools.wmflabs.org/pages/en.wikipedia.org/Buaidh/all/all tool to calculate the active pages after the deleted pages and redirects have been removed. I'll take a look at your problems. Yours aye,  Buaidh  talk contribs 03:40, 15 August 2019 (UTC)[reply]
I added an active= parameter to both templates. The trailing zero is intentional. I don't know if this fixes your problem on Linux. I have 7,277 pages in article space, but 6,539 are redirects and 64 have been deleted. See User:Buaidh#English_language_Wikipedia. Yours aye,  Buaidh  talk contribs 04:13, 15 August 2019 (UTC)[reply]
Thanks, Buaidh! I'd expected you to fight back on my suggestion of making |active=no the default to match historical behavior. 😊
And no, this doesn't address the issue of the contents of the userbox overflowing on my (and no doubt many others') Linux system(s), as that happens regardless of whether the extra word is present. Thanks for the note on the trailing zero being intentional; I guess that makes sense if the number of significant figures is calculated prior to rounding. But again with this, the box overflow happens regardless of whether that trailing zero is there.
If |id-s=8 is used for {{User humility}} and |id-s=7 is used for {{User humility pages}}, the overflow is prevented regardless of how many digits are in the user's count. For now, unless you object, I'm going to hardcode those font sizes (allowing them to be overridden if the user supplies |id-s= parameters) into the templates, and restore my documentation that the user can supply the standardized template parameters including |id-s= if desired.
If you'd like to get more fancy in the future, you could calculate the value of the |id-s= based on how many significant figures there are. If you'd like me to do some testing to give you a correlation of number of count digits / significant figures to needed font sizes to prevent box overflow on Linux, just me know. Thanks. --Dan Harkless (talk) 02:48, 20 August 2019 (UTC)[reply]
Thanks Dan. This problem only seems to be affecting Linux users. I would like to keep the current formating for Windows and Apple users. Yours aye,  Buaidh  talk contribs 22:32, 24 August 2019 (UTC)[reply]