قالب:تاريخ2

من ويكيبيديا، الموسوعة الحرة
اذهب إلى: تصفح، ‏ ابحث

26 يوليو 2016

Symbol redirect vote2.svg
تحويلات:

This template converts a date to one of the standard date formats used on the English Wikipedia. This template is probably best used internally in other templates.

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

This template takes up to two parameters, both of which are optional:

{{date|<date to be formatted>|<date formatting style>}}

  • <date to be formatted> is an (optional) date to be formatted.
    If no date is specified, the template emits the current date.
    For example, {{date}} produces 26 يوليو 2016.
    If a date is provided, but is not recognized as one, the text is just returned as is. Most dates will however be recognized as such, including all the formats typically used on Wikipedia. Numerous variations thereof are also supported, including abbreviated or lower case month names; genitive "st", "nd", "rd", "th"; extraneous white space; missing comma etc.
    Notes:
    • Some dates are converted even if they are not real dates, and some dates are not converted even though they are real dates. See known issues below.
    • Only dates within the range 1 يناير 1000 and 31 ديسمبر 9999 are supported. Dates with two digit dates will have unexpected results. Other dates outside the range 1000–9999 will be treated as if the second parameter were "none".
  • <date formatting style> controls the date format in which the result is to be emitted. Recognized values for the second parameter are:
    • none applies no formatting whatsoever
    • dmy gives d mmmm yyyy (eg 25 ديسمبر 2011). This is the default format.
    • mdy gives mmmm d, yyyy (eg ديسمبر 25, 2011)
    • ymd gives yyyy mmmm dd (eg 2011 ديسمبر 25)
    • iso gives an ISO 8601 style yyyy-mm-dd (eg 2011-12-25)
    If a date to be formatted is provided but no style is specified, the template emits a date in "d month yyyy" format, as it appears (for example) on discussion pages. When no date is specified, then the current date is emitted with no year, either in "d month" format for formatting style dmy, or in "month d" format for formatting styles mdy, ymd and iso.
    Notes:
    • Although these are the four formats supported by MediaWiki's date autoformatting mechanism, only dmy/ldmy and mdy/lmdy are in accordance with the English language Wikipedia's Manual of Style. The use of iso/liso (ISO 8601) format within article prose is expressly discouraged by the Manual of Style; this format should only be used in tables or lists.
    • In each case, the result is exactly the same as what would be emitted by MediaWiki's date autoformatting mechanism.
      However, dates are not manipulated by MediaWiki's date autoformatting mechanism even when linked. This permits dates to have a consistent appearance regardless of whether they are linked or not.


مثال[عدل]

...

انظر أيضا[عدل]
https://ar.wikipedia.org/wiki/%D9%82%D8%A7%D9%84%D8%A8:%D8%AA%D8%A7%D8%B1%D9%8A%D8%AE2
ar.wikipedia.org
crawl=CC-MAIN-2016-30
36632
application/http; msgtype=response
sha1:YO3OEVEJNV5VQG5KRU6POHZJZSOIWUJ6
<urn:uuid:d0fa4a6d-be9c-400c-bc6b-9df61c56a51d>
2016-07-26T18:19:35Z
208.80.154.224
sha1:TI4UIG64Q4FIA23MPCA6C7OREBV76ESH
<urn:uuid:caf1cf94-6e13-415c-8a1f-091305b5638f>
https://ar.wikipedia.org/wiki/%D9%82%D8%A7%D9%84%D8%A8:%D8%AA%D8%A7%D8%B1%D9%8A%D8%AE2
response
<urn:uuid:3e935bd2-1bc4-454a-a478-ea27b4ee03e6>
robots: classic
hostname: ip-10-185-27-174.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-30
operator: CommonCrawl Admin
description: Wide crawl of the web for July 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf