แม่แบบ:Age switch/doc

จากวิกิพีเดีย สารานุกรมเสรี

การใช้งาน[แก้]

This template is intended to be used by other templates. It returns a "0" if the "age," with respect to "d," has not been reached or a "1" if it has. Returns "-1" if "d" is not a valid date.

It is useful for countdown timers.

พารามิเตอร์
  • |d= คือ วันที่นาฬิกา "เริ่ม" เวลา
  • |age= คือ อายุที่ผลลัพธ์จะเปลี่ยนจาก 0 เป็น 1 (ไม่บังคับ ค่าเริ่มต้นคือ 1 สัปดาห์)
ข้อจำกัด
  • The "switch" from 0 to 1 happens only when the page this template is used on is updated or purged. If a page includes a template which calls this template, it is the page the reader sees, not the template which calls this template, which must be purged or updated.

ดูเพิ่ม[แก้]