Jump to content

User:Verdy p/sandbox/2014/01/ur

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page User:Verdy p/sandbox/2014/01 and the translation is 100% complete.

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}} = 45 {{#time:W}} = 45,
{{CURRENTISOWEEK}} = 45
{{#timel:xnW}} = 45 {{#timel:W}} = 45
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}} = 20241110000524,
{{CURRENTTIMESTAMP}} = 20241110000524
{{#time:YmdHis}} = 20241110000524 {{#timel:xnYxnmxndxnHxnixns}} = 20241110000524,
{{LOCALTIMESTAMP}} = 20241110000524
{{#timel:YmdHis}} = 20241110000524
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}} = 10 {{#time:d}} = 10,
{{CURRENTDAY2}} = 10
{{#timel:xnd}} = 10 {{#timel:d}} = 10,
{{LOCALDAY2}} = 10
1 or 2 digits {{#time:xnj}} = 10 {{#time:j}} = 10,
{{CURRENTDAY}} = 10
{{#timel:xnj}} = 10 {{#timel:j}} = 10,
{{LOCALDAY}} = 10
24-hour clock Hour 2 digits {{#time:xnH}} = 00 {{#time:H}} = 00,
{{CURRENTHOUR}} = 00
{{#timel:xnH}} = 00 {{#timel:H}} = 00,
{{LOCALHOUR}} = 00
1 or 2 digits {{#time:xnG}} = 0 {{#time:G}} = 0 {{#timel:xnG}} = 0 {{#timel:G}} = 0,
{{LOCALHOUR}} = 00
12-hour clock Hour 2 digits {{#time:xnh}} = 12 {{#time:h}} = 12 {{#timel:xnh}} = 12 {{#timel:h}} = 12
1 or 2 digits {{#time:xng}} = 12 {{#time:g}} = 12 {{#timel:xng}} = 12 {{#timel:g}} = 12

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
  • "ur"
  • Page language code detected: ur
  • Transclusion parameters | 1 =| 2 =|