Redigerer
Mal:Date/dok
(avsnitt)
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
===Syntax=== This template takes up to two parameters, both of which are optional: <code><nowiki>{{</nowiki>date|</code><span style="color:gray;">''<date to be formatted>''</span>|<span style="color:gray;">''<date formatting style>''</span><code><nowiki>}}</nowiki></code> * '''''<date to be formatted>''''' is an (optional) date to be formatted. *: If no date is specified, the template emits the current date.<br />For example, {{nowrap|<code><nowiki>{{date}}</nowiki></code>}} produces {{date}}. To avoid emitting the current date if none is input, use [[Template:fdate]]. *: 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; ordinal "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|known issues]] below. *:* Only dates within the range {{date|January 1, 1000}} and {{date|December 31, 9999}} are supported. Dates with two-digit years will have the years from 1970 to 2069. Other dates outside the range 1000–9999 will be treated as if the second parameter were "none". *:* when using month numbers in numeric, the valid formats are MM/DD/YYYY, DD-MM-YYYY, DD.MM.YYYY, YYYY/MM/DD, YYYY-MM-DD, MM/DD/YY, YY-MM-DD, DD.MM.YY, the invalid formats are DD/MM/YYYY, MM-DD-YYYY, MM.DD.YY, YYYY.MM.DD, MM.DD.YYYY, DD-MM-YY, YY/MM/DD, DD/MM/YY, YY.MM.DD * '''''<date formatting style>''''' controls the date format in which the result is to be emitted. Recognized values for the second parameter are: *:* '''<code style="padding-right:3em;">DMY</code>''' gives ''d mmmm yyyy'' (e.g. ''{{date|2007-05-31|DMY}}''). This is the default format. *:* '''<code style="padding-right:3em;">MDY</code>''' gives ''mmmm d, yyyy'' (e.g. ''{{date|2007-05-31|MDY}}'') *:* '''<code style="padding-right:3em;">YMD</code>''' gives ''yyyy mmmm d'' (e.g. ''{{date|2007-05-31|YMD}}'') *:* '''<code style="padding-right:3em;">ISO</code>''' gives an [[WP:ISO 8601|ISO 8601]] style ''yyyy-mm-dd'' (e.g. ''{{date|2007-05-31|ISO}}'') *:* '''<code style="padding-right:2.5em;">none</code>''' applies no formatting whatsoever *: 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 <code>DMY</code>, or in "month d" format for formatting styles <code>MDY</code>, <code>YMD</code> and <code>ISO</code>. *: '''Notes''': *:* Although these are the four formats supported by MediaWiki's date autoformatting mechanism, only <code>DMY</code>/<code>lDMY</code> and <code>MDY</code>/<code>lMDY</code> are in accordance with the English language Wikipedia's [[MOS:DATE#Full date formatting|Manual of Style]]. The use of <code>ISO</code>/<code>lISO</code> ([[WP:ISO 8601|ISO 8601]]) format ''within article prose'' is expressly discouraged by the Manual of Style; this format should only be used in tables, lists, or references. *:* In each case, the result is exactly the same as what would be emitted by MediaWiki's date autoformatting mechanism.<div>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.</div> *:* Wikipedia caches the current version of pages, and the template may display the date that the page was cached, rather than the current date.
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon