Template talk:High-use

Latest comment: 1 day ago by MSGJ in topic Two requests

Round percentage

edit

Apparently I have to discuss this per WP:BRD. I was planning on making the % round to nearest tenth for months when I was reverted :(

I figured a way how to do this but someone disagreed with my change.

This meant my change was CONTROVERSIAL (I have to discuss this as an OOPS defense). I was planning to discuss this but I decided to be bold and do it.

So I was wondering, "should we change the % to round to the nearest tenth or add a parameter where you can set the number of decimal places to round to?" Sheep (talkhe/him) 15:26, 23 February 2023 (UTC)Reply

should we change the % to round to the nearest tenth or add a parameter where you can set the number of decimal places to round to? No.
Most often these days, the count value in the percentage calculation that you modified comes from one of the modules listed at Special:PrefixIndex/Module:Transclusion count/data/. If you look in any of those modules you will see that the values are listed as some multiple of 100. When the percentage is rendered by {{high-use}}, the percentage is qualified with the term 'roughly'. Rendering the percentage more precise than 1% is more-or-less meaningless.
Further, most use of this template is in Template and Module name spaces. Most templates and modules are used only in mainspace so calculating percentage use across every page in the whole of en.wiki is meaningless. At present there are 61,884,258 pages in the whole of en.wiki whereas there are 6,914,183 articles. If any improvement were to be made to this percentage rendering, it would be to replace {{NUMBEROFPAGES}} with {{NUMBEROFARTICLES}} in the percentage calculation. I have said before that we should abandon the percentage calculation. My opinion on that score has not changed.
And yeah, 'twas I who reverted the change.
Trappist the monk (talk) 16:06, 23 February 2023 (UTC)Reply

Edit request 25 April 2024

edit

Description of suggested change:

Add the fragment #transclusions to the link to https://linkcount.toolforge.org. Adding the fragment highlights the row with transclusions when the link counts page is loaded, making it easier to identity the relevant numbers.

Diff: Sandbox edit

https://linkcount.toolforge.org/index.php?project=%s&page=%s
+
https://linkcount.toolforge.org/?project=%s&page=%s#transclusions

Example:

BrandonXLF (talk) 09:32, 25 April 2024 (UTC)Reply

  Completed. {{High-use|demo=High-use}}: P.I. Ellsworth , ed. put'er there 12:41, 25 April 2024 (UTC)Reply

Linking to Help:Template from documentation of templates

edit
 – Moved there, because the original idea of updating {{High-use}} has transformed into updating {{Documentation}}, so Template talk:Documentation is a better location for the discussion. —⁠andrybak (talk) 21:08, 14 August 2024 (UTC)Reply

Template-protected edit request on 3 September 2024

edit

Line 90:

-- This retrieves the project URL automatically to simplify localiation.

to

-- This retrieves the project URL automatically to simplify localization. Just a typo. Qwerty284651 (talk) 13:56, 3 September 2024 (UTC)Reply

Two requests

edit
  1. Can we make a function which can be called from another module please?
  2. Can we have the function default to not outputting anything if the number of transclusions is low (i.e. <2000)?

— Martin (MSGJ · talk) 12:27, 20 November 2024 (UTC)Reply