Difference between revisions of "Template:Language with name/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>LLarson
(→‎Literally: Tests for semantic abbr)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Testcases notice |toc=on}}
 
{{Testcases notice |toc=on}}
  
* As of today, 21:36, 16 October 2014 (UTC) sandbox stack set:
+
==Literally==
 +
{{tlf|lang-xx/sandbox|nolink=yes}} examples below call back to {{t|Language with name/sandbox}} instead of {{t|Language with name}}
 +
{{markup
 +
|<nowiki>{{lang-fr/sandbox |déjà vu|      lit=already seen}}</nowiki>
 +
|        {{lang-fr/sandbox |déjà vu|      lit=already seen}}{{br}}
 +
|<nowiki>{{lang-fr        |déjà vu|      lit=already seen}}</nowiki>
 +
|        {{lang-fr        |déjà vu|      lit=already seen}}{{br}}
 +
|<nowiki>{{lang-ht/sandbox |n ap wè pi ta| lit=we will see later}}</nowiki>
 +
|        {{lang-ht/sandbox |n ap wè pi ta| lit=we will see later}}{{br}}
 +
|<nowiki>{{lang-ht        |n ap wè pi ta| lit=we will see later}}</nowiki>
 +
|        {{lang-ht        |n ap wè pi ta| lit=we will see later}}{{br}}
 +
|<nowiki>{{lang-de/sandbox |Sie sehen|    lit=you see}}</nowiki>
 +
|        {{lang-de/sandbox |Sie sehen|    lit=you see}}{{br}}
 +
|<nowiki>{{lang-de        |Sie sehen|    lit=you see}}</nowiki>
 +
|        {{lang-de        |Sie sehen|    lit=you see}}{{br}}
 +
}}
 +
 
 
==de==
 
==de==
 
*{{t links|lang-de}}
 
*{{t links|lang-de}}
Line 17: Line 33:
 
* {{t links|lang-ar}} ([[Baghdad]]:)
 
* {{t links|lang-ar}} ([[Baghdad]]:)
 
:#<code><nowiki>{{lang-ar|بغداد}}</nowiki></code> &rarr; {{lang-ar|بغداد}}
 
:#<code><nowiki>{{lang-ar|بغداد}}</nowiki></code> &rarr; {{lang-ar|بغداد}}
:#<code><nowiki>{{lang-ar/sandbox|بغداد}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد}}
+
:#<code><nowiki>{{lang-ar/sandbox|بغداد}}</nowiki>{{lrm}}</code> &rarr; {{lang-ar/sandbox|بغداد}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=,}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=,}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=,}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=,}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=}}
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=links=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=|links=no}}
+
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=|links=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=|links=no}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no|sep=xxx}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no|sep=xxx}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no|sep=xxx}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no|sep=xxx}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep==}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep==}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep==}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep==}}
 +
 +
===/2===
 +
* {{t links|lang-ar}} ([[Baghdad]]:)
 +
:#<code><nowiki>{{lang-ar|بغداد}}</nowiki></code> &rarr; {{lang-ar|بغداد}}
 +
:#<code><nowiki>{{lang-ar/sandbox|بغداد}}</nowiki>{{lrm}}</code> &rarr; {{lang-ar/sandbox|بغداد}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد}}</nowiki>{{lrm}}</code> &rarr; {{lang-ar/sandbox|بغداد}}
 +
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد|sep=,}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|sep=,}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد|sep=}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|sep=}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد|sep=|links=no}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|sep=|links=no}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد|sep=&nbsp;(abc)}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|sep=&nbsp;(abc)}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|بغداد|name=no}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|name=no}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|!بغداد?|name=no|sep=xxx}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|name=no|sep=xxx}}
 +
:#<code><nowiki>{{lang-ar/sandbox2|!بغداد?|sep==}}</nowiki></code> &rarr; {{lang-ar/sandbox2|بغداد|sep==}}
  
 
==ru==
 
