ผลต่างระหว่างรุ่นของ "แม่แบบ:อายุขัย/doc"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
2T (คุย | ส่วนร่วม)
หน้าใหม่: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{TOCright}} ==Usage== '''<code><nowiki>{{</nowiki>อายุข...
 
แปลจากภาษาอังกฤษ
บรรทัด 1:
{{Documentation subpage}}
<!--
กรุณาเพิ่มหมวดหมู่ เพิ่มวิกิสนเทศใต้หน้านี้
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->
{{TOCright}}
 
==ข้อบ่งใช้==
==Usage==
 
'''<code><nowiki>{{</nowiki>อายุขัย}}</code>''' ใช้สำหรับการสร้างหมวดหมู่ทั้งหมดที่เกี่ยวข้องกับปีที่เกิดและเสียชีวิต ประกอบไปด้วยบุคคลที่ยังมีชีวิตอยู่และไม่ระบุหรือไม่ทราบปี โดยทั่วไป DEFAULTSORT สามารถฝังได้เช่นกัน แต่ไม่ได้ใช้เพื่อแทน DEFAULTSORT ที่มีอยู่แล้ว และ/หรือแท็กหมวดหมู่
'''<code><nowiki>{{</nowiki>อายุขัย}}</code>''' is for automatically generating all category tags related to birth and death years, including living people and missing or unknown values. The general DEFAULTSORT can be embedded as well. It should not be used to replace existing DEFAULTSORT and/or category tags.
 
: <code><nowiki>{{</nowiki>อายุขัย|''ปีเกิดเป็น พ.ศ.''|''ปีเสียชีวิตเป็น พ.ศ.''|''sort key''}}</code>
 
จะแสดงผลเป็น:
will generate:
 
: <code><nowiki>{{</nowiki>DEFAULTSORT:''sort key''}}</code>
เส้น 17 ⟶ 18:
: <code><nowiki>[[</nowiki>หมวดหมู่:บุคคลที่เสียชีวิตในปี พ.ศ. ''ปีเสียชีวิต'']]</code>
 
กรณีอื่นที่ถูกจัดการด้วยตัวเลือกนี้ ให้ดูข้างล่างเหมือนต้นฉบับ ฝังด้วย[[Help:Magic words|คำวิเศษ]] DEFAULTSORT ด้วยมีผลบังคับใช้กับหมวดหมู่ทั้งหมดในหน้า ไม่ว่าจะเป็นแม่แบบอายุขัยเป็นก่อนและหลังจากนั้น
Other cases are handled with options, see below. As with the original, the embedded [[Help:Magic words|magic word]] DEFAULTSORT also applies to all categories on the page, nomatter whether the lifetime template is before or after them.
 
แม่แบบนี้รองรับ[[Help:Substitution#Optional substitution|การแทนที่ไม่จำเป็น]]. หากคุณต้องการที่จะแทนที่มัน ใช้วากยสัมพันธ์ดังนี้:
This template supports [[Help:Substitution#Optional substitution|optional substitution]]. If you want to substitute it, use the following syntax:
 
: <code><nowiki>{{</nowiki>'''subst:'''อายุขัย|''ปีเกิด''|''ปีเสียชีวิต''|''sort key'''''|subst=subst:'''}}</code>
 
ตั้งแต่แนะนำหมวดหมู่เป็นรายการที่แนะนำมากที่สุด แม่แบบอายุขัยควรจะวางไว้หลังป้ายหมวดหมู่สุดท้ายเป็นการทั่วไป, สำหรับตัวอย่าง:
Since Categories are preferred to be listed in most-common order, the อายุขัย template should generally be placed after the last Category tag, for example:
 
: <code><nowiki>[[</nowiki>หมวดหมู่:ABC]]</code>
เส้น 31 ⟶ 32:
 
 
==ดูเพิ่ม==
==See also==
* [[แม่แบบ:Lifetime]]