• Unang Panid
  • Bisan Unsa
  • Duol
  • Sulod
  • Mga kahimtang
  • Mga donasyon
  • Mahitungod sa Wikipedia
  • Mga pagpasabot
Wikipedia

Plantilya:Age in days

  • Basaha sa laing pinulongan
  • Bantayi
  • Usba
Dokumentasyon sa Plantilya[tan-awa] [usba] [kaagi] [bag-oha]

Mga sulod

  • 1 Usage
    • 1.1 Inputting dates
      • 1.1.1 Full dates
      • 1.1.2 Year, month and day
    • 1.2 Sorting
    • 1.3 Formatting
    • 1.4 Showing the unit
    • 1.5 Rounding
    • 1.6 Time zones
  • 2 See also

Usage Usba

Inputting dates Usba

This template returns the number of days between two dates. Dates may be input either as full dates or as year, month and day. Omitted parameters to their current value.

Full dates Usba

To use, type:

{{age in days|date1|date2}}  (number of days between dates 1 and 2),
{{age in days|date1}} (number of days since date 1) or
{{age in days||date2}} (number of days until date 2)

Examples:

{{age in days|19 Aug 2008|4 Sep 2010}} gives 746
{{age in days|27 May 2002}} gives 7,778
{{age in days||{{#time:j M Y|+ 15 months}}}}  gives Expression error: Unexpected < operator.Expression error: Unexpected < operator.

Year, month and day Usba

To use, type:

{{age in days|year1|month1|day1|year2|month2|day2}}  (number of days between dates 1 and 2),
{{age in days|year1|month1|day1}} (number of days since date 1) or
{{age in days||||year2|month2|day2}} (number of day until date 2)

Or with named parameters:

{{age in days|month1= |day1= |year1= |month2= |day2= | year2= }}  (number of days between dates 1 and 2),
{{age in days|month1= |day1= |year1= }} (number of days since date 1) or
{{age in days|month2= |day2= | year2= }} (number of day until date 2)

Examples:

{{age in days|2007|5|24|2008|4|23}}  gives Problema sa ekspresyon: Wa mailhi nga karakter "[".
{{age in days|2007|5|24}} gives Problema sa ekspresyon: Wa mailhi nga karakter "[".

Sorting Usba

By adding |sortable=on a sort key will be added to the output for use in sortable tables. The sort key is produced by {{nts}} and is based on the SI unit of time (the second).

Formatting Usba

Three styles of formatting are possible.

|format=raw gives unformatted numbers with hyphens as minus signs[1] (for use in further calculations).
|format=commas  gives numbers formatted with commas (using {{formatnum:}}) and true minus signs.
|format=gaps gives numbers formatted with thin spaces (using {{val}}) and true minus signs.

For reasons of retrospective compatibility, the default when inputting dates as year, month and day is |format=raw; however when inputting dates in full it is |format=commas.

Note
  1. ↑ Negative days will occur if the first date is after the second.

Showing the unit Usba

The default is not to show units. To show the unit ("day", days" or "d") use |show unit=.

|show unit=abbr  adds "d" after the number of days.
|show unit=full adds "day" or "days" after the number of days as appropriate.

Rounding Usba

The template rounds down to the nearest number of full days.

Time zones Usba

As noted above, date parameters left undefined default to their current value. Note that this is the current UTC value. Instead of leaving the parameter blank, however, an offset may be added, for example, {{age in days|28 December 2007|+ 5 hours 45 min}} will give the number of days since the king of Nepal was deposed. Note that this will only work when entering full dates (e.g. {{age in days|2007|12|28|+ 5 hours 45 min}} will produce an error message).

See also Usba

Ang Wikimedia Commons adunay mga payl ug medya nga naay kalabotan kang/sa: Template:Age in days.
  • Wikipedia:Age calculation templates
  • {{Duration in days}}
  • {{Time ago}}

Plantilya:Birth, death and age templates

Ang kining kasulatan o dokumentasyon kay gihubad gikan sa Plantilya:Age in days/dok. (usba | kaagi)
Mahimong mag-eksperimento ang mga editor sa niining plantilya sa sandbox (himoa | mirror) ug testcases (himoa) nga mga panid.
Palihug idugang ang mga kategoriya sa /dok nga mga kuabang panid. Ang kaubang mga panid niining plantilya.
Gikuha gikan sa "https://ceb.wikipedia.org/w/index.php?title=Plantilya:Age_in_days&oldid=12668262"
Kataposang giusab niadtong 4 Pebrero 2017, 21:27

Pinulongan

    • Afrikaans
    • Alemannisch
    • العربية
    • ܐܪܡܝܐ
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Boarisch
    • Беларуская
    • Беларуская (тарашкевіца)
    • Български
    • भोजपुरी
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • བོད་ཡིག
    • Bosanski
    • Català
    • Нохчийн
    • کوردی
    • Čeština
    • Cymraeg
    • Dansk
    • Deutsch
    • Zazaki
    • Dolnoserbski
    • डोटेली
    • ދިވެހިބަސް
    • Ελληνικά
    • English
    • Esperanto
    • Español
    • Eesti
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Galego
    • ગુજરાતી
    • עברית
    • हिन्दी
    • Hornjoserbsce
    • Magyar
    • Հայերեն
    • Bahasa Indonesia
    • Ilokano
    • Íslenska
    • Italiano
    • 日本語
    • Jawa
    • ქართული
    • Қазақша
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • Къарачай-малкъар
    • Kurdî
    • Кыргызча
    • Latviešu
    • मैथिली
    • Māori
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာ မန်
    • मराठी
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • Plattdüütsch
    • नेपाली
    • Nederlands
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • ਪੰਜਾਬੀ
    • Kapampangan
    • Polski
    • پنجابی
    • پښتو
    • Português
    • Română
    • Русский
    • Русиньскый
    • संस्कृतम्
    • Саха тыла
    • ᱥᱟᱱᱛᱟᱲᱤ
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • ၽႃႇသႃႇတႆး
    • සිංහල
    • Simple English
    • Slovenčina
    • Slovenščina
    • Gagana Samoa
    • Српски / srpski
    • Sunda
    • Svenska
    • Kiswahili
    • தமிழ்
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • ትግርኛ
    • Türkmençe
    • Tok Pisin
    • Türkçe
    • Татарча / tatarça
    • Тыва дыл
    • Удмурт
    • ئۇيغۇرچە / Uyghurche
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Vèneto
    • Tiếng Việt
    • Winaray
    • 吴语
    • Yorùbá
    • 中文
    • 文言
    • Bân-lâm-gú
    • 粵語
    Wikipedia
    • Kining maong panid kataposang giusab niadtong 4 Pebrero 2017 sa 21:27.
    • Ang sulod magamit ubos sa CC BY-SA 4.0 gawas kon giingong dili.
    • Palisiya sa personal nga impormasyon
    • Mahitungod sa Wikipedia
    • Mga pagpasabot
    • Code of Conduct
    • Kasabotan sa Paggamit
    • Desktop
    • Mga tig-ugmad
    • Statistics
    • Cookie statement