Changes
Jump to navigation
Jump to search
Template:High-risk/en (view source)
Revision as of 05:55, 16 September 2020
, 05:55, 16 September 2020Updating to match new version of source page
<noinclude>
<languages/>
</noinclude>{{#switch:
| =
{{ombox
| type = content
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]
| imageright =
| text = '''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on {{#if:{{{1|}}}|approximately {{formatnum:{{{1}}}}}|many}} pages.'''<br />
To avoid large-scale disruption and unnecessary server load, any changes to this {{#switch:{{NAMESPACE}}|Module=module|#default=template}} should first be tested in its [[{{#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 [[Special:MyLanguage/Help:Subpages#Use of subpages|user subpage]].}}
The tested changes can then be added to this page in one single edit.
Please consider discussing any changes {{#if:{{{2|}}}|at [[{{trim|{{{2}}}}}]]|on the [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}|talk page]]}} before implementing them.
}}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:High-risk|noshift=1|uselang={{int:lang}}}}
}}<noinclude>
{{Documentation|content=
This is the {{tl|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 a large number of pages
'''''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.
* 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.
===Examples===
<pre>
{{high-risk| 30,000+ | Project:Current issues}}
</pre>
{{high-risk| 30,000+ | Project:Current issues}}
<pre>
{{high-risk| 30,000+ }}
</pre>
{{high-risk| 30,000+ }}
<pre>
{{high-risk| | Project:Current issues}}
</pre>
{{high-risk| | Project:Current issues}}
The full code for a /doc page top may look like this:
<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>
=== Technical details ===
The [[{{translatable}}/sandbox|/sandbox]] and [[{{translatable}}/testcases|/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 ===
* {{tl|intricate template}} – For the intricate, i.e., complex templates.
* {{tl|pp-template}} – The protection template that usually is put on high-risk templates.
* {{tl|used in system}} – For templates used in the user interface.
}}
</noinclude>
<languages/>
</noinclude>{{#switch:
| =
{{ombox
| type = content
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]
| imageright =
| text = '''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on {{#if:{{{1|}}}|approximately {{formatnum:{{{1}}}}}|many}} pages.'''<br />
To avoid large-scale disruption and unnecessary server load, any changes to this {{#switch:{{NAMESPACE}}|Module=module|#default=template}} should first be tested in its [[{{#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 [[Special:MyLanguage/Help:Subpages#Use of subpages|user subpage]].}}
The tested changes can then be added to this page in one single edit.
Please consider discussing any changes {{#if:{{{2|}}}|at [[{{trim|{{{2}}}}}]]|on the [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}|talk page]]}} before implementing them.
}}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:High-risk|noshift=1|uselang={{int:lang}}}}
}}<noinclude>
{{Documentation|content=
This is the {{tl|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 a large number of pages
'''''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.
* 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.
===Examples===
<pre>
{{high-risk| 30,000+ | Project:Current issues}}
</pre>
{{high-risk| 30,000+ | Project:Current issues}}
<pre>
{{high-risk| 30,000+ }}
</pre>
{{high-risk| 30,000+ }}
<pre>
{{high-risk| | Project:Current issues}}
</pre>
{{high-risk| | Project:Current issues}}
The full code for a /doc page top may look like this:
<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>
=== Technical details ===
The [[{{translatable}}/sandbox|/sandbox]] and [[{{translatable}}/testcases|/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 ===
* {{tl|intricate template}} – For the intricate, i.e., complex templates.
* {{tl|pp-template}} – The protection template that usually is put on high-risk templates.
* {{tl|used in system}} – For templates used in the user interface.
}}
</noinclude>