Automatically add {{pp-template}} to protected templates.
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{Pppp-template|docusage=yes}}
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{Pppp-template|docusage=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
}}
}}<!--
Start of green doc box.
<div style="clear: both; margin: 1em 0 0 0; background: #ecfcf4; border: 1px solid #8BCBFF; color:#000; padding: 0.9em;"><!--
-->{{Tài liệu/core2
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
|<!--**NOTHING**-->
| heading-style = {{{heading-style|}}}
|<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
| content = {{{content|}}}
|<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Tài_liệu/docname}}}}}
| link box = {{{link box|}}} <!--So "link box=off" works-->
|<!--** /docname EXISTS** -->[[{{fullurl:{{{1|{{Tài_liệu/docname}}}}}|action=edit}} sửa]]
|<!--**/docname DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Tài_liệu/docname }}}}}|action=edit&preload=Template:Tài_liệu/preload}} tạo]]
}}</span>
}} <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|Bản mẫu|[[File:Office-book.svg|30px|link=|alt=]] Tài liệu bản mẫu|Tài liệu}}}}</span></div>
<!--Some namespaces must have the /doc in talk space-->
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
| docspace =
-->{{#ifexist: {{{1|{{Tài_liệu/docname}}}}}
{{#switch: {{SUBJECTSPACE}} ▼
|<!--**/docname EXISTS**-->[[w:Wikipedia:Tài liệu bản mẫu|Tài liệu]] này được nhúng vào từ [[{{{1|{{Tài_liệu/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Tài_liệu/docname}}}}}|action=edit}} sửa] | [{{fullurl:{{{1|{{Tài_liệu/docname}}}}}|action=history}} lịch sử])</small>
----
<br />
| {{ns:MediaWiki}}
}}<!--
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}
<!--For debug purposes-->
| not-docspace =
--> {{#switch: {{ SUBPAGENAMESUBJECTSPACE}} ▼
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{SUBJECTSPACE}}
| #default = {{TALKSPACE}}▼
}}
| 1 = {{{1|}}} <!--Other docname, if fed-->
<!--The namespace is added in /core2-->
| template page =
{{#switch: {{SUBPAGENAME}}
| sandbox
| testcases = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}
}}<!--End of green doc box--><noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
▲ -->{{#switch: {{SUBPAGENAME}}
</noinclude>
|sandbox|chỗ thử|testcases=<!--**DO NOT SHOW THESE LINKS ON THE SANDBOX/TESTCASES PAGES**-->
▲ {{#switch: {{SUBJECTSPACE}}
{{#ifexist: {{FULLPAGENAME}}/chỗ thử
|Bản mẫu này có một [[/sandbox|chỗ thử]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /chỗ thử }}|action=edit}} sửa])</small> <!--
-->{{#ifexist: {{FULLPAGENAME}}/testcases
|và [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} sửa])</small>}} dành cho các biên tập viên thử nghiệm.
|{{#ifexist: {{FULLPAGENAME}}/testcases
|Bản mẫu này có [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} sửa])</small> dành cho các biên tập viên thử nghiệm.}}
}}}}}}
</div>
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Tài_liệu/docname}}}}} | {{ {{{1|{{Tài_liệu/docname}}}}} }} }}}}
</div>
|