User:Verdy p/sandbox/2014/01

This personal sandbox page is used only to test various issues when formating dates in translatable pages. It is not meant to be published or referenced by any other page, but if you think you have cases to test for specific languages, free free to report them in the talk page.

Its content may change without notice depending on tests to perform when working for example on the translation of templates including dates, numbers, or other elements requiring locale-dependant data or layouts.

  • To Translation admins: don't place this translatable page in any core translation group.
  • To Translators and any other editors on Meta: don't care if your language is not listed or if the translations are not complete, unless you want to check by yourself that some cases for your language are correctly handled and want to demonstrate it (don't forget to talk about it in the talk page if the displayed result is not what you would expect for your language. I'll try to investigate the issue and add/remove some tests.

Thanks. verdy_p (talk) 04:17, 29 December 2013 (UTC)

Example:

calendar or clock date element format variant UTC timezone (#time:) local timezone on server (#timel:)
ASCII-only numbers localized numbers ASCII-only numbers localized numbers
ISO weekly calendar year 4 digits {{#time:xno}} = 2024 {{#time:o}} = 2024,
{{CURRENTISOYEAR}} = 2024
{{#timel:xno}} = 2024 {{#timel:o}} = 2024
week of year 2 digits (01 to 52 or 53) {{#time:xnW}} = 46 {{#time:W}} = 46,
{{CURRENTISOWEEK}} = 46
{{#timel:xnW}} = 46 {{#timel:W}} = 46
day of week (Monday to Sunday) 1 digit (1 to 7) {{#time:xnN}} = 7 {{#time:N}} = 7 {{#timel:xnN}} = 7 {{#timel:N}} = 7
astronomic Gregorian calendar timestamp 14 digits {{#time:xnYxnmxndxnHxnixns}} = 20241117194253,
{{CURRENTTIMESTAMP}} = 20241117194253
{{#time:YmdHis}} = 20241117194253 {{#timel:xnYxnmxndxnHxnixns}} = 20241117194253,
{{LOCALTIMESTAMP}} = 20241117194253
{{#timel:YmdHis}} = 20241117194253
year 4 digits {{#time:xnY}} = 2024 {{#time:Y}} = 2024,
{{CURRENTYEAR}} = 2024
{{#timel:xnY}} = 2024 {{#timel:Y}} = 2024,
{{LOCALYEAR}} = 2024
2 digits {{#time:xny}} = 24 {{#time:y}} = 24 {{#timel:xny}} = 24 {{#timel:y}} = 24
month 2 digits {{#time:xnm}} = 11 {{#time:m}} = 11,
{{CURRENTMONTH}} = 11
{{#timel:xnm}} = 11 {{#timel:m}} = 11,
{{LOCALMONTH}} = 11
1 or 2 digits {{#time:xnn}} = 11 {{#time:n}} = 11 {{#timel:xnn}} = 11 {{#timel:n}} = 11
day of month 2 digits {{#time:xnd}} = 17 {{#time:d}} = 17,
{{CURRENTDAY2}} = 17
{{#timel:xnd}} = 17 {{#timel:d}} = 17,
{{LOCALDAY2}} = 17
1 or 2 digits {{#time:xnj}} = 17 {{#time:j}} = 17,
{{CURRENTDAY}} = 17
{{#timel:xnj}} = 17 {{#timel:j}} = 17,
{{LOCALDAY}} = 17
24-hour clock Hour 2 digits {{#time:xnH}} = 19 {{#time:H}} = 19,
{{CURRENTHOUR}} = 19
{{#timel:xnH}} = 19 {{#timel:H}} = 19,
{{LOCALHOUR}} = 19
1 or 2 digits {{#time:xnG}} = 19 {{#time:G}} = 19 {{#timel:xnG}} = 19 {{#timel:G}} = 19,
{{LOCALHOUR}} = 19
12-hour clock Hour 2 digits {{#time:xnh}} = 07 {{#time:h}} = 07 {{#timel:xnh}} = 07 {{#timel:h}} = 07
1 or 2 digits {{#time:xng}} = 7 {{#time:g}} = 7 {{#timel:xng}} = 7 {{#timel:g}} = 7

Tests:

  • {{#titleparts:{{FULLPAGENAME}}|1|3}} = 2014
  • {{#titleparts:{{FULLPAGENAME}}|1|4}} = 01
  • {{Previous ISO week | format = o/W | lang=en | isoyear = {{#titleparts:{{FULLPAGENAME}}|1|3}} | isoweek = {{#titleparts:{{FULLPAGENAME}}|1|4}}}} = 2013/52
  • {{Current ISO week | format = o/W | lang=en | isoyear = {{#titleparts:{{FULLPAGENAME}}|1|3}} | isoweek = {{#titleparts:{{FULLPAGENAME}}|1|4}}}} = 2014/01
  • {{Next ISO week | format = o/W | lang=en | isoyear = {{#titleparts:{{FULLPAGENAME}}|1|3}} | isoweek = {{#titleparts:{{FULLPAGENAME}}|1|4}}}} = 2014/02
  • ""
  • Page language code detected: en
  • Transclusion parameters | 1 =| 2 =|