==ru==
Line 69: Line 99:
 
|}
 
|}
  
;in code (check)
+
(more later)
:"!"is added before; "?" after (''outside'' template). <nowiki>|$بغداد@}}</nowiki>
 
::1801, 1899
 
:"$"is added before; "@" after (''inside'' template).
 
::1901, 1999 (to check)_
 
 
 
:#<code><nowiki>{{lang-ar|بغداد}}</nowiki></code> &rarr; {{lang-ar|بغداد}} --dflt
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد}} --dflt /sbox
 
 
 
:#<code><nowiki>!{{lang-ar/sandbox|بغداد}}?</nowiki></code> &rarr; !{{lang-ar/sandbox|بغداد}}?
 
:#<code><nowiki>{{lang-ar/sandbox|$بغداد@}}</nowiki></code> &rarr; !{{lang-ar/sandbox|$بغداد@}}?
 
:#<code><nowiki>!{{lang-ar/sandbox|$بغداد@}}?</nowiki></code> &rarr; !{{lang-ar/sandbox|$بغداد@}}?
 
 
 
 
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=links=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=|links=no}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep=&nbsp;(abc)}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|name=no|sep=xxx}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|name=no|sep=xxx}}
 
:#<code><nowiki>{{lang-ar/sandbox|بغداد|sep==}}</nowiki></code> &rarr; {{lang-ar/sandbox|بغداد|sep==}}
 
 
 
{{Template:Bidi Class (Unicode)}}
 
 
 
===rtl he===
 
: Alef - Bet - Gimel
 
: alef: {{script|Hebr|א}} bet: {{script|Hebr|ב}} gimel: {{script|Hebr|ג}}
 
 
 
 
 
: {{script|Hebr|א}}{{script|Hebr|ב}}{{script|Hebr|ג}}
 
: &larr; {{ns|5}}<small>(reading ABC rtl = OK)</small>
 
 
 
 
 
{|class="wikitable" style="text-align:center;" class="wikitable" dir="ltr"
 
|-
 
!'''[[Aleph|Alef]]'''||'''<div dir="ltr">[[Beth (letter)|Bet]]</div>'''||'''[[Gimel]]'''||'''[[Dalet]]'''||'''<div dir="ltr">[[He (letter)|He]]</div>'''||'''<div dir="ltr">[[Waw (letter)|Vav]]</div>'''||'''[[Zayin]]'''||'''[[Heth|Het]]'''||'''[[Teth|Tet]]'''||'''[[Yodh|Yod]]'''||'''[[Kaph|Kaf]]'''
 
|-style="font-size:300%; text-align:center;"
 
| rowspan="2" |{{script|Hebr|א}}
 
| rowspan="2" |{{script|Hebr|ב}}
 
| rowspan="2" |{{script|Hebr|ג}}
 
| rowspan="2" |{{script|Hebr|ד}}
 
| rowspan="2" |{{script|Hebr|ה}}
 
| rowspan="2" |{{script|Hebr|ו}}
 
| rowspan="2" |{{script|Hebr|ז}}
 
| rowspan="2" |{{script|Hebr|ח}}
 
| rowspan="2" |{{script|Hebr|ט}}
 
| rowspan="2" |{{script|Hebr|י}}
 
| |{{script|Hebr|כ}}
 
|-style="font-size:300%; text-align:center;"
 
||{{script|Hebr|ך}}
 
|-
 
!'''[[Lamedh|Lamed]]'''||'''[[Mem]]'''||'''<div dir="ltr">[[Nun (letter)|Nun]]</div>'''||'''[[Samekh]]'''||'''[[Ayin]]'''||'''<div dir="ltr">[[Pe (letter)|Pe]]</div>'''||'''[[Tsade|Tsadi]]'''||'''[[Qoph|Qof]]'''||'''[[Resh]]'''||'''<div dir="ltr">[[Shin (letter)|Shin]]</div>'''||'''[[Taw|Tav]]'''
 
|-style="font-size:300%; text-align:center;"
 
| rowspan="2"|{{script|Hebr|ל}}
 
||{{script|Hebr|מ}}
 
||{{script|Hebr|נ}}
 
| rowspan="2"|{{script|Hebr|ס}}
 
| rowspan="2"|{{script|Hebr|ע}}
 
||{{script|Hebr|פ}}
 
||{{script|Hebr|צ}}
 
| rowspan="2"|{{script|Hebr|ק}}
 
| rowspan="2"|{{script|Hebr|ר}}
 
| rowspan="2"|{{script|Hebr|ש}}
 
| rowspan="2"|{{script|Hebr|ת}}
 
|-style="font-size:300%; text-align:center;"
 
||{{script|Hebr|ם}}
 
||{{script|Hebr|ן}}
 
||{{script|Hebr|ף}}
 
||{{script|Hebr|ץ}}
 
|}
 
  
 
