انتقل إلى المحتوى

موضيل:Format date/شرح

من ويكيپيديا
موضيل ؤلا شرح د لموضيل مامطرجمش. عافاك عاون ف طّرجامة ديالو.

تخدام

[بدل لكود]

This template ({{Format date}}) returns a date, or date-time, without the hidden version for use in microformats. This template is probably best used internally in other templates.

If you need the microformat support, use template {{Start date}} instead.

If you want sortable dates for a table, use {{Date table sorting}} instead.

سانطاكس

[بدل لكود]
  • {{Format date|year|month|day}}
  • {{Format date|year|month|day|HH|MM|SS|TimeZone}} (MM and SS are optional; TimeZone may be a numerical value, or "Z" for UTC; see examples)

Examples:

  • {{Format date|1993}} returns "1993"
  • {{Format date|1993|02}} returns "فبراير 1993"
  • {{Format date|1993|02|24}} returns "فبراير 24, 1993"
  • {{Format date|1993|02|24|08|30}} returns "08:30, فبراير 24, 1993"
  • {{Format date|1993|02|24|08|+01:00}} returns "فبراير 24, 1993 (+01:00)"
  • {{Format date|1993|02|24|08|-07:00}} returns "فبراير 24, 1993 (-07:00)"
    {{Format date|1993|02|24|08|30|23}} returns "08:30:23, فبراير 24, 1993"
  • {{Format date|1993|02|24|08|30|23|Z}} returns "08:30:23, فبراير 24, 1993 (UTC)"
  • {{Format date|1993|02|24|08|30|23|+01:00}} returns "08:30:23, فبراير 24, 1993 (+01:00)"
  • {{Format date|1993|02|24|08|30|23|-07:00}} returns "08:30:23, فبراير 24, 1993 (-07:00)"

An optional parameter, df, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in articles about events in parts of the world where the day precedes the month in a date.

Examples:

  • {{Format date|1993|02|24}} returns "24 فبراير 1993"
  • {{Format date|1993|02|24|08|30}} returns "08:30, 24 فبراير 1993"

Note: The template will appear broken when the parameters are left blank (as seen hereinbefore).

شوف تا

[بدل لكود]
  • {{Date}} (an alternative to this template, using a different syntax)
  • {{Start date}} (using the same syntax, but with the support for microformats)
  • {{Start-date}} (an alternative to the template {{Start date}})
  • {{Format time}} for formatting times only


عبرات متعددة ديال الوقت

[بدل لكود]
النوع قابلة للتبديل الوقت دابا البارح غدا
التاريخ و الساعة {{time}} {{Currentdate}} (MDY)
{{Plain now}} (DMY)
{{Now}} (DMY ف جملة كاملة)
{{Simple now}}
غير التاريخ {{Dateonly}}
{{Datedow}}
(فيه نهار ديال السيمانة)
{{Date}} (ختار الشكل)
{{DATE}} (مع date=)
{{TODAY}} (DMY)
{{Yesterday}}
{{Day-1}}
{{Tomorrow}}
{{Day+1}}
غير الشهر و العام {{Monthyear}} {{Monthyear-1}} {{Monthyear+1}}
غير الساعة {{Timeonly}} {{CURRENTTIME}} (12h)
{{CURRENTTIME24}} (24h)
بانيرات {{Right now}}
(زرقا فيها الوقت و عدد المقالات ف ويكيپيديا)
خاتم زماني {{Timestamp}}
(الشكل: YYYYMMDDhhmmss)

عبرات مفردة ديال الوقت

[بدل لكود]
عبرة ديال الوقت قابلة للتبديل الوقت دابا البارح غدا
ثانية {{CURRENTSECOND}}
دقيقة {{CURRENTMINUTE}}
ساعة {{CURRENTHOUR}}
سيمانة {{CURRENTWEEK}}
{{CURRENTWEEKOFMONTH}}
نهار ديال السيمانة {{DAYOFWEEK}} {{CURRENTDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
شهر {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (ب الزيروات ف لبدية)
{{CURRENTMONTHNAME}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTH1}}
{{CURRENTMONTHDAYS}}
{{LASTMONTHNAME}} {{NEXTMONTHNAME}}
نهار ديال الشهر {{CURRENTDAY}}
{{CURRENTDAY2}} (ب زيروات)
عام {{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
{{CURRENTYEAR}}
{{LASTYEAR}} {{NEXTYEAR}}
نهار ديال العام {{CURRENTDAYOFYEAR}}
عقد (10 دالسنين) {{DECADE}} {{CURRENTDECADE}}
قرن {{Century}} {{CURRENTCENTURY}}
ألفية {{MILLENNIUM}}

موضيلات ديال التاريخ و الوقت مديورين باش يتعوضو:

[بدل لكود]

شهر:
{{Lmonth}} كتخرج موضيل:Lmonth
{{Nmonth}} كتخرج موضيل:Nmonth
{{Last month}} كتخرج موضيل:Last month
{{Next month}} كتخرج موضيل:Next month


دوال التحليل (parser functions)

[بدل لكود]

موضيلات مفردين

[بدل لكود]

تصنيفات ديال الموضيلات

[بدل لكود]

لا وصف.

وسائط القالب[تحرير بيانات القالب]

وسيطوصفنوعحالة
Year1 year

The year to render in the date

مثال
1997
قيمة تلقائية
رقممقترح
Month2 month

The month to render in the date

مثال
January
قيمة تلقائية
نصمقترح
Day3 day

The day of the month to format in the date

مثال
20
قيمة تلقائية
نصمقترح
Hour (HH)4 hour hh

the hour to format in the date (if desired)

مثال
03
قيمة تلقائية
نصاختياري
Minute (MM)5 minute mm

The minute to format in the date (if desired)

مثال
21
نصاختياري
Second (SS)6 second ss sec

The second to format in the date (if desired)

مثال
10
قيمة تلقائية
نصاختياري
Time zone7 timezone TimeZone tz

A numerical offset from UTC, or 'Z'

مثال
+5
نصاختياري
Day first?df dayfirst

If 'y' or 'yes', displays the day before the month

نصاختياري
Time joinertime_joiner

if included, replaces comma in "<time>, <date>" with the value given

مثال
on
نصاختياري
Hour formathour_format

Formats hours and whether to render AM/PM or a.m./p.m.

مثال
g (7 ... p.m.), G (07 ... PM), h (19), or H (19)
نصاختياري