Modul:DateTime/local: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Diese Vorlage(n) wurde(n) fast unverändert von der deutschsprachigen Wikipedia übernommen. Es wurden nur geringfügige technische, stilistische und organisatorische Anpassungen ans ÖsterreichWiki durchgeführt.
(updates) |
K (18 Versionen importiert: Doku-Vorlage) |
||
(15 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
--[=[ | local Serial = "2020-04-04" | ||
Date and time utilities: Localization | --[=[ | ||
Date and time utilities: Localization Deutsch | |||
mw.loadData() table | mw.loadData() table | ||
]=] | ]=] | ||
local Similar = mw.ustring.char( 8776 ) -- ~~ | |||
Zeile 11: | Zeile 13: | ||
monthsParse = { }, | monthsParse = { }, | ||
months4 = { }, | months4 = { }, | ||
sortWeights = { }, | |||
templates = { }, | templates = { }, | ||
zones = { } | zones = { }, | ||
failsafe = Serial | |||
} | } | ||
p.slang = "de" | p.slang = "de" | ||
p.era.de = { "v. Chr.", "n. Chr." } | p.era.de = { "v. Chr.", "n. Chr." } | ||
p.monthsAbbr.de = { n = 3, | |||
suffix = ".", | |||
[ 3 ] = { "Mär", "Mrz" } } | |||
p.monthsAbbr[ "de-at" ] = { n = 3, | |||
suffix = ".", | |||
[ 1 ] = { "Jan", "Jän" }, | |||
[ 3 ] = { "Mär", "Mrz" } } | |||
p.monthsParse.de = { | p.monthsParse.de = { | ||
[ "Dez" ] = 12, | [ "Dez" ] = 12, | ||
[ "Feber" ] = 2, | |||
[ "Jänner" ] = 1, | |||
[ "Jänner" ] = 1, | [ "Jänner" ] = 1, | ||
[ " | [ "Jän" ] = 1, | ||
[ "März" ] = 3, | [ "März" ] = 3, | ||
[ "Mrz" ] = 3, | [ "Mrz" ] = 3, | ||
Zeile 41: | Zeile 52: | ||
"Dezember" | "Dezember" | ||
} | } | ||
p.monthsLong[ "de- | p.monthsLong[ "de-at" ] = { | ||
[ 1 ] = "Jänner" | [ 1 ] = "Jänner" | ||
} | } | ||
p.months4.de = { [ 3 ] = | p.months4.de = { [ 3 ] = true, | ||
[ 6 ] = | [ 6 ] = true, | ||
[ 7 ] = " | [ 7 ] = true } | ||
p. | p.present = { date = "j. F Y", | ||
time = "H:i:s", | |||
both = "$date $time" | |||
} | |||
p.sortWeights.de = { | |||
[true] = Similar .. "abecuvs", | |||
["vor dem"] = 3, | |||
["vor etwa"] = 3, | |||
["vor"] = 3, | |||
["Anfang"] = 4, | |||
["ab dem"] = 6, | |||
["ab etwa"] = 6, | |||
{ " | ["ab"] = 6, | ||
{ " | ["seit dem"] = 6, | ||
{ " | ["seit etwa"] = 6, | ||
["seit"] = 6, | |||
["vom"] = 6, | |||
["von"] = 6, | |||
["bis zum"] = 7, | |||
["bis etwa"] = 7, | |||
["bis um"] = 7, | |||
["bis"] = 7, | |||
["Ende"] = 8, | |||
["nach dem"] = 9, | |||
["nach etwa"] = 9, | |||
["nach"] = 9, | |||
["ca."] = true, | |||
["etwa"] = true, | |||
["um"] = true, | |||
[Similar] = true | |||
} | |||
p.templates = { | |||
[ "default" ] = | |||
{ spec = "H:i, j. M Y", | |||
long = true }, | |||
[ "$dmy" ] = | |||
{ spec = "H:i, j. M Y", | |||
long = true }, | |||
[ "$dmyt" ] = | |||
{ spec = "j. M Y, H:i", | |||
long = true }, | |||
[ "$dmyts" ] = | |||
{ spec = "j. M Y, H:i:s", | |||
long = true }, | |||
[ "data-sort-type:date" ] = | |||
{ spec = "j. M Y" }, | |||
[ "dewiki" ] = | |||
{ spec = "H:i, j. M Y", | |||
lift = true, | |||
long = true } | |||
} | } | ||
p.templates.de = { | p.templates.de = { | ||
[ "T._Monat JJJJ hh:mm:ss Zone" ] = | [ "T._Monat JJJJ hh:mm:ss Zone" ] = | ||
{ spec = "j. F Y", | { spec = "j. F Y", | ||
lift = true | lift = true, | ||
long = true }, | |||
[ "T._Mon JJJJ" ] = | [ "T._Mon JJJJ" ] = | ||
{ spec = "j. M Y" }, | { spec = "j. M Y" }, | ||
[ "T._Mon4 JJJJ" ] = | [ "T._Mon4 JJJJ" ] = | ||
{ spec = "j. M Y" }, | { spec = "j. M Y" }, | ||
[ "T._Mon4_JJJJ" ] = | [ "T._Mon4_JJJJ" ] = | ||
{ spec = "j. M Y" }, | { spec = "j. M Y" }, | ||
[ "T._Mon4 JJJJ hh:mm" ] = | |||
{ spec = "j. M Y", | |||
lift = true }, | |||
[ "T._Mon4 JJJJ hh:mm:ss" ] = | |||
{ spec = "j. M Y", | |||
lift = true }, | |||
[ "T._Mon4_JJJJ hh:mm:ss" ] = | |||
{ spec = "j. M Y", | |||
lift = true }, | |||
[ "T._Mon4_JJJJ_hh:mm:ss" ] = | |||
{ spec = "j. M Y", | |||
lift = true }, | |||
[ "T._Mon4 JJJJ hh:mm:ss Zone" ] = | |||
{ spec = "j. M Y", | |||
lift = true, | |||
long = true }, | |||
[ "T._Monat JJJJ" ] = | [ "T._Monat JJJJ" ] = | ||
{ spec = "j. F Y" }, | { spec = "j. F Y" }, | ||
[ "T._Monat_JJJJ" ] = | |||
{ spec = "j. F Y" }, | |||
[ "TT.MM.JJJJ" ] = | [ "TT.MM.JJJJ" ] = | ||
{ spec = "d.m.Y" }, | { spec = "d.m.Y" }, |
Aktuelle Version vom 3. Juli 2020, 20:19 Uhr
local Serial = "2020-04-04"
--[=[
Date and time utilities: Localization Deutsch
mw.loadData() table
]=]
local Similar = mw.ustring.char( 8776 ) -- ~~
-- Export
local p = { era = { },
monthsAbbr = { },
monthsLong = { },
monthsParse = { },
months4 = { },
sortWeights = { },
templates = { },
zones = { },
failsafe = Serial
}
p.slang = "de"
p.era.de = { "v. Chr.", "n. Chr." }
p.monthsAbbr.de = { n = 3,
suffix = ".",
[ 3 ] = { "Mär", "Mrz" } }
p.monthsAbbr[ "de-at" ] = { n = 3,
suffix = ".",
[ 1 ] = { "Jan", "Jän" },
[ 3 ] = { "Mär", "Mrz" } }
p.monthsParse.de = {
[ "Dez" ] = 12,
[ "Feber" ] = 2,
[ "Jänner" ] = 1,
[ "Jänner" ] = 1,
[ "Jän" ] = 1,
[ "März" ] = 3,
[ "Mrz" ] = 3,
[ "Mär" ] = 3,
[ "Okt" ] = 10
}
p.monthsLong.de = {
"Januar",
"Februar",
"März",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember"
}
p.monthsLong[ "de-at" ] = {
[ 1 ] = "Jänner"
}
p.months4.de = { [ 3 ] = true,
[ 6 ] = true,
[ 7 ] = true }
p.present = { date = "j. F Y",
time = "H:i:s",
both = "$date $time"
}
p.sortWeights.de = {
[true] = Similar .. "abecuvs",
["vor dem"] = 3,
["vor etwa"] = 3,
["vor"] = 3,
["Anfang"] = 4,
["ab dem"] = 6,
["ab etwa"] = 6,
["ab"] = 6,
["seit dem"] = 6,
["seit etwa"] = 6,
["seit"] = 6,
["vom"] = 6,
["von"] = 6,
["bis zum"] = 7,
["bis etwa"] = 7,
["bis um"] = 7,
["bis"] = 7,
["Ende"] = 8,
["nach dem"] = 9,
["nach etwa"] = 9,
["nach"] = 9,
["ca."] = true,
["etwa"] = true,
["um"] = true,
[Similar] = true
}
p.templates = {
[ "default" ] =
{ spec = "H:i, j. M Y",
long = true },
[ "$dmy" ] =
{ spec = "H:i, j. M Y",
long = true },
[ "$dmyt" ] =
{ spec = "j. M Y, H:i",
long = true },
[ "$dmyts" ] =
{ spec = "j. M Y, H:i:s",
long = true },
[ "data-sort-type:date" ] =
{ spec = "j. M Y" },
[ "dewiki" ] =
{ spec = "H:i, j. M Y",
lift = true,
long = true }
}
p.templates.de = {
[ "T._Monat JJJJ hh:mm:ss Zone" ] =
{ spec = "j. F Y",
lift = true,
long = true },
[ "T._Mon JJJJ" ] =
{ spec = "j. M Y" },
[ "T._Mon4 JJJJ" ] =
{ spec = "j. M Y" },
[ "T._Mon4_JJJJ" ] =
{ spec = "j. M Y" },
[ "T._Mon4 JJJJ hh:mm" ] =
{ spec = "j. M Y",
lift = true },
[ "T._Mon4 JJJJ hh:mm:ss" ] =
{ spec = "j. M Y",
lift = true },
[ "T._Mon4_JJJJ hh:mm:ss" ] =
{ spec = "j. M Y",
lift = true },
[ "T._Mon4_JJJJ_hh:mm:ss" ] =
{ spec = "j. M Y",
lift = true },
[ "T._Mon4 JJJJ hh:mm:ss Zone" ] =
{ spec = "j. M Y",
lift = true,
long = true },
[ "T._Monat JJJJ" ] =
{ spec = "j. F Y" },
[ "T._Monat_JJJJ" ] =
{ spec = "j. F Y" },
[ "TT.MM.JJJJ" ] =
{ spec = "d.m.Y" },
[ "T.M.JJJJ" ] =
{ spec = "j.n.Y" }
}
p.zones.de = {
MEZ = 100,
MESZ = 200
}
return p