Difference between revisions of "Template:High-risk"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:</translate>
 
| =
 
| =
 
{{ombox
 
{{ombox
Line 7: Line 7:
 
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]
 
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]
 
| imageright =
 
| imageright =
| text = '''<translate><!--T:3--> This {{<tvar|1>#switch:{{NAMESPACE}}</>|<tvar|2>Module</>=Lua module|<tvar|3>#default</>=template}} is used on <span class="plainlinks">[<tvar|url>https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&name={{urlencode:{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}} }}}}</> {{<tvar|4>#if:{{{1|}}}|{{formatnum:{{{1}}}}}</>|a very large number of}} pages]</span>.</translate>'''<br />
+
| text = '''<!--T:3--> This {{<tvar|1>#switch:{{NAMESPACE}}</>|<tvar|2>Module</>=Lua module|<tvar|3>#default</>=template}} is used on <span class="plainlinks">[<tvar|url>https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&name={{urlencode:{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|#default={{PAGENAME}} }}}}</> {{<tvar|4>#if:{{{1|}}}|{{formatnum:{{{1}}}}}</>|a very large number of}} pages]</span>.</translate>'''<br />
<translate>
+
 
 
<!--T:2-->
 
<!--T:2-->
 
To avoid large-scale disruption and unnecessary server load, any changes to this {{<tvar|1>#switch:{{NAMESPACE}}</>|<tvar|2>Module</>=module|<tvar|3>#default</>=template}} should first be tested in its [[<tvar|4>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox</>|/sandbox]] or [[<tvar|5>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases</>|/testcases]] subpages{{<tvar|6>#switch:{{NAMESPACE}}</>|<tvar|7>Module</>=.|<tvar|8>#default</>=&#32;or in your own [[w:Wikipedia:Subpages#How to create user subpages|user subpage]].}}</translate>
 
To avoid large-scale disruption and unnecessary server load, any changes to this {{<tvar|1>#switch:{{NAMESPACE}}</>|<tvar|2>Module</>=module|<tvar|3>#default</>=template}} should first be tested in its [[<tvar|4>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox</>|/sandbox]] or [[<tvar|5>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases</>|/testcases]] subpages{{<tvar|6>#switch:{{NAMESPACE}}</>|<tvar|7>Module</>=.|<tvar|8>#default</>=&#32;or in your own [[w:Wikipedia:Subpages#How to create user subpages|user subpage]].}}</translate>
<translate>
+
 
 
<!--T:1-->
 
<!--T:1-->
 
The tested changes can then be added to this page in one single edit.</translate>
 
The tested changes can then be added to this page in one single edit.</translate>
<translate>
+
 
 
<!--T:4-->
 
<!--T:4-->
 
Please consider discussing any changes {{<tvar|1>#if:{{{2|}}}</>|at <tvar|2>[[{{trim|{{{2}}}}}]]</>|on the [[<tvar|3>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}</>|talk page]]}} before implementing them.</translate>
 
Please consider discussing any changes {{<tvar|1>#if:{{{2|}}}</>|at <tvar|2>[[{{trim|{{{2}}}}}]]</>|on the [[<tvar|3>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}</>|talk page]]}} before implementing them.</translate>

Revision as of 03:58, 21 December 2019


Template documentation

This is the {{high-risk}} message box. It is meant to be put at the top of the documentation page on the most high-use (high-risk) templates and Lua modules (the template detects the name space), i.e., for templates used on 100,000 pages or more. For templates used on 2,000–100,000 pages, it is recommended to use the {{high-use}} template instead, which has a softer 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:

Examples

{{high-risk| 300,000+ | Wikipedia talk:High-risk templates }}
{{high-risk| 300,000+ }}
{{high-risk| | Wikipedia talk:High-risk templates }}

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

{{documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{high-risk| 300,000+ }}

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