Webtags/Parameters (preserving history): Difference between revisions

m
Line 312: Line 312:
====Date formats====
====Date formats====


Cumulus works with dates specified in either a day before month before year format, or ISO 8601 date format where year comes first (yyyy-MM-dd).  If you are in the USA, you can can combine the month specifier, with the day specifier, in that order, to get an output where the month appears first (see example in table below) because a single character format modification might not work.
Cumulus works with dates specified in either a day before month before year format, or ISO 8601 date format where year comes first (yyyy-MM-dd).  If you are in the USA, Cumulus will not use your month first date internally, but you can see your preferred format in any output as you can can combine the month specifier, with the day specifier, in that order, to get an output where the month appears first (see example in table below). <big>Please could an American contributor please check if the "M" modifier works for them and update the table below</big>.


Locales will define a '''Short Date Format''' and a '''Long Date Format'''.  Which date format is used as the default, depends on which web tag is used. What appears in short and long formats depends entirely on the selected locale.   
Locales will define a '''Short Date Format''' and a '''Long Date Format'''.  Which date format is used as the default, depends on which web tag is used. What appears in short and long formats depends entirely on the selected locale.   
Line 342: Line 342:
|"D MMMM"
|"D MMMM"
|M
|M
|Day of month followed by Month name.
|Day of month followed by Month name (except USA locales).


Compared with next table where '''format=%M''' used, '''format=M''' on its own returns both Month and Day according to local format
Compared with next table where '''format=%M''' used, '''format=M''' on its own returns both Month and Day according to local format
Line 348: Line 348:
|-
|-
|"MMMM D"
|"MMMM D"
|"MMMM d"
|"MMMM d" if M alone does not work
| USA format of month before day of month
| USA format of month before day of month
| e.g. July 4 (USA locale)
| e.g. July 4 (USA format)
|-
|-
|TT
|TT
5,838

edits