Template talk:High-use
Appearance
This is the talk page for discussing improvements to the High-use template. |
|
Archives: 1Auto-archiving period: 4 months |
To help centralize discussions and keep related topics together, Template talk:High-risk redirects here. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
Template:High-use is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
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)
Template-protected edit request on 3 September 2024
[edit]This edit request to Module:High-use has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Two requests
[edit]- Can we make a function which can be called from another module please?
- 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)
- @MSGJ Are you looking for a function to just get the transclusion count, or do you want the entire formatting message box?
- If it's the former, you can use
require('Module:Transclusion_count')._fetch({demo="Template:Example"})
(it will returnnil
if the number of transclusions in low). - If it's the latter, you would use the code above to fetch the count, and then if it's not
nil
you would dorequire('Module:High-use').main(mw.getCurrentFrame():newChild{args={demo="Template:Example"}})
--Ahecht (TALK
PAGE) 03:34, 2 December 2024 (UTC)- @MSGJ I modified Module:High-use so that the second line of code can be just
require('Module:High-use')._main({demo="Template:Example"})
--Ahecht (TALK
PAGE) 03:49, 2 December 2024 (UTC)- Many thanks! I will give it a go — Martin (MSGJ · talk) 08:51, 2 December 2024 (UTC)
- @MSGJ I modified Module:High-use so that the second line of code can be just
edit broke '% of pages' suppression
[edit]@Editor: Ahecht: At this edit, |no-percent=yes
stopped working; see Module:Lang/configuration which has:
{{High-use|no-percent=yes}}
but displays the '..., or roughly 3% of all pages' message fragment.
Please fix your edit.
—Trappist the monk (talk) 19:08, 17 December 2024 (UTC) 19:12, 17 December 2024 (UTC) simpler example