رویه
نکتهٔ مهم: چون از این الگو یا تغییر مسیرش (الگو:age in days) در درون الگوهای دیگری نیز استفاده شدهاست که آنها نیاز دارند که حتماً خروجی این «سن به روز» به صورت عددی فرنگی باشد، هنگام استفاده از این الگو در مقالهها یا صفحههای بحث، خروجی این الگو به صورت عددی عربی نشان داده میشود که برای فارسی دیده شدنش کافی است که آن را درون {{formatnum: }} قرار دهیم، به مثال زیر توجه کنید:
{{سن به روز|۲۰۰۷|۵|۲۴}} که این را میدهد: 6204
{{formatnum: {{سن به روز|۲۰۰۷|۵|۲۴}} }}
که این را میدهد: ۶٬۲۰۴
البته همانگونه که از مثال پیداست، ورودی الگو میتواند هم با عددهای فارسی باشد و هم عددهای فرنگی.
جستارهای وابسته
الگوهای تولد، مرگ و سن |
---|
تولد، مرگ، سن |
---|
الگو | شرح / کاربرد
| {{BirthDeathAge}} | Combines functions of {{تاریخ تولد}}, {{Birth-date}}, {{تاریخ تولد و سن}}, {{سال تولد و سن}}, {{Death date}}, {{death-date}}, {{تاریخ مرگ و سن}} and {death year and age}}.
| {{تاریخ تولد}} | To display a birth date and related hidden metadata.
| {{birth-date}} |
| {{تاریخ تولد و سن}} | {{birth date}} with suffix "(age N)".
| {{birth date and age2}} | {{birth date and age}} plus age as of a specified date.
| {{تاریخ-تولد و سن}} | As {{birth date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| {{سال تولد و سن}} | Year of birth and approximate age.
| {{Birth based on age as of date}} | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
| {{Birth date based on age at death}} | To display approximate birth year based on age at death.
|
الگو | شرح / کاربرد
| {{death date}} | To display a death date and related hidden metadata.
| {{end-date}} |
| {{تاریخ مرگ و سن}} | {{death date}} with suffix "(age N)".
| {{death-date and age}} | As {{death date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| {{تاریخ مرگ و سن معلوم}} | To display a death date and specified age.
| {{سال مرگ و سن}} | To display a year of and approximate age at death.
|
|
|
فقط سن |
---|
الگو | شرح / کاربرد
| {{سن}} | Age based on number of complete years between two dates.
| {{age nts}} | {{age}} with output formatted for use in sortable tables.
| {{سن از تاریخ}} | Current age (in years) from a known age at a specified date.
|
|
|
|