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!
===Examples=== ====With valid input==== {| class="wikitable" style="width:80%; margin:0 10%; border: 2px solid gray" ! scope="col" style="width:20%;" | Format ! scope="col" style="width:40%;" | Input ! scope="col" style="width:40%;" | Output |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | not specified | <code><nowiki>{{date|2006-08-04}}</nowiki></code> | {{date|2006-08-04}} |- | <code><nowiki>{{date|Aug 4, 2006}}</nowiki></code> | {{date|Aug 4, 2006}} |- | <code><nowiki>{{date|4 August 2006}}</nowiki></code> | {{date|4 August 2006}} |- | <code><nowiki>{{date|4 August}}</nowiki></code> | {{date|4 August}} |- | <code><nowiki>{{date|Aug 4}}</nowiki></code> | {{date|Aug 4}} |- | <code><nowiki>{{date|}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date|}} ''(missing year)'' |- | <code><nowiki>{{date}}</nowiki></code> | {{date}} |- | <code><nowiki>{{date|2=}}</nowiki></code> | {{date|2=}} |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | ''[[Calendar date#Gregorian, day-month-year (DMY)|DMY]]'' format | <code><nowiki>{{date|2006-08-04|DMY}}</nowiki></code> | {{date|2006-08-04|DMY}} |- | <code><nowiki>{{date|Aug 4, 2006|DMY}}</nowiki></code> | {{date|Aug 4, 2006|DMY}} |- | <code><nowiki>{{date|4 August 2006|DMY}}</nowiki></code> | {{date|4 August 2006|DMY}} |- | <code><nowiki>{{date|4 August|DMY}}</nowiki></code> | {{date|4 August|DMY}} |- | <code><nowiki>{{date|Aug 4|DMY}}</nowiki></code> | {{date|Aug 4|DMY}} |- | <code><nowiki>{{date||DMY}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date||DMY}} ''(missing year)'' |- | <code><nowiki>{{date|2=DMY}}</nowiki></code> | {{date|2=DMY}} |- | <code><nowiki>{{date|{{date}}|DMY}}</nowiki></code> | {{date|{{date}}|DMY}} |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | ''[[Calendar date#Gregorian, month-day-year (MDY)|MDY]]'' format | <code><nowiki>{{date|2006-08-04|MDY}}</nowiki></code> | {{date|2006-08-04|MDY}} |- | <code><nowiki>{{date|Aug 4, 2006|MDY}}</nowiki></code> | {{date|Aug 4, 2006|MDY}} |- | <code><nowiki>{{date|4 August 2006|MDY}}</nowiki></code> | {{date|4 August 2006|MDY}} |- | <code><nowiki>{{date|4 August|MDY}}</nowiki></code> | {{date|4 August|MDY}} |- | <code><nowiki>{{date|Aug 4|MDY}}</nowiki></code> | {{date|Aug 4|MDY}} |- | <code><nowiki>{{date||MDY}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date||MDY}} ''(missing year)'' |- | <code><nowiki>{{date|2=MDY}}</nowiki></code> | {{date|2=MDY}} |- | <code><nowiki>{{date|{{date}}|MDY}}</nowiki></code> | {{date|{{date}}|MDY}} |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | ''[[Calendar date#Gregorian, year-month-day (YMD)|YMD]]'' format | <code><nowiki>{{date|2006-08-04|YMD}}</nowiki></code> | {{date|2006-08-04|YMD}} |- | <code><nowiki>{{date|Aug 4, 2006|YMD}}</nowiki></code> | {{date|Aug 4, 2006|YMD}} |- | <code><nowiki>{{date|4 August 2006|YMD}}</nowiki></code> | {{date|4 August 2006|YMD}} |- | <code><nowiki>{{date|4 August|YMD}}</nowiki></code> | {{date|4 August|YMD}} |- | <code><nowiki>{{date|Aug 4|YMD}}</nowiki></code> | {{date|Aug 4|YMD}} |- | <code><nowiki>{{date||YMD}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date||YMD}} ''(missing year)'' |- | <code><nowiki>{{date|2=YMD}}</nowiki></code> | {{date|2=YMD}} |- | <code><nowiki>{{date|{{date}}|YMD}}</nowiki></code> | {{date|{{date}}|YMD}} |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | ''[[ISO 8601|ISO]]'' format | <code><nowiki>{{date|2006-08-04|ISO}}</nowiki></code> | {{date|2006-08-04|ISO}} |- | <code><nowiki>{{date|Aug 4, 2006|ISO}}</nowiki></code> | {{date|Aug 4, 2006|ISO}} |- | <code><nowiki>{{date|4 August 2006|ISO}}</nowiki></code> | {{date|4 August 2006|ISO}} |- | <code><nowiki>{{date|4 August|ISO}}</nowiki></code> | style="background-color:#F0C0C0;" |{{date|--08-04|ISO}} |- | <code><nowiki>{{date|Aug 4|ISO}}</nowiki></code> | style="background-color:#F0C0C0;" |{{date|--08-04|ISO}} |- | <code><nowiki>{{date|{{#time: --m-d}}|ISO}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date|{{#time: --m-d}}|ISO}} ''(missing year)'' |- | <code><nowiki>{{date|2=ISO}}</nowiki></code> | {{date|2=ISO}} |- | <code><nowiki>{{date|{{date}}|ISO}}</nowiki></code> | {{date|{{date}}|ISO}} |- style="border-top: 2px solid gray" ! scope="row" rowspan="8" | ''none'' format | <code><nowiki>{{date|2006-08-04|none}}</nowiki></code> | {{date|2006-08-04|none}} |- | <code><nowiki>{{date|Aug 4, 2006|none}}</nowiki></code> | {{date|Aug 4, 2006|none}} |- | <code><nowiki>{{date|4 August 2006|none}}</nowiki></code> | {{date|4 August 2006|none}} |- | <code><nowiki>{{date|4 August|none}}</nowiki></code> | {{date|4 August|none}} |- | <code><nowiki>{{date|Aug 4|none}}</nowiki></code> | {{date|Aug 4|none}} |- | <code><nowiki>{{date||none}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date || none}} ''(blank)'' |- | <code><nowiki>{{date|2=none}}</nowiki></code> | style="background-color:#F0C0C0;" | {{date|2=none}} ''(blank)'' |- | <code><nowiki>{{date|{{date}}|none}}</nowiki></code> | {{date|{{date}}|none}} |} ====Other acceptable input==== A wide variety of other input formats are handled correctly by the template: {| class="wikitable" style="width:80%; margin:0 10%" ! scope="col" style="width:50%;" | Input ! scope="col" style="width:50%;" | Output |- | <code><nowiki>{{date|1st December 2008}}</nowiki></code> ([[Ordinal number (linguistics)|ordinal]] 'st') | {{date|1st December 2008}} |- | <code><nowiki>{{date|June 24 2006}}</nowiki></code> (missing comma) | {{date|june 24 2006}} |- | <code><nowiki>{{date|24 june 2006}}</nowiki></code> (lowercase month name) | {{date|24 june 2006}} |- | <code><nowiki>{{date|24 jun}}</nowiki></code> (abbreviated month name) | {{date|24 jun}} |- | <code><nowiki>{{date|June 2006}}</nowiki></code> | {{date|June 2006}} |- | <code><nowiki>{{date|2006 June}}</nowiki></code> | {{date|2006 June}} |- | <code><nowiki>{{date|05/31/2012}}</nowiki></code> | {{date|05/31/2012}} |- | <code><nowiki>{{date|31-05-2012}}</nowiki></code> | {{date|31-05-2012}} |} ====Invalid input==== Input strings that the template cannot format are returned unaltered. This includes strings containing characters such as square brackets, so any links will result in unformatted output. {| class="wikitable" style="width:80%; margin:0 10%" ! scope="col" style="width:50%;" | Input ! scope="col" style="width:50%;" | Output |- | <code><nowiki>{{date|23007-031-24}}</nowiki></code> | {{date|23007-031-24}} |- | <code><nowiki>{{date|[[1 December]] [[2008]]|YMD}}</nowiki></code> | {{date|[[1 December]] [[2008]] | YMD}} |- | <code><nowiki>{{date|1 December [[2008 in film|2008]]|MDY}}</nowiki></code> | {{date|1 December [[2008 in film|2008]] | MDY}} |- | <code><nowiki>{{date|2008 December 1|DMY}}</nowiki></code> | {{date|2008 December 1|DMY}} ''(expected: {{date|2008-12-01|DMY}})'' |- | <code><nowiki>{{date|2008 December 1|MDY}}</nowiki></code> | {{date|2008 December 1|MDY}} ''(expected: {{date|2008-12-01|MDY}})'' |- | <code><nowiki>{{date|2008 December 1|ISO}}</nowiki></code> | {{date|2008 December 1|ISO}} ''(expected: {{date|1 December 2008|ISO}})'' |- | <code><nowiki>{{date|June 2006|ISO}}</nowiki></code> | {{date|June 2006|ISO}} ''(missing day, expected: 2006-06--)'' |- | <code><nowiki>{{date|--08-24}}</nowiki></code> | {{date|--08-24}} |- | <code><nowiki>{{date|-08-24}}</nowiki></code> | {{date|-08-24}} |- | <code><nowiki>{{date|08-24}}</nowiki></code> | {{date|08-24}} |- | <code><nowiki>{{date|2006-08--}}</nowiki></code> | {{date|2006-08--}} |- | <code><nowiki>{{date|2006-08-}}</nowiki></code> | {{date|2006-08-}} |- | <code><nowiki>{{date|32 Aug}}</nowiki></code> | {{date|32 Aug}} |- | <code><nowiki>{{date|932 Aug}}</nowiki></code> | {{date|932 Aug}} |- | <code><nowiki>{{date|0932 Aug}}</nowiki></code> | {{date|0932 Aug}} |- | <code><nowiki>{{date|Aug 32}}</nowiki></code> | {{date|Aug 32}} |- | <code><nowiki>{{date|Aug 932}}</nowiki></code> | {{date|Aug 932}} |- | <code><nowiki>{{date|Aug 0932}}</nowiki></code> | {{date|Aug 0932}} |- | <code><nowiki>{{date|31/05/2012}}</nowiki></code> | {{date|31/05/2012}} (expected {{date|05/31/2012}}) |- | <code><nowiki>{{date|05-31-2012}}</nowiki></code> | {{date|05-31-2012}} (expected {{date|05/31/2012}}) |}
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