ผลต่างระหว่างรุ่นของ "แม่แบบ:คู่มือการใช้งาน/core"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
หน้าที่ถูกสร้างด้วย '<!-- Start of green doc box --><div id="template-documentation" class="template-documentation"><!-- Add the heading at the top of the do...'
 
Nullzero (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
บรรทัดที่ 1:
<!--
เริ่มกล่องสีเขียว
Start of green doc box
--><div id="template-documentation" class="template-documentation"><!--
Add the heading at the top of the doc box:
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
| <!--Defined but empty-->
| <!--"heading=", do nothing-->
| <div style="padding-bottom: 3px; border-bottom:thin 1px solid #aaddffaaa; margin-bottom: 1ex;">{{
#if: {{{content|}}}
| |
| <!--Add the [edit][purge] or [create] links-->
<span class="editsection plainlinks" id="doc_editlinks">{{
#if: {{{doc exist|yes}}}
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} historyแก้ไข]] [{{purge|purgeล้างแคช}}]
| <!--/doc doesn't exist-->
| [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit&preload=Template:Documentation/preload}} create]]
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
}}</span>
#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
}} <span style="{{#if: {{{heading-style|}}}
| Template:Documentation/preload-filespace
| {{{heading-style|}}}
| Template:Documentation/preload
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
}} }} สร้าง]]
| font-weight: bold; font-size: 125%
}}</span>
| font-size: 150%
}} <span style="{{#if: {{{heading-style|}}}
}}
}}">{{#switch: | {{{heading-style|¬}}}
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
| ¬ =
| font-weight: bold; font-size: 125%
<!--"heading" not defined in this or previous level-->
| font-size: 150%
{{#switch: {{SUBJECTSPACE}}
}}
| {{ns:Template}} = [[File:Office-book.svg|30px|link=|alt=]] Template documentation
}}">{{#switch: {{{heading|¬}}}
| {{ns:File}} = Summary
| ¬ =
| #default = Documentation
<!--"heading" not defined in this or previous level-->
}}
{{#switch: {{SUBJECTSPACE}}
| #default =
| {{ns:Template}} = [[ไฟล์:Template-info.svg|50px|alt=]] เอกสารกำกับแม่แบบ
<!--"heading" has data or is empty but defined-->
| {{ns:File}} = เอกสารกำกับไฟล์
{{{heading|}}}
| #default = เอกสารกำกับหน้า
}}</span></div>
}}
| #default =
<!--"heading" has data or is empty but defined-->
{{{heading|}}}
}}</span></div>
}}<!--
Load the /doc content:
Note: The line breaks between this comment and the if-case
and between the if-case and the following div are necessary so
"=== Headings ===" at the start and end of docs are interpreted.
-->
{{#if: {{{content|}}}
| {{{content|}}}
| {{#if: {{{doc exist|yes}}}
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
}}
}}
<div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.-->
</div><!--End of green doc box--><!--
Link box below for the doc meta-data:
-->{{#if:
<!--Check if we should show the link box-->
{{#ifeq: {{{link box|}}} | off
|
| {{{doc exist|yes}}}{{
#switch: {{SUBJECTSPACE}}
| {{ns:User}}
| {{ns:Template}} = yes
}}
}}
 
| {{fmbox
| id = documentation-meta-data
| image = none
| style = background-color: #ecfcf4;
| textstyle = font-style: italic;
| text =
{{#if: {{{link box|}}}
| {{{link box}}} <!--Use custom link box content-->
| {{#if: {{{doc exist|yes}}}
|<!--/doc exists, link to it--> เอกสารกำกับแม่แบบที่ปรากฏด้านบนนี้ดึงมาจาก [[{{{docpage|{{FULLPAGENAME}}/doc}}}]] <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} แก้ไข] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} ประวัติ])</small> <br>
}}<!--
Add links to /sandbox and /testcases when appropriate:
-->{{#switch: {{SUBJECTSPACE}}
| {{ns:User}}
| {{ns:Template}} =
ผู้เขียนสามารถทดลองใน{{
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|หน้าทดลองเขียน]]ของแม่แบบนี้ <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} แก้] {{!}} [{{fullurl:Wikipedia:Pagediff | withJS={{urlencode:MediaWiki:Common.js/pagediff.js}}&oldpage={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&newpage={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} แตกต่าง])</small>
| หน้าทดลองเขียนของแม่แบบนี้ <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} สร้าง])</small>
}}<br>
}}<!--
Show the cats and interwiki text, but not
if "content" fed or "docname fed" since then it is
unclear where to add the cats and interwikis.
-->{{#if: {{{content|}}} {{{docname fed|}}}
|
| โปรดเพิ่มหมวดหมู่และลิงก์ข้ามภาษาในหน้าย่อย [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]]
}}<!--
Show the "Subpages" link:
--> ดู{{#switch: {{SUBJECTSPACE}}
| {{ns:File}} = <!--Don't show it-->
| {{ns:Template}} = [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|หน้าย่อยของแม่แบบนี้]]
| #default = [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|หน้าย่อยของแม่แบบนี้]]
}}
}}
}}
}}<!--End link box--><!--
 
Detect and report strange usage:
-->{{#if:
 
<!--Check if {{documentation}} is transcluded
on a /doc or /testcases page-->
{{#switch: {{SUBPAGENAME}}
| doc
| testcases = strange
}}
<!--More checks can be added here, just return anything
to make the surrounding if-case trigger-->
|
}}<noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>