Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:High-risk: Difference between revisions

Template page
mediawiki>Shirayuki
Marked this version for translation
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
#REDIRECT [[Template:High-use]]
<languages/>
</noinclude>{{#switch:<translate></translate>
| =
{{ombox
| type = content
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]
| imageright =
| text = {{#switch:{{NAMESPACE}}
  |Module={{#if:{{{1|}}}
    |'''<translate><!--T:3--> This Lua module is used on approximately <tvar name=5>{{formatnum:{{{1}}}}}</tvar> pages.</translate>'''
    |'''<translate><!--T:9--> This Lua module is used on many pages.</translate>'''
    }}<!--/#if-->
  |#default={{#if:{{{1|}}}
    |'''<translate><!--T:10--> This template is used on approximately <tvar name=5>{{formatnum:{{{1}}}}}</tvar> pages.</translate>'''
    |'''<translate><!--T:11--> This template is used on many pages.</translate>'''
    }}<!--/#if-->
  }}<!--/#switch--><br />
{{#switch:{{NAMESPACE}}
  |Module=<translate><!--T:2--> To avoid large-scale disruption and unnecessary server load, any changes to this module should first be tested in its [[<tvar name=4>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox</tvar>|/sandbox]] or [[<tvar name=5>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases</tvar>|/testcases]] subpages.</translate>
  |#default=<translate><!--T:12--> To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its [[<tvar name=4>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox</tvar>|/sandbox]] or [[<tvar name=5>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases</tvar>|/testcases]] subpages or in your own [[<tvar name=9>Special:MyLanguage/Help:Subpages#Use of subpages</tvar>|user subpage]].</translate>
}}<!--/#switch-->
<translate><!--T:1--> The tested changes can then be added to this page in one single edit.</translate>
{{#if:{{{2|}}}
  |<translate><!--T:4--> Please consider discussing any changes at <tvar name=2>[[{{trim|{{{2}}}}}]]</tvar> before implementing them.</translate>
  |<translate><!--T:13--> Please consider discussing any changes on the [[<tvar name=3>{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}</tvar>|talk page]] before implementing them.</translate>
  }}<!--/#if-->
}}<!--/ombox-->
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:High-risk|noshift=1|uselang={{int:lang}}}}
}}<noinclude>
{{Documentation|content=
 
<translate><!--T:14--> This is the <tvar name="1">{{tl|high-risk}}</tvar> message box.</translate> <translate><!--T:15--> 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 a large number of pages</translate>
 
{{note|1=<translate><!--T:16--> It is normal that some of the links in the message box are red.</translate>}}
 
<translate>
=== Usage === <!--T:5-->
</translate>
<translate><!--T:17--> The template can be used as is.</translate>
<translate><!--T:18--> But it can also take some parameters:</translate>
 
* <translate><!--T:19--> First parameter is the number of pages.</translate>
* <translate><!--T:20--> Second parameter is the name of some other talk page if you want discussion to be made there instead.</translate> <translate><!--T:21--> But a better option might be to redirect the talkpage of your template to that other talkpage.</translate>
 
<translate>
===Examples=== <!--T:6-->
</translate>
<pre>
{{high-risk| 30,000+ | Project:Village Pump}}
</pre>
 
{{high-risk| 30,000+ | Project:Village Pump}}
 
<pre>
{{high-risk| 30,000+ }}
</pre>
 
{{high-risk| 30,000+ }}
 
<pre>
{{high-risk| | Project:Village Pump}}
</pre>
 
{{high-risk| | Project:Village Pump}}
 
<translate><!--T:22--> The full code for a /doc page top may look like this:</translate>
 
<pre>
{{documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{high-risk| 30,000+ }}
</pre>
 
<translate>
=== Technical details === <!--T:7-->
</translate>
<translate><!--T:23--> The <tvar name="1">[[{{translatable}}/sandbox|/sandbox]]</tvar> and <tvar name="2">[[{{translatable}}/testcases|/testcases]]</tvar> links are the standard names for such subpages.</translate>
<translate><!--T:24--> If those pages are created then the green /doc box for the template will detect them and link to them in its heading.</translate>
<translate><!--T:25--> For instance see the top of this documentation.</translate>
 
<translate>
=== See also === <!--T:8-->
</translate>
* {{tl|intricate template}} – <translate><!--T:26--> For the intricate, i.e., complex templates.</translate>
* {{tl|pp-template}} – <translate><!--T:27--> The protection template that usually is put on high-risk templates.</translate>
* {{tl|used in system}} – <translate><!--T:28--> For templates used in the user interface.</translate>


{{Rcat shell|
{{R with Wikidata item}}
{{R from merge}}
{{R from template shortcut}}
}}
}}
</noinclude>

Latest revision as of 03:59, 30 June 2024

Redirect to: