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

削除された内容 追加された内容
add temporary param to pp-template to track usage from doc template
1 行
<!--
Automatically add {{template sandbox notice}} when on a /sandbox page.
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice}}
}}<!--
Automatically add {{pp-template}} to protected templates.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{pp-template|docusage=yes}}
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{pp-template|docusage=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
17 ⟶ 21行目:
| link box = {{{link box|}}} <!--So "link box=off" works-->
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
in talk space-->
| docspace =
{{#switch: {{SUBJECTSPACE}}
25 ⟶ 30行目:
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}
 
<!--For debug purposes-->
| not-docspace =
{{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{SUBJECTSPACE}}
| #default = {{TALKSPACE}}
}}