「テンプレート:Documentation」の版間の差分

削除された内容 追加された内容
copy over preload feature as per edit request on talk page
Reducing transclusion depth per discussion on talk page
15 行
}}<!--
Start of green doc box.
-->{{documentation/core2core
| preload = {{{preload|}}} <!--Allow custom preloads-->
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
22 行
| link box = {{{link box|}}} <!--So "link box=off" works-->
 
| docpage =
<!--Some namespaces must have the /doc, /sandbox and /testcases
{{#if: {{{1|}}}
in talk space-->
| {{{1|}}}
| docspace =
| {{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
31 行
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}:{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}/doc
}}
| doc exist =
{{#ifexist:
{{#if: {{{1|}}}
| 1 = | {{{1|}}} <!--Other docname, if fed-->
| {{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}:{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}/doc
}}
| yes
}}
| docname fed =
{{#if: {{{1|}}}
| yes
}}
 
| sandbox =
| 1 = {{{1|}}} <!--Other docname, if fed-->
{{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}:{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}/sandbox
| testcases =
{{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}:{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}/testcases
 
<!--The namespace is added in /core2-->
| template page =
{{NAMESPACE}}:{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}