Difference between revisions of "Template:High-risk"

From MINR.ORG WIKI
(add support for Lua modules)
(make this work properly on sandbox pages)
Line 10: Line 10:
 
|Module=module
 
|Module=module
 
|#default=template
 
|#default=template
}} should first be tested in its [[{{#ifeq:{{SUBPAGENAME}}|doc| {{SUBJECTSPACE}}:{{BASEPAGENAME}} | {{SUBJECTPAGENAME}} }}/sandbox|/sandbox]] or [[{{#ifeq:{{SUBPAGENAME}}|doc| {{SUBJECTSPACE}}:{{BASEPAGENAME}} | {{SUBJECTPAGENAME}} }}/testcases|/testcases]] subpages{{
+
}} 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}}
 
#switch:{{NAMESPACE}}
 
|Module=.
 
|Module=.
 
|#default=, or in your own [[Wikipedia:Subpages#How to create user subpages|user space]].
 
|#default=, or in your own [[Wikipedia:Subpages#How to create user subpages|user space]].
}} The tested changes can then be added to this page in one single edit. Please consider discussing any changes on {{#if:{{{2|}}}|[[{{{2}}}]]|the [[{{#ifeq:{{SUBPAGENAME}}|doc| {{TALKSPACE}}:{{BASEPAGENAME}} | {{TALKPAGENAME}} }}|talk page]]}} before implementing them.
+
}} The tested changes can then be added to this page in one single edit. Please consider discussing any changes on {{#if:{{{2|}}}|[[{{{2}}}]]|the [[{{
 +
#switch: {{SUBPAGENAME}}
 +
| doc | sandbox = {{TALKSPACE}}:{{BASEPAGENAME}}
 +
| #default      = {{TALKPAGENAME}}
 +
}}|talk page]]}} before implementing them.
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 09:59, 1 January 2014

Template documentation[create]