==arabic alphabet ==
 
==arabic alphabet ==

Latest revision as of 20:13, 24 March 2016

Literally

{{lang-xx/sandbox}} examples below call back to Template:T instead of Template:T

Markup Renders as
{{lang-fr/sandbox |déjà vu|       lit=already seen}}
French: [déjà vu] error: {{lang}}: text has italic markup (help), lit. 'already seen'
{{lang-fr         |déjà vu|       lit=already seen}}
French: déjà vu, lit. 'already seen'
{{lang-ht/sandbox |n ap wè pi ta| lit=we will see later}}
Haitian Creole: [n ap wè pi ta] error: {{lang}}: text has italic markup (help), lit. 'we will see later'
{{lang-ht         |n ap wè pi ta| lit=we will see later}}
Haitian Creole: n ap wè pi ta, lit. 'we will see later'
{{lang-de/sandbox |Sie sehen|     lit=you see}}
German: Sie sehen, lit. 'you see'
{{lang-de         |Sie sehen|     lit=you see}}
German: Sie sehen, lit. 'you see'

de

  1. {{lang-de|Bitte}}German: Bitte
  2. {{lang-de/sandbox|Bitte}}German: Bitte
  3. {{lang-de/sandbox|Bitte|sep=,}}German: Bitte
  4. {{lang-de/sandbox|Bitte|sep=}}German: Bitte
  5. {{lang-de/sandbox|Bitte|sep=|links=no}} → German: Bitte
  6. {{lang-de/sandbox|Bitte|sep= (abc)}}German: Bitte
  7. {{lang-de/sandbox|Bitte|name=no}}German: Bitte
  8. {{lang-de/sandbox|Bitte|name=no|sep=xxx}}German: Bitte
  9. {{lang-de/sandbox|Bitte|sep==}}German: Bitte

ar

  1. {{lang-ar|بغداد}}Arabic: بغداد
  2. {{lang-ar/sandbox|بغداد}}‎Arabic: بغداد
  3. {{lang-ar/sandbox|بغداد|sep=,}}Arabic: بغداد
  4. {{lang-ar/sandbox|بغداد|sep=}}Arabic: بغداد
  5. {{lang-ar/sandbox|بغداد|sep=|links=no}} → Arabic: بغداد
  6. {{lang-ar/sandbox|بغداد|sep= (abc)}}Arabic: بغداد
  7. {{lang-ar/sandbox|بغداد|name=no}}Arabic: بغداد
  8. {{lang-ar/sandbox|بغداد|name=no|sep=xxx}}Arabic: بغداد
  9. {{lang-ar/sandbox|بغداد|sep==}}Arabic: بغداد

