قالب:العمر بالسنين والشهور والاسابيع والايام/شرح

من ويكيبيديا، الموسوعه الحره
هذه صفحة توثيق فرعية تخص قالب:العمر بالسنين والشهور والاسابيع والايام.
تحتوي هذه الصفحة على معلومات و تصنيف ومحتويات أخرى تتعلق بشرح القالب ولا تعتبر جزءا منه.
للاطلاع على صفحة القالب نفسه، انظر قالب:العمر بالسنين والشهور والاسابيع والايام.
  • {{العمر بالسنين والشهور والأسابيع والأيام|day1=15|month1=4|year1=1999}} → 25 {{{4}}}, 1 weeks and 2 {{{4}}}

الاستخدام[تعديل]

غلط تعبيري: عامل < مش متوقع year, غلط تعبيري: عامل < مش متوقع month, غلط تعبيري: عامل < مش متوقع week and غلط تعبيري: عامل < مش متوقع day

Note that all parameters default to the current date, so for example, the second set of parameters can be left out to calculate elapsed time since a past date:

  • {{Age in years, months, weeks and days|day1=1|month1=1|year1=1}}خطأ لوا في وحدة:Age على السطر 642: attempt to index local 'currentDate' (a nil value).

Or simply, using the simpler parameter names, compatible with {{منذ سنة شهر يوم}}:

  • {{Age in years, months, weeks and days|year=1|day=1|month=1}}خطأ لوا في وحدة:Age على السطر 642: attempt to index local 'currentDate' (a nil value).

Alternatively, the first set of parameters can be left out to get the time left until a future date, such as the next ويكيبيديا:يوم ويكيبيديا:

  • {{Age in years, months, weeks and days|year2=2025|month2=1|day2=15}}خطأ لوا في وحدة:Age على السطر 642: attempt to index local 'currentDate' (a nil value).