Difference between revisions of "Template:Contains special characters/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(add test case for compact parameter)
imported>Jdaloner
m (Updated template names.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{testcases}}
+
{{testcases notice}}
  
{{testcase|id=No args|<nowiki>{{SpecialChars}}</nowiki>|{{SpecialChars}}|{{SpecialChars/sandbox}}}}
+
{{testcase|id=No args|<nowiki>{{Contains special characters}}</nowiki>|{{Contains special characters}}|{{Contains special characters/sandbox}}}}
  
{{testcase|id=Image, but no alt text or link|<nowiki>{{SpecialChars
+
{{testcase|id=Image, but no alt text or link|<nowiki>{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
Line 9: Line 9:
 
|characters = [[Perso-Arabic script]]
 
|characters = [[Perso-Arabic script]]
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
}}</nowiki>|{{SpecialChars
+
}}</nowiki>|{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
Line 15: Line 15:
 
|characters = [[Perso-Arabic script]]
 
|characters = [[Perso-Arabic script]]
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
}}|{{SpecialChars/sandbox
+
}}|{{Contains special characters/sandbox
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
Line 23: Line 23:
 
}}}}
 
}}}}
  
{{testcase|id=Image, with alt text and link|<nowiki>{{SpecialChars
+
{{testcase|id=Image, with alt text and link|<nowiki>{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 32: Line 32:
 
|characters = [[Perso-Arabic script]]
 
|characters = [[Perso-Arabic script]]
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
}}</nowiki>|{{SpecialChars
+
}}</nowiki>|{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 41: Line 41:
 
|characters = [[Perso-Arabic script]]
 
|characters = [[Perso-Arabic script]]
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
}}|{{SpecialChars/sandbox
+
}}|{{Contains special characters/sandbox
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 52: Line 52:
 
}}}}
 
}}}}
  
{{testcase|id=Image, with alt text and link, compact|<nowiki>{{SpecialChars
+
{{testcase|id=Compact|<nowiki>{{Contains special characters|compact=yes}}</nowiki>|{{Contains special characters|compact=yes}}|{{Contains special characters/sandbox|compact=yes}}}}
 +
 
 +
{{testcase|id=Image, but no alt text or link, no special text, compact|<nowiki>{{Contains special characters
 +
|image      = Farsi.svg
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}</nowiki>|{{Contains special characters
 +
|image      = Farsi.svg
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}|{{Contains special characters/sandbox
 +
|image      = Farsi.svg
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}}}
 +
 
 +
{{testcase|id=Image, but no alt text or link, compact|<nowiki>{{Contains special characters
 +
|image      = Farsi.svg
 +
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}</nowiki>|{{Contains special characters
 +
|image      = Farsi.svg
 +
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}|{{Contains special characters/sandbox
 +
|image      = Farsi.svg
 +
|special    = [[Persian language|Persian text]], written from right to left with some letters joined
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}}}
 +
 
 +
{{testcase|id=Image, with alt text and link, compact|<nowiki>{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 62: Line 107:
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|compact    = yes
 
|compact    = yes
}}</nowiki>|{{SpecialChars
+
}}</nowiki>|{{Contains special characters
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 72: Line 117:
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|compact    = yes
 
|compact    = yes
}}|{{SpecialChars/sandbox
+
}}|{{Contains special characters/sandbox
 
|image      = Farsi.svg
 
|image      = Farsi.svg
 
|alt        = فارسی
 
|alt        = فارسی
Line 82: Line 127:
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 
|compact    = yes
 
|compact    = yes
 +
}}}}
 +
 +
{{testcase|id=Image, with alt text and link, compact, shorter 'special'|<nowiki>{{Contains special characters
 +
|image      = Farsi.svg
 +
|alt        = فارسی
 +
|title      = Farsi
 +
|link      = Persian language
 +
|special    = [[Persian language|Persian text]]
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}</nowiki>|{{Contains special characters
 +
|image      = Farsi.svg
 +
|alt        = فارسی
 +
|title      = Farsi
 +
|link      = Persian language
 +
|special    = [[Persian language|Persian text]]
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}|{{Contains special characters/sandbox
 +
|image      = Farsi.svg
 +
|alt        = فارسی
 +
|title      = Farsi
 +
|link      = Persian language
 +
|special    = [[Persian language|Persian text]]
 +
|fix        = Help:Arabic
 +
|characters = [[Perso-Arabic script]]
 +
|error      = unjoined Perso-Arabic letters written left-to-right, instead of right-to-left or other symbols
 +
|compact    = yes
 +
}}}}
 +
 +
{{testcase|id=IPA|<nowiki>{{Contains special characters
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
}}</nowiki>|{{Contains special characters
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
}}|{{Contains special characters/sandbox
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
}}}}
 +
 +
{{testcase|id=IPA compact|<nowiki>{{Contains special characters
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
| compact    = yes
 +
}}</nowiki>|{{Contains special characters
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
| compact    = yes
 +
}}|{{Contains special characters/sandbox
 +
| section    = {{{1|}}}
 +
| special    = [[International Phonetic Alphabet|IPA]] phonetic symbols
 +
| characters = [[Unicode]] characters
 +
| fix        = International Phonetic Alphabet#Technical note
 +
| image      = {{{image|Parentesi Quadre.svg}}}
 +
| link      = International Phonetic Alphabet#Brackets and phonemes
 +
| compact    = yes
 
}}}}
 
}}}}

Latest revision as of 22:51, 16 October 2018

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase