Khác biệt giữa bản sửa đổi của “Bản mẫu:Tài liệu”

Nội dung được xóa Nội dung được thêm vào
nKhông có tóm lược sửa đổi
Cleaning away debug code that I don't use anymore.
Dòng 1:
}}<!--
<!--Automatically add {{pp-template}} to protected templates.
Automatically add {{template sandbox notice}} when on a /sandbox page.
-->{{#switchifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice}}
}}<!--
<!-- Automatically add {{pp-template}} to protected templates.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
Hàng 10 ⟶ 15:
}}<!--
Start of green doc box.
--><div class="template-{{documentation"><!--/core2
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| content = {{{content|}}}
| link box = {{{link box|}}} <!--So "link box=off" works-->
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
These are the literal class definitions in MediaWiki:Common.css:
in talk space-->
| docspace =
{{#switch: {{SUBJECTSPACE}}
| |{{ns:user0}}=
| |{{ns:templateFile}}
| {{ns:MediaWiki}}
| {{ns:Category}} = {{TALKSPACE}}
| #default = {{SUBJECTSPACE}}
}}
 
| 1 = {{{1|}}} <!--Other docname, if fed-->
/* For template documentation */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 1em;
}
 
<!--The namespace is added in /core2-->
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
| template page =
|<!--**NOTHING**-->
{{#switch: {{SUBPAGENAME}}
|<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
| sandbox
|<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
| testcases = {{BASEPAGENAME}}
|<!--** /doc EXISTS** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} sửa]] [{{purge|làm mới}}]
| #default = {{PAGENAME}}
|<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit&preload=Template:Documentation/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}}|{{ns:template}}|[[Image:Template-info.svg|50px]] Tài liệu bản mẫu|Tài liệu}}}}</span></div>
}}<!--
 
}}<!--End of green doc box--><noinclude>
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
-->{{#ifexist: {{{1|{{Documentation/docname}}}}}
|<!--**/doc EXISTS**-->[[Wikipedia:Tài liệu bản mẫu|Tài liệu]] này được [[Wikipedia:Nhúng|nhúng vào]] từ [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} sửa] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} lịch sử])</small><br />
}}<!--
 
<!-- 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**-->
|#default=
{{#switch: {{SUBJECTSPACE}}
|{{ns:template}}
|{{ns:user}}=
{{#ifexist: {{FULLPAGENAME}}/chỗ thử
|Bản mẫu này có một [[/chỗ thử|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|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
</div>