Jump to content

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

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 50% 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)

Příklad:

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}} = 1 {{#time:N}} = 1 {{#timel:xnN}} = 1 {{#timel:N}} = 1
astronomic Gregorian calendar timestamp 14 digits {{#time:xnYxnmxndxnHxnixns}} = 20241104213336,
{{CURRENTTIMESTAMP}} = 20241104213336
{{#time:YmdHis}} = 20241104213336 {{#timel:xnYxnmxndxnHxnixns}} = 20241104213336,
{{LOCALTIMESTAMP}} = 20241104213336
{{#timel:YmdHis}} = 20241104213336
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}} = 04 {{#time:d}} = 04,
{{CURRENTDAY2}} = 04
{{#timel:xnd}} = 04 {{#timel:d}} = 04,
{{LOCALDAY2}} = 04
1 or 2 digits {{#time:xnj}} = 4 {{#time:j}} = 4,
{{CURRENTDAY}} = 4
{{#timel:xnj}} = 4 {{#timel:j}} = 4,
{{LOCALDAY}} = 4
24-hour clock Hour 2 digits {{#time:xnH}} = 21 {{#time:H}} = 21,
{{CURRENTHOUR}} = 21
{{#timel:xnH}} = 21 {{#timel:H}} = 21,
{{LOCALHOUR}} = 21
1 or 2 digits {{#time:xnG}} = 21 {{#time:G}} = 21 {{#timel:xnG}} = 21 {{#timel:G}} = 21,
{{LOCALHOUR}} = 21
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

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