Module:Time/data/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 9:
local cfg = {
['default_df'] = 'mdy', -- default date format when |<df> and |df= omitted or empty
['df_vals'] = {
['dmy']=true, ['dmy12']=true, -- also 'y'
['dow']=true,
['mdy']=true, ['mdy12']=true,
['iso']=true,
['y']=true, -- also 'dmy' and 'dmy12'
['ymd']=false, -- not permitted at en.wiki per [[MOS:DATESNO]] - not currently supported
['12']=true, ['24']=true,
};
 
['err_msg'] = '<span style="font-size:100%" class="error">{{time}} – $1 ([[Template:Time#Error messages|help]])</span>',
Line 45 ⟶ 36:
iso = 'Y-m-d"T"H:i',
dow = 'l', -- day of the week
};
min = 'i', -- hour or minute only
h12 = 'g a',
h24 = 'H',
},
 
Line 56 ⟶ 51:
-- parameter list
aliases = {
['df'] = {'df','format'},
['dst'] = {'dst','ds'},
['dateonly'] = {'dateonly' , 'do', 'date', 'notime'},
['timeonly'] = {'timeonly' , 'to', 'time', 'nodate'},
['hide-refresh'] = {'hide-refresh', 'no-refresh'},
['hide-tz'] = {'hide-tz', 'verbergenno-zztz'}, -- crude'hide-timezone', probably wrong german used as test'verbergen-tz'},
['unlink-tz'] = {'unlink-tz','unlink','nolink'},
}
}
Line 75 ⟶ 70:
['irish standard time'] = 'gmt-ie',
['usz1'] = 'kalt', -- old form Kaliningrad time
['at'] = 'ast', -- alternate abbreviations west of utc
['et'] = 'est',
['ct'] = 'cst',
['pt'] = 'pst',
['akt'] = 'akst',
['hst'] = 'hast',
}
--[[--------------------------< D S T T I M E Z O N E S >------------------------------------------------------
 
]]
 
local dst_tz = {
 
['west'] = 'wet', -- dst aliases east of utc
Line 82 ⟶ 91:
['aedt'] = 'aest',
['nzdt'] = 'nzst',
 
['at'] = 'ast', -- alternate abbreviations west of utc
['et'] = 'est',
['ct'] = 'cst',
['pt'] = 'pst',
['akt'] = 'akst',
['hst'] = 'hast',
 
['pmdt'] = 'pmst', -- dst aliases west of utc