/2

  1. {{lang-ar|بغداد}}Arabic: بغداد
  2. {{lang-ar/sandbox|بغداد}}‎Arabic: بغداد
  3. {{lang-ar/sandbox2|بغداد}}‎Arabic: بغداد
  1. {{lang-ar/sandbox2|بغداد|sep=,}}Arabic: بغداد‎‎
  2. {{lang-ar/sandbox2|بغداد|sep=}}Arabic: بغداد‎‎
  3. {{lang-ar/sandbox2|بغداد|sep=|links=no}} → Arabic: بغداد‎‎
  4. {{lang-ar/sandbox2|بغداد|sep= (abc)}}Arabic: بغداد‎‎
  5. {{lang-ar/sandbox2|بغداد|name=no}}Arabic: بغداد‎‎
  6. {{lang-ar/sandbox2|!بغداد?|name=no|sep=xxx}}Arabic: بغداد‎‎
  7. {{lang-ar/sandbox2|!بغداد?|sep==}}Arabic: بغداد‎‎

ru

  1. {{lang-ru|Чернобыль}}Russian: Чернобыль
  2. {{lang-ru/sandbox|Чернобыль}}Russian: Чернобыль
  3. {{lang-ru/sandbox|Чернобыль|sep=,}}Russian: Чернобыль
  4. {{lang-ru/sandbox|Чернобыль|sep=}}Russian: Чернобыль
  5. {{lang-ru/sandbox|Чернобыль|sep=|links=no}} → Russian: Чернобыль
  6. {{lang-ru/sandbox|Чернобыль|sep= (abc)}}Russian: Чернобыль
  7. {{lang-ru/sandbox|Чернобыль|name=no}}Russian: Чернобыль
  8. {{lang-ru/sandbox|Чернобыль|name=no|sep=xxx}}Russian: Чернобыль
  9. {{lang-ru/sandbox|Чернобыль|sep==}}Russian: Чернобыль

he

Note: {{lang-he}} today does not use the metatemplate. The sandbox does.
  1. {{lang-he|חומת ההפרדה}}Hebrew: חומת ההפרדה
  2. {{lang-he/sandbox|חומת ההפרדה}}Hebrew: חומת ההפרדה‎1234
  3. {{lang-he/sandbox|חומת ההפרדה|sep=,}}Hebrew: חומת ההפרדה‎1234
  4. {{lang-he/sandbox|חומת ההפרדה|sep=}}Hebrew: חומת ההפרדה‎1234
  5. {{lang-he/sandbox|חומת ההפרדה|sep=|links=no}} → Hebrew: חומת ההפרדה‎1234
  6. {{lang-he/sandbox|חומת ההפרדה|sep= (abc)}}Hebrew: חומת ההפרדה
  7. {{lang-he/sandbox|חומת ההפרדה|name=no}}Hebrew: חומת ההפרדה‎1234
  8. {{lang-he/sandbox|חומת ההפרדה|name=no|sep=xxx}}Hebrew: חומת ההפרדה‎1234
  9. {{lang-he/sandbox|חומת ההפרדה|sep==}}Hebrew: חומת ההפרדה‎1234

RTL borders (ar)

Punctuation tests

NEUTRAL Other neutral [ON]: @, _, !,
NEUTRAL whitespace (bidi-defined): REgular space: > <, NBSP: > <, HTML named: >&nbsp;<,
WEAK Eur Number Terminator [ET]: %, $
WEAK Eur number [EN] WEAK: 0, 1, 9
STRONG L-to-R: A, Z
STRONG R-to-L: alef: Template:Script bet: Template:Script gimel: Template:Script
plain & open ltr-he-rtl: >‎אבגTemplate:Rtl<
EXPLICIT: (todo)
L Left-to-Right Strong L-to-R Latin alphabet, LRM character, ... Template:Unichar
R Right-to-Left Strong R-to-L Arabic, Hebrew alphabets, RLM character Template:Unichar

(more later)

arabic alphabet

Arabic_alphabet#Abjad.C4.AB:
ج AZ ب AZ ا
جبا
Common Template:Transl sequence
غ ظ ض ذ خ ث ت ش ر ق ص ف ع س ن م ل ك ي ط ح ز و ه د ج ب ا
Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl Template:Transl
28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01