Pang-bô͘:Age in years and days
Sú-iōng Lua thêng-sek: |
This template returns the number of full years and surplus days between two specified dates. If only one date is entered, the template returns the number of full years and surplus days between the specified date and today's date.
This template does not generate a sort key. In a sortable table, use Pang-bô͘:No redirect which redirects to {{age in years and days nts}}.
Usage[修改]
Each date can be entered in a single parameter, or each date can be entered as three parameters: year, month, day.
{{age in years and days|15 May 2010}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|12 Aug 2003|24 Sep 2011}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|1989|7|23}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|1989|7|23|2003|7|24}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|2007-03-02|2008-03-02}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。
An error is shown if an entered date is not valid (1900 was not a leap year).
{{age in years and days|31 January 1892|29 February 1900}}
→ Error: Second date should be year, month, day
Options[修改]
The default is to separate years and days with a comma. The separator is "and" if |sep=and
is used.
The default calculates an age—the day of the second date is not included in the calculation. A duration including the second date is calculated if |duration=on
is used.
{{age in years and days|1 Jan 2011|31 Dec 2012}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|1 Jan 2011|31 Dec 2012|sep=and}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。{{age in years and days|1 Jan 2011|31 Dec 2012|duration=on}}
→ Lua 錯誤 於第80行的package.lua中:module 'Module:Date' not found。
|
Téng-bīn ê bûn-kiāⁿ sī tùi Pang-bô͘:Age in years and days/doc khàm-ji̍p--ê. (pian-chi̍p | le̍k-sú) Pian-chip-chiá ē-sái tī chit-ê pang-bô͘ ê soa-a̍p (chhòng-kiàn | mirror) kap chhì-giām-kheh-suh (chhòng-kiàn) ia̍h-bīn chò si̍t-giām. Chhiáⁿ tī chú-ia̍h-bīn /doc lāi-bīn ka-thiam lūi-pia̍t. Pún pang-bô͘ ê chú-ia̍h-bīn. |