ผลต่างระหว่างรุ่นของ "แม่แบบ:คู่มือการใช้งาน/core"
เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
หน้าที่ถูกสร้างด้วย '<!-- Start of green doc box --><div id="template-documentation" class="template-documentation"><!-- Add the heading at the top of the do...' |
ลไม่มีความย่อการแก้ไข |
||
บรรทัดที่ 1:
<!--
เริ่มกล่องสีเขียว
--><div id="template-documentation" class="template-documentation"><!--
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
| <!--"heading=", do nothing-->
| <div style="padding-bottom: 3px; border-bottom:
#if: {{{content|}}} | <!--Add the [edit][purge] or [create] links-->
#if: {{{doc exist|yes}}} | <!--/doc doesn't exist-->
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
| Template:Documentation/preload-filespace
| Template:Documentation/preload
}} }} สร้าง]]
}}</span>
}} <span style="{{#if: {{{heading-style|}}}
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
| font-weight: bold; font-size: 125%
| font-size: 150%
}}
}}">{{#switch: {{{heading|¬}}}
| ¬ =
<!--"heading" not defined in this or previous level-->
{{#switch: {{SUBJECTSPACE}}
| {{ns:Template}} = [[ไฟล์:Template-info.svg|50px|alt=]] เอกสารกำกับแม่แบบ
| {{ns:File}} = เอกสารกำกับไฟล์
| #default = เอกสารกำกับหน้า
}}
| #default =
<!--"heading" has data or is empty but defined-->
{{{heading|}}}
}}</span></div>
}}<!--
-->
{{#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}} แก้ไข] | [{{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>
|