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

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)

مثال:

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}} = ۲۰۲۴,
{{CURRENTISOYEAR}} = ۲۰۲۴
{{#timel:xno}} = 2024 {{#timel:o}} = ۲۰۲۴
week of year 2 digits (01 to 52 or 53) {{#time:xnW}} = 13 {{#time:W}} = ۱۳,
{{CURRENTISOWEEK}} = ۱۳
{{#timel:xnW}} = 13 {{#timel:W}} = ۱۳
day of week (Monday to Sunday) 1 digit (1 to 7) {{#time:xnN}} = 4 {{#time:N}} = ۴ {{#timel:xnN}} = 4 {{#timel:N}} = ۴
astronomic Gregorian calendar timestamp 14 digits {{#time:xnYxnmxndxnHxnixns}} = 20240328164528,
{{CURRENTTIMESTAMP}} = 20240328164528
{{#time:YmdHis}} = ۲۰۲۴۰۳۲۸۱۶۴۵۲۸ {{#timel:xnYxnmxndxnHxnixns}} = 20240328164528,
{{LOCALTIMESTAMP}} = 20240328164528
{{#timel:YmdHis}} = ۲۰۲۴۰۳۲۸۱۶۴۵۲۸
year 4 digits {{#time:xnY}} = 2024 {{#time:Y}} = ۲۰۲۴,
{{CURRENTYEAR}} = ۲۰۲۴
{{#timel:xnY}} = 2024 {{#timel:Y}} = ۲۰۲۴,
{{LOCALYEAR}} = ۲۰۲۴
2 digits {{#time:xny}} = 24 {{#time:y}} = ۲۴ {{#timel:xny}} = 24 {{#timel:y}} = ۲۴
month 2 digits {{#time:xnm}} = 03 {{#time:m}} = ۰۳,
{{CURRENTMONTH}} = ۰۳
{{#timel:xnm}} = 03 {{#timel:m}} = ۰۳,
{{LOCALMONTH}} = ۰۳
1 or 2 digits {{#time:xnn}} = 3 {{#time:n}} = ۳ {{#timel:xnn}} = 3 {{#timel:n}} = ۳
day of month 2 digits {{#time:xnd}} = 28 {{#time:d}} = ۲۸,
{{CURRENTDAY2}} = ۲۸
{{#timel:xnd}} = 28 {{#timel:d}} = ۲۸,
{{LOCALDAY2}} = ۲۸
1 or 2 digits {{#time:xnj}} = 28 {{#time:j}} = ۲۸,
{{CURRENTDAY}} = ۲۸
{{#timel:xnj}} = 28 {{#timel:j}} = ۲۸,
{{LOCALDAY}} = ۲۸
24-hour clock Hour 2 digits {{#time:xnH}} = 16 {{#time:H}} = ۱۶,
{{CURRENTHOUR}} = ۱۶
{{#timel:xnH}} = 16 {{#timel:H}} = ۱۶,
{{LOCALHOUR}} = ۱۶
1 or 2 digits {{#time:xnG}} = 16 {{#time:G}} = ۱۶ {{#timel:xnG}} = 16 {{#timel:G}} = ۱۶,
{{LOCALHOUR}} = ۱۶
12-hour clock Hour 2 digits {{#time:xnh}} = 04 {{#time:h}} = ۰۴ {{#timel:xnh}} = 04 {{#timel:h}} = ۰۴
1 or 2 digits {{#time:xng}} = 4 {{#time:g}} = ۴ {{#timel:xng}} = 4 {{#timel:g}} = ۴

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