الاستخدام

عدل

{{#استدعاء:Age|اسم_الوظيفة}}

Templates supported

عدل

وحدة:Age implements the following templates:

Template Required wikitext
{{extract}} {{#invoke:age|extract}}
{{تسلسل تاريخ اليوم}} {{#invoke:age|gsd}}
{{JULIANDAY}} {{#invoke:age|JULIANDAY}}
{{time interval}} {{#invoke:age|time_interval}}
{{العمر بالأيام}} {{#invoke:age|age_generic|template=age_days}}
{{age in days nts}} {{#invoke:age|age_generic|template=age_days_nts}}
{{duration in days}} {{#invoke:age|age_generic|template=duration_days}}
{{duration in days nts}} {{#invoke:age|age_generic|template=duration_days_nts}}
{{عمر}} {{#invoke:age|age_generic|template=age_full_years}}
{{age nts}} {{#invoke:age|age_generic|template=age_full_years_nts}}
{{age in years}} {{#invoke:age|age_generic|template=age_in_years}}
{{age in years nts}} {{#invoke:age|age_generic|template=age_in_years_nts}}
{{age for infant}} {{#invoke:age|age_generic|template=age_infant}}
{{العمر بالأشهر}} {{#invoke:age|age_generic|template=age_m}}
{{age in weeks}} {{#invoke:age|age_generic|template=age_w}}
{{age in weeks and days}} {{#invoke:age|age_generic|template=age_wd}}
{{العمر في السنوات والأيام}} {{#invoke:age|age_generic|template=age_yd}}
{{age in years and months}} {{#invoke:age|age_generic|template=age_ym}}
{{منذ سنة شهر يوم}} {{#invoke:age|age_generic|template=age_ymd}}
{{العمر بالسنين والشهور والأسابيع والأيام}} {{#invoke:age|age_generic|template=age_ymwd}}

The age templates expect the older date to be first. The implementations of age_in_years and age_in_years_nts display an error message if that is not the case. If similar checking is wanted for other templates, negative=error can be added to the invoke. For example, {{عمر}} might use:

  • {{#invoke:age|age_generic|template=age_full_years|negative=error}}

If negative=error does not apply, a negative difference is indicated with a minus sign (−).