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
Prenn (thảo luận | đóng góp)
Prenn (thảo luận | đóng góp)
Dòng 1:
}}<!--
<!--Automatically add {{pp-template}} to protected templates.
Tự động gắn bảng {{template sandbox notice}} vào các trang /sandbox.
-->{{#switchifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
}}<!--
Tự động gắn bảng {{pp-template}} vào các bản mẫu khóa.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{pp-template|docusage=yes}}
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{pp-template|docusage=yes}}
| <!--NotMở protected,khóa orhoặc onlychỉ semi-move-protectedđược bán khóa di chuyển-->
}}
}}
}}<!--
Bắt đầu hộp tài liệu màu xanh.
Start of green doc box.
-->{{Tài liệu/start box2
--><div style="clear: both; margin: 1em 0 0 0; background: #EEF9FA; border: 1px dotted #8BCBFF; color:#000; padding: 0.9em;"><!--
| preload = {{{preload|{{{mẫu|}}}}}} <!--Cho phép các trang mẫu tùy biến-->
| heading = {{{heading|{{{đầu đề|¬}}}}}} <!--Định rõ nhưng để trống có nghĩa là tắt đầu đề-->
| heading-style = {{{heading-style|{{{kiểu đầu đề|}}}}}}
| content = {{{content|{{{nội dung|}}}}}}
 
<!--Một số không gian tên phải có /doc, /sandbox, và /testcases trong không gian tên thảo luận-->
These are the literal class definitions in MediaWiki:Common.css:
| docspace = {{Tài liệu/docspace}}
 
| 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;
 
<!--Không gian tên được /start box2 thêm vào-->
-->{{#ifeq:{{{heading|μ}}}|<!--**DEFINED BUT EMPTY**-->
| template page = {{Tài liệu/template page}}
|<!--**NOTHING**-->
|<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">{{#ifeq:{{{content|μ}}}|μ
|<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist: {{{1|{{Documentation/docname}}}}}
|<!--** /doc EXISTS** -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} sửa]] [{{purge|làm mới}}]
|<!--**/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>
}}<!--
 
}}<!-- Bắt đầu nội dung --><!--
--><div id="template_doc_page_transcluded" class="dablink plainlinks"><!--
Bắt đầu tải nội dung /doc:
-->{{#ifexist: {{{1|{{Documentation/docname}}}}}
Lưu ý: Cần ngắt dòng giữa lời chú thích này và dòng sau để phân cách các "=== Đề mục ===" ở đầu và cuối tài liệu.
|<!--**/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 />
}}<!-->
{{#switch: {{#if:{{{content|{{{nội dung|}}}}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{Tài liệu/docspace}}:{{Tài liệu/template page}}/doc|1|0}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| 1111 = {{{content|{{{nội dung|}}}}}}
| 0110 | 0111 = {{ {{{1}}} }}
| 0001 | 0011 = {{ {{Tài liệu/docspace}}:{{Tài liệu/template page}}/doc }}
| 0000 | 0100 | 0010 | 0101 =
}}
<!--
Kết thúc tải nội dung /doc:
Lưu ý: Cần ngắt dòng giữa lời chú thích này và dòng sau để phân cách các "=== Đề mục ===" ở đầu và cuối tài liệu.
-->{{Tài liệu/end box2
| preload = {{{preload|{{{mẫu|}}}}}} <!--Cho phép các trang mẫu tùy biến-->
| content = {{{content|{{{nội dung|}}}}}}
| link box = {{{link box|{{{hộp liên kết|}}}}}} <!--Để cho "link box=off" có hiệu quả-->
 
<!--Một số không gian tên phải có /doc, /sandbox, và /testcases trong không gian tên thảo luận-->
| docspace = {{Tài liệu/docspace}}
 
| 1 = {{{1|}}} <!--Other docname, if fed-->
 
<!--Không gian tên được /end box2 thêm vào-->
| template page = {{Tài liệu/template page}}
 
}}<!--
Kết thúc hộp tài liệu màu xanh
--><noinclude>
 
<!-- Add categories 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>