uSeR:verdy_p/sandbox

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Sandboxes for specific tests:

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}} = 2019 {{#time:o}} = 2019,
{{CURRENTISOYEAR}} = 2019
{{#timel:xno}} = 2019 {{#timel:o}} = 2019
week of year 2 digits (01 to 52 or 53) {{#time:xnW}} = 43 {{#time:W}} = 43,
{{CURRENTISOWEEK}} = 43
{{#timel:xnW}} = 43 {{#timel:W}} = 43
day of week (Monday to Sunday) 1 digit (1 to 7) {{#time:xnN}} = 2 {{#time:N}} = 2 {{#timel:xnN}} = 2 {{#timel:N}} = 2
astronomic Gregorian calendar timestamp 14 digits {{#time:xnYxnmxndxnHxnixns}} = 20191022094408,
{{CURRENTTIMESTAMP}} = 20191022094408
{{#time:YmdHis}} = 20191022094408 {{#timel:xnYxnmxndxnHxnixns}} = 20191022094408,
{{LOCALTIMESTAMP}} = 20191022094408
{{#timel:YmdHis}} = 20191022094408
year 4 digits {{#time:xnY}} = 2019 {{#time:Y}} = 2019,
{{CURRENTYEAR}} = 2019
{{#timel:xnY}} = 2019 {{#timel:Y}} = 2019,
{{LOCALYEAR}} = 2019
2 digits {{#time:xny}} = 19 {{#time:y}} = 19 {{#timel:xny}} = 19 {{#timel:y}} = 19
month 2 digits {{#time:xnm}} = 10 {{#time:m}} = 10,
{{CURRENTMONTH}} = 10
{{#timel:xnm}} = 10 {{#timel:m}} = 10,
{{LOCALMONTH}} = 10
1 or 2 digits {{#time:xnn}} = 10 {{#time:n}} = 10 {{#timel:xnn}} = 10 {{#timel:n}} = 10
day of month 2 digits {{#time:xnd}} = 22 {{#time:d}} = 22,
{{CURRENTDAY2}} = 22
{{#timel:xnd}} = 22 {{#timel:d}} = 22,
{{LOCALDAY2}} = 22
1 or 2 digits {{#time:xnj}} = 22 {{#time:j}} = 22,
{{CURRENTDAY}} = 22
{{#timel:xnj}} = 22 {{#timel:j}} = 22,
{{LOCALDAY}} = 22
24-hour clock Hour 2 digits {{#time:xnH}} = 09 {{#time:H}} = 09,
{{CURRENTHOUR}} = 09
{{#timel:xnH}} = 09 {{#timel:H}} = 09,
{{LOCALHOUR}} = 09
1 or 2 digits {{#time:xnG}} = 9 {{#time:G}} = 9 {{#timel:xnG}} = 9 {{#timel:G}} = 9,
{{LOCALHOUR}} = 09
12-hour clock Hour 2 digits {{#time:xnh}} = 09 {{#time:h}} = 09 {{#timel:xnh}} = 09 {{#timel:h}} = 09
1 or 2 digits {{#time:xng}} = 9 {{#time:g}} = 9 {{#timel:xng}} = 9 {{#timel:g}} = 9