ผลต่างระหว่างรุ่นของ "แม่แบบ:หัวเรื่องงานแปล"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Bitterschoko (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
Miwako Sato (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
บรรทัดที่ 1:
<!--
Text status badge (via Wikidata)
-->{{#invoke:edition|badge|category=1|indicator=1}}<!--
 
Begin headertemplateheaderContainer wrapper
 
--><div id="headerContainer" class="ws-noexport noprint" style="box-sizing:border-box;"><!--
 
Make sure no parameters are removed:
 
--><includeonly>
เส้น 14 ⟶ 16:
|{{{ก่อนหน้า|{{{previous|undef!}}}}}}
|{{{ถัดไป|{{{next|undef!}}}}}}
|{{{หมายเหตุ|{{{notes|undef!}}}}}} = <div style="margin-right:auto; margin-left:auto; border-top:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px hidden transparent; border-left:1px solid #CCC; text-align:center;"><span class="error" style="font-size:90%; font-weight:bold;">แม่แบบผิดพลาด: มีการลบช่องที่ไม่ได้ใช้ออก โปรดเติมกลับเข้าไป (โปรดดู[[แม่แบบ:หัวเรื่องงานแปล#วิธีใช้|เอกสารกำกับแม่แบบ]])</span></div><!--
|{{{ภาษา|{{{language|undef!}}}}}}
|{{{ต้นฉบับ|{{{original|undef!}}}}}}
|{{{หมายเหตุ|{{{notes|undef!}}}}}} = <div style="margin-right:auto; margin-left:auto; border-top:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px hidden transparent; border-left:1px solid #CCC; text-align:center;"><span class="error" style="font-size:90%; font-weight:bold;">แม่แบบผิดพลาด: มีการลบช่องที่ไม่ได้ใช้ออก โปรดเติมกลับเข้าไป (โปรดดู[[แม่แบบ:หัวเรื่อง#วิธีใช้|เอกสารกำกับแม่แบบ]])</span></div><!--
 
Also add a tracking category:
บรรทัดที่ 23:
-->}}<!--end switch--></includeonly><!--
 
Begin navigation header
BEGIN VISIBLE TRANSLATION HEADER
 
faux TABLE-->
บรรทัดที่ 36:
faux TD left
Previous page link-->
<div class="gen_header_backlink searchaux" style="display:table-cell; text-align:left; vertical-align:middle; width:20%;"><!--
 
-->{{#if:{{{ก่อนหน้า|{{{previous|}}}}}}|<span class="searchaux" id="headerprevious">←{{{ก่อนหน้า|{{{previous}}}}}}</span>}}<!--
 
close faux TD left-->
</div><!--
 
faux TD center-->
Title-->
<div class="gen_header_title" style="display:table-cell; text-align:center;"><!--
<div class="gen_header_title" style="display:table-cell; text-align:center; width:60%;"><!--
 
-->'''<span id="header_title_text">{{{ชื่อ|{{{ชื่อเรื่อง|{{{title|ไม่มีชื่อ}}}}}}}}}</span>''' <!--
Title:
 
Year-->{{#if:{{{ปี|{{{year|}}}}}}{{{เขียนทับปี|{{{override_year|}}}}}}<!--
-->'''<span id="header_title_text">{{{ชื่อ|{{{title|{{SUBPAGENAME}}}}}}}}</span>''' <!--
-->|{{#if:{{{เขียนทับปี|{{{override_year|}}}}}}<!--
-->|&nbsp;({{{เขียนทับปี|{{{override_year}}}}}})&nbsp;[[หมวดหมู่:หน้าที่มีการเขียนทับปี]]<!--
-->|{{หัวเรื่อง/ปี<!--
-->|{{{ปี|{{{year}}}}}}<!-- unaltered user input
-->|noprint | มปป | ม.ป.ป. ={{#if:{{{ไม่ปี|{{{noyear|}}}}}}|1|0}}<!-- send 1 if "noyear" was called and 0 if not
-->|nocat ={{#ifeq:{{{แก้กำกวม|{{{disambiguation|}}}}}}|yes<!--
-->|1<!-- send 1 if this is a disambiguation page and 0 if it is not, unless...
-->|{{#if:{{{หมวดหมู่ไม่ปี|{{{noyearcat|}}}}}}<!--
-->|1<!-- send 1 if "noyearcat" was called and 0 if not, unless...
-->|{{is subpage}}<!-- will return 1 if it is a subpage and 0 if not
-->}}<!--
-->}}<!-- a result of 1 will turn categorisation off; 0 will keep it on
-->}}<!-- header/year subroutine
-->}}<!-- if override_year
-->}}<!--
 
Author field
Year:
-->{{#if:{{{เขียนทับผู้สร้างสรรค์|{{{override_author|{{{override author|}}}}}}}}}|<!--
 
-->{{#if:{{{ปี|{{{year|}}}}}}{{{เขียนทับปี|{{{เขียนทับปี|{{{override_year|}}}}}}}}}
|{{#if:{{{ไม่ปี|{{{noyear|}}}}}}
|[[หมวดหมู่:หน้าที่ใช้พารามิเตอร์ไม่ปี]]
|&nbsp;({{#if:{{{ศักราช|{{{era|}}}}}}|{{{ศักราช|{{{era|}}}}}}&#32;}}{{{เขียนทับปี|{{{override_year|{{#ifeq:{{{ปี|{{{year}}}}}}
|?
|unknown
|{{{ปี|{{{year}}}}}}
}}<!-- end ifeq year
-->}}}}}})[[หมวดหมู่:งานในปี {{{ศก|{{{ศักราช|{{{era|พ.ศ.}}}}}}}}} {{{ปี|{{{year|{{{1|}}}}}}}}}]]&#160;
}}<!-- end if noyear -->
}}<!-- end if year/override)year --><!--
 
ผู้สร้างสรรค์:
 
-->{{#if:{{{เขียนทับผู้สร้างสรรค์|{{{เขียนทับผู้สร้างสรรค์|{{{override_author|}}}}}}}}}|<!--
 
Override author
--><br /><i><span id="header_author_text" class="vcard"><span class="fn">{{{เขียนทับผู้สร้างสรรค์|{{{เขียนทับผู้สร้างสรรค์override_author|{{{override_authoroverride author|}}}}}}}}}</span></span></i>|<!--
 
Normal author
-->{{#if:{{{ผู้สร้างสรรค์|{{{ผู้สร้างสรรค์|{{{author}}}|}}}}}}|<!--
 
Insert a line break if page is *not* a section page
-->{{#if:{{{ส่วน|{{{ส่วน|{{{section|}}}}}}}}}|&#32;|<br />}}<!--
--><i>โดย&#32;<!--
 
Catch unknown authors
-->{{#ifeq:{{lc:{{{เขียนทับผู้สร้างสรรค์|{{{override_author|{{{ผู้สร้างสรรค์override author|{{{ผู้สร้างสรรค์|{{{author|}}}}}}}}}}}}}}}}}|unknown|<span id="header_author_text">Unknownไม่ทราบ</span>|<!--
 
Link known authors to the author namespace
-->{{#ifexist: ผู้สร้างสรรค์:{{{ผู้สร้างสรรค์|{{{ผู้สร้างสรรค์author|{{{author}}}}}}} || <!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[หมวดหมู่:งานที่ผู้สร้างสรรค์ไม่มีหน้าเฉพาะ]]
| #default = }}<!-- end of switch -->}} [[ผู้สร้างสรรค์:{{{ผู้สร้างสรรค์|{{{author|}}}}}}|<span id="header_author_text" class="vcard"><span class="fn">{{{ผู้สร้างสรรค์|{{{author|}}}}}}</span></span>]]}}</i>}}}}<!--
 
Editor: (field - only if needed)
-->{{#if:{{{เขียนทับบรรณาธิการ|{{{override_editor|}}}}}}{{{บรรณาธิการ|{{{editor|}}}}}}|<!--
 
-->{{#if:{{{เขียนทับบรรณาธิการ|{{{เขียนทับบรรณาธิการ|{{{override_editor|}}}}}}}}}{{{บรรณาธิการ|{{{editor|}}}}}}|<!--
 
Catch special cases for editors
-->{{#switch:{{lc:{{{เขียนทับบรรณาธิการ|{{{บรรณาธิการoverride_editor|{{{override_editorบรรณาธิการ|{{{editor|}}}}}}}}}}}}}}<!--
-->| ? | unknown | ไม่ทราบ | ไม่รู้ =, ''editor unknownไม่ทราบ<!--บรรณาธิการ-->''[[หมวดหมู่:งานที่ไม่ทราบบรรณาธิการ]]<!--
-->| not mentioned | ไม่ระบุ | ไม่ปรากฏ =, ''editor not mentionedไม่ได้ระบุ<!--บรรณาธิการ-->''[[หมวดหมู่:งานที่ไม่ระบุบรรณาธิการ]]<!--
 
Switch default - the given editor
เส้น 100 ⟶ 104:
 
--><span id="header_editor_text" class="vcard"><!--
--><span class="fn">{{#if:{{{เขียนทับบรรณาธิการ|{{{override_editor|}}}}}}|{{{เขียนทับบรรณาธิการ|{{{override_editor}}}}}}|[[{{#ifexist: ผู้สร้างสรรค์:{{{บรรณาธิการ|{{{editor}}}}}} |{{{บรรณาธิการ|{{{editor}}}}}}]]}}</span></span> <!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[หมวดหมู่:งานที่ผู้สร้างสรรค์ไม่มีหน้าเฉพาะ]]
| #default = }}<!-- end of switch -->}}[[ผู้สร้างสรรค์:{{{บรรณาธิการ|{{{editor}}}}}}|{{{บรรณาธิการ|{{{editor}}}}}}]]}}</span></span><!--
--></i>}}<!--
-->}}<!--
 
<!--
 
Translation details:
เส้น 111 ⟶ 121:
}}</i><!--
 
Section: field
-->{{#if:{{{ส่วน|{{{section|}}}}}}|<br /><span id="header_section_text">{{{ส่วน|{{{section|}}}}}}</span><!--
 
Section author
-->{{#if:{{{ส่วน|{{{section|}}}}}}
-->{{#if:{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor|}}}}}}{{{ผู้มีส่วนร่วม|{{{contributor|}}}}}}|<!--
|<br /><span id="header_section_text">{{{ส่วน|{{{section|}}}}}}</span><!--
--><i> โดย <span id="header_contributor_text" class="vcard"><!--
 
--><span class="fn">{{#if:{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor|}}}}}}|{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor}}}}}}|{{#ifexist: ผู้สร้างสรรค์:{{{ผู้มีส่วนร่วม|{{{contributor}}}}}} || <!-- only required main and translation ns:-->
Section author (Contributor):
{{#switch: {{NAMESPACENUMBER}}
 
| 0
-->{{#if:{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor|}}}}}}{{{ผู้มีส่วนร่วม|{{{contributor|}}}}}}
| 114=[[หมวดหมู่:งานที่ผู้สร้างสรรค์ไม่มีหน้าเฉพาะ]]
|<i> โดย <span id="header_contributor_text" class="vcard"><span class="fn"><!--
| #default = }}<!-- end of switch -->}}[[ผู้สร้างสรรค์:{{{ผู้มีส่วนร่วม|{{{contributor}}}}}}|{{{ผู้มีส่วนร่วม|{{{contributor}}}}}}]]}}</span></span><!--
--></i>}}<!--
 
end of section field
-->{{#if:{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor|}}}}}}
|{{{เขียนทับผู้มีส่วนร่วม|{{{override_contributor}}}}}}
|[[ผู้สร้างสรรค์:{{{ผู้มีส่วนร่วม|{{{contributor}}}}}}|{{{ผู้มีส่วนร่วม|{{{contributor}}}}}}]]
}}</span></span></i>
}}<!--
end if Section: field
-->}}<!--
 
เส้น 134 ⟶ 142:
faux TD right
Forelink-->
<div class="gen_header_forelink searchaux" style="display:table-cell; text-align:right; vertical-align:middle; width:20%;">{{#if:{{{ถัดไป|{{{next|}}}}}}|<span class="searchaux" id="headernext">{{{ถัดไป|{{{next}}}}}}→</span>}}<!--
 
close faux TD right-->
เส้น 148 ⟶ 156:
</div><!--
 
Notes section
NOTES SECTION
 
faux TABLE-->
<div id="translation_notes" class="header_notes searchaux" style="display:table; border-collapse:collapse; border-spacing: 0px 0px; empty-cells:hide; box-sizing:border-box; border-bottom:1px solid #FDD017; font-size:0.90em; line-height:1.4; margin:0px auto 4px auto; width:100%;"><!--
 
faux TBODY-->
เส้น 160 ⟶ 168:
 
faux TD-->
<div class="searchaux" style="display:table-cell;"><!--
 
Sister project links check if page is connected to Wikidata (#ifeq)
-->{{#ifeq:{{#invoke:Wikibase|id}}|no entity<!--
 
if page is not connected to Wikidata, only show plain sister if at least one of its parameters is filled in
-->|{{#if:<!--
-->{{{แก้กำกวม|{{{แก้กำกวม|{{{disambiguation|}}}}}}}}}<!--
-->{{{รุ่น|{{{edition|}}}}}}<!--
-->{{{สถานีย่อย|{{{โครงการ|{{{portal|}}}}}}}}}<!--
เส้น 188 ⟶ 196:
 
-->{{Plain sister<!--
-->| disambiguation = {{{แก้กำกวม|{{{แก้กำกวม|{{{disambiguation|}}}}}}}}}<!--
-->| edition = {{{รุ่น|{{{edition|}}}}}}<!--
-->| portal = {{{สถานีย่อย|{{{โครงการ|{{{portal|}}}}}}}}}<!--
เส้น 211 ⟶ 219:
if page is connected to Wikidata, always show plain sister
-->|{{Plain sister<!--
-->| disambiguation = {{{แก้กำกวม|{{{แก้กำกวม|{{{disambiguation|}}}}}}}}}<!--
-->| edition = {{{รุ่น|{{{edition|}}}}}}<!--
-->| portal = {{{สถานีย่อย|{{{โครงการ|{{{portal|}}}}}}}}}<!--
เส้น 234 ⟶ 242:
 
Shortcut link
-->{{#if:{{{เว็บย่อ|{{{shortcut|}}}}}}|{{Shortcut|{{{เว็บย่อ|{{Shortcut|{{{shortcut}}}}}}}}}}<!--
 
Notes from parameter
เส้น 252 ⟶ 260:
 
END OF VISIBLE TEMPLATE
 
BEGIN ALL NON-VISIBLE ELEMENTS
This includes automatic categorisation, tracking categories and additional elements
 
MICROFORMAT DATA-->
เส้น 261 ⟶ 266:
--><span id="ws-article-id">{{{{{|safesubst:}}}PAGEID}}</span><!--
 
--><span id="ws-title">{{{ชื่อ|{{{ชื่อเรื่อง|{{{title|}}}}}}}}}{{#if:{{{ส่วน|{{{section|}}}}}}|&#32;— ''{{{ส่วน|{{{section}}}}}}''}}</span><!--
 
-->{{#if:{{{ผู้สร้างสรรค์|{{{author|}}}}}}{{{เขียนทับผู้สร้างสรรค์|{{{override_author|}}}}}}<!--
เส้น 267 ⟶ 272:
-->{{#if:{{{เขียนทับผู้สร้างสรรค์|{{{override_author|}}}}}}<!--
-->|{{{เขียนทับผู้สร้างสรรค์|{{{override_author}}}}}}<!--
-->|{{{ผู้สร้างสรรค์|{{{author|}}}}}}<!--
-->}}<!--
--></span><!--
เส้น 278 ⟶ 283:
-->{{#if:{{{เขียนทับผู้แปล|{{{override_translator|}}}}}}<!--
-->|{{{เขียนทับผู้แปล|{{{override_translator}}}}}}<!--
-->|{{{ผู้แปล|{{{translator|วิกิซอร์ซ}}}}}}<!--
-->}}<!--
--></span><!--
เส้น 298 ⟶ 303:
</div><!--
 
Subpages
Interwiki:
-->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
 
-->{{#if:{{{ภาษา|{{{language|}}}}}}
| {{#if:{{{ต้นฉบับ|{{{original|}}}}}}
| <!-- use the "ISO 639 name" template to check if a language code is valid before using it for an interwiki link
-->{{#ifeq:{{ISO 639 name|{{{ภาษา|{{{language}}}}}}|error}}|error
| <!-- unrecognised language, so no attempt at creating an interwiki link -->
| {{#switch:{{{ภาษา|{{{language}}}}}}<!-- check for other forms of English held on this wiki -->
| ang | enm | sco = [[{{{ภาษา|{{{language}}}}}}:en:{{{ต้นฉบับ|{{{original}}}}}}]]<!-- cycle to mul.ws and back around to en.ws -->
| #default = [[{{{ภาษา|{{{language}}}}}}:{{{ต้นฉบับ|{{{original}}}}}}]]<!-- general interwiki link -->
}}<!-- end switch language -->
}}<!-- end ifeq ISO 639 name/language = error -->
}}<!-- add the interwiki link and...
 
...show "(original)" beside the sidebar link matching the original language and categorizes by original language
--><span class="interwiki-info" id="{{{ภาษา|{{{language}}}}}}" title="(original)" style="display:none"></span>
}}<!--
 
Subpages:
 
-->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
|{{#ifexist:{{#rel2abs:../}}|1}}
|{{#ifexist:{{#rel2abs:../../}}|1}}
|{{#ifexist:{{#rel2abs:../../../}}|1}} = [[หมวดหมู่:{{#if:{{NAMESPACE}}|หน้าย่อยของ{{NAMESPACE}} subpages|Subpagesหน้าย่อย}}]]
}}}}<!--
 
Categories:
General categorisation:
-->{{#if:{{{หมวดหมู่|{{{categories|}}}}}}
 
|<!-- Replace each string that ends in a slash with a category definition.
-->[[หมวดหมู่:งานแปลของวิกิซอร์ซ]]<!--
This does include the final one because we're adding a slash to the input string.
-->{{#invoke:String|replace|{{{หมวดหมู่|{{{categories}}}}}}/|([^/]+)/*|[[หมวดหมู่:%1]]||plain=false }}<!--
 
-->}}<!--
Tracking categories:
 
Track pages using the author override
Track translations by original language
-->{{#if:{{{เขียนทับผู้สร้างสรรค์|{{{override_author|}}}}}}|[[หมวดหมู่:หน้าที่มีการเขียนทับผู้สร้างสรรค์]]}}<!--
-->{{#if:{{{ภาษา|{{{language|}}}}}}
|[[หมวดหมู่:งานที่ต้นฉบับเป็นภาษา{{ISO 639 name|{{{ภาษา|{{{language}}}}}}|ที่ไม่อาจระบุได้}}]]
|[[หมวดหมู่:งานแปลของวิกิซอร์ซซึ่งไม่ได้ระบุภาษาต้นฉบับ]]<!-- if no language has been provided in the template, add a tracking category for future maintenance -->
}}<!--
 
Track pages withusing nocontributor original given
-->{{#if:{{{ผู้มีส่วนร่วม|{{{contributor|}}}}}}|[[หมวดหมู่:หน้าที่ระบุผู้มีส่วนร่วม]]}}<!--
-->{{#ifeq:{{{ต้นฉบับ|{{{original|}}}}}}
|
|[[หมวดหมู่:งานแปลของวิกิซอร์ซซึ่งไม่ได้ระบุงานต้นฉบับ]]
}}<!--
 
Track pages using theoverride_contributor author override
-->{{#if:{{{เขียนทับผู้สร้างสรรค์มีส่วนร่วม|{{{override_authoroverride_contributor|}}}}}}|[[หมวดหมู่:หน้าที่มีการเขียนทับผู้มีส่วนร่วม]]}}<!--
|[[หมวดหมู่:หน้าที่เขียนทับผู้สร้างสรรค์]]
}}<!--
 
Track pages with no author given
-->{{#ifeq:{{lc:{{{เขียนทับผู้สร้างสรรค์|{{{override_author|{{{ผู้สร้างสรรค์|{{{author|}}}}}}}}}}}}}}|unknown|[[หมวดหมู่:เอกสารที่ผู้สร้างสรรค์เป็นบุคคลนิรนาม]]}}<!--
|unknown
|[[หมวดหมู่:การแปลงานของบุคคลนิรนาม]]
}}<!--
 
Track pages using shortcuts
-->{{#if:{{{เว็บย่อ|{{{shortcut|}}}}}}|[[หมวดหมู่:หน้าเมนสเปซที่มีเว็บย่อ]]}}<!--
|[[หมวดหมู่:หน้าในเนมสเปซงานแปลที่มีเว็บย่อ]]
}}<!--
 
Track pages using the year override options
Categorise page by year, track pages with no year (only if not a subpage or disambiguation page)
-->{{#if:{{{เขียนทับปี|{{{override_year|}}}}}}|[[หมวดหมู่:หน้าที่มีการเขียนทับปี]]}}<!--
-->{{#ifeq:{{BASEPAGENAME}}
-->{{#if:{{{ไม่ปี|{{{noyear|}}}}}}|[[หมวดหมู่:หน้าที่ใช้พารามิเตอร์ไม่ปี]]}}<!--
|{{PAGENAME}}
-->{{#if:{{{หมวดหมู่ไม่ปี|{{{noyearcat|}}}}}}|[[หมวดหมู่:หน้าที่ใช้พารามิเตอร์หมวดหมู่ไม่ปี]]}}<!--
|{{#ifeq:{{{แก้กำกวม|{{{disambiguation|}}}}}}
|yes
|
|{{#if:{{{เขียนทับปี|{{{override_year|}}}}}}{{{หมวดหมู่ไม่ปี|{{{noyearcat|}}}}}}
|{{#if:{{{เขียนทับปี|{{{override_year|}}}}}}
|[[หมวดหมู่:Pages with override year]]
}}<!-- end if override_year
-->{{#if:{{{หมวดหมู่ไม่ปี|{{{noyearcat|}}}}}}
|[[หมวดหมู่:หน้าที่ใช้พารามิเตอร์หมวดหมู่ไม่ปี]]
}}<!-- end if noyearcat -->
|<!-- {{Header/year|{{{ปี|{{{year|}}}}}}}} --><!-- REPLACE THIS -->
}}<!-- end if override_year/noyearcat -->
}}<!-- end ifeq disambiguation -->
}}<!-- end ifeq BASEPAGENAME
 
Protection level detection and automatic icon
-->{{#if:{{NAMESPACE}}
|<!-- no effect outside the main namespace -->
|{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}<!-- if page protected -->
|{{locked}}<!-- call the locked (top icon) template -->
}}
}}<!--
 
END OF NON-VISIBLE CONTENT
== BEGIN TEMPLATE ONLY ELEMENTS ==
 
--></includeonly><!--