Template:High-use: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
Line 1: Line 1:
{{Ombox
{{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}}}<noinclude>
| type  = style
| image = [[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]
| text  =
'''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&name={{urlencode:{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{BASEPAGENAME}}
| #default      = {{PAGENAME}}
}}}} {{High-use/num|1={{formatnum:{{#ifeq:{{str endswith|{{{1}}}|+}}|yes|{{str crop|{{{1}}}|1}}|{{{1}}}}}|R}}}} pages]''', so changes to it will be widely noticed. Please test any changes in the {{#switch:{{NAMESPACE}}|Module=module's|#default=template's}} [[{{#switch: {{SUBPAGENAME}}
    | doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
    | #default =      {{SUBJECTPAGENAME}}
  }}/sandbox|/sandbox]] or [[{{#switch: {{SUBPAGENAME}}
    | doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
    | #default =      {{SUBJECTPAGENAME}}
  }}/testcases|/testcases]] subpages{{#switch:{{NAMESPACE}}|Module=.|#default=, or in your own [[Wikipedia:Subpages#How to create user subpages|user subpage]].}} Please consider discussing changes {{#if:{{{2|}}}|at [[{{{2}}}]]|on the [[{{#switch: {{SUBPAGENAME}}
    | doc | sandbox = {{TALKSPACE}}:{{BASEPAGENAME}}
    | #default =      {{TALKPAGENAME}}
  }}|talk page]]}} before implementing them.
}}<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! -->
<!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! -->
</noinclude>
</noinclude>

Revision as of 22:41, 2 December 2019

Template documentation[view] [edit] [history] [purge]

This is the {{high-use}} message box.

It is meant to be put at the top of the documentation for templates used on 2000–100,000 pages.

For templates used on 100,000 pages or more we instead recommend using {{high-risk}} which has a stronger wording.

Note! It is normal that some of the links in the message box are red.

Usage

The template can be used as is. But it can also take some parameters:

  • First parameter is the number of pages. See toollabs:templatecount/ to find out how many pages use your template.
  • Second parameter is the name of some other talk page if you want discussion to be made there instead. But a better option might be to redirect the talkpage of your template to that other talkpage.

Here are some examples:

{{high-use| 40,000 | Wikipedia talk:High-risk templates }}
{{high-use| 40,000 }}
{{high-use| | Wikipedia talk:High-risk templates }}

The full code for a /doc page top can look like this:

{{documentation subpage}}
{{high-use| 40,000 }}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->

Technical details

The /sandbox and /testcases links are the standard names for such subpages. If those pages are created then the green /doc box for the template will detect them and link to them in its heading. For instance see the top of this documentation.

See also

Template counters