แม่แบบ:Interlanguage link/testcases

== Various test cases**

**There is no article called Charles Darwin (botanist):**

*Main:
*Sandbox:
----

**There is an article called Charles Darwin:**

*Main
*Sandbox
----

**Test nobold Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test italic Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test italics Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test nobold, italic, and quote together Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=none Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=none and quote=y together Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=sup Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=sup and quote=y together Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=super Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=super and quote=y together Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=sub Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=sub and quote=y together Charles Darwin (botanist)**

*Main
*Sandbox
----

**Test vertical-align=sup and italic=yes Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test vertical-align=sup, italic=yes, and quote=y together Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test bulleted list Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test bulleted list with quote=y Charles Darwin (botanist):**

*Main
*Sandbox
----

**Test WikiData WD=Q131138 Jokery:**

*Main
*Sandbox
----

**Test WikiData WD=Q131138 and quote=y together Jokery:**

*Main
*Sandbox
----

**Test Wikidata wd=Q131138 Jokery:**

*Main
*Sandbox
----

**Test Wikidata wd=Q131138 and quote=y together Jokery:**

*Main
*Sandbox
----

**Test page exists and has display=1, should not have any expensive parser function calls Charles Darwin**

*Main:
*Sandbox:
----

**Test page exists and has preserve=1, should not have any expensive parser function calls  Charles Darwin**

*Main:
*Sandbox:
----

**Test page exists and has preserve=1 and display=1 together, should not have any expensive parser function calls  Charles Darwin**

*Main:
*Sandbox:
----

**Test page does not exist and has display=1, should not have any expensive parser function calls Charles Darwin (botanist)**

*Main:
*Sandbox:
----

**Test page does not exist and has preserve=1, should not have any expensive parser function calls Charles Darwin (botanist)**

*Main:
*Sandbox:
----

**Test page does not exist and has preserve=1 and display=1 together, should not have any expensive parser function calls  Charles Darwin (botanist)**

*Main:
*Sandbox:
----

**Test page is a redirect and has NEITHER display= nor preserve= defined.  This should result in two expensive parser function calls Charles Robert Darwin**

*Main:
*Sandbox:
----

**Test page is a redirect and has display=1, should not have any expensive parser function calls Charles Robert Darwin**

*Main:
*Sandbox:
----

**Test page is a redirect and has preserve=1, should not have any expensive parser function calls Charles Robert Darwin**

*Main:
*Sandbox:
----

**Test page is a redirect and has preserve=1 and display=1 together, should not have any expensive parser function calls  Charles Robert Darwin**

*Main:
*Sandbox:
----

**Test useredirect, page is not a redirect, no lt Charles Darwin**

*Main:
*Sandbox:
*Sandbox, 1
----

**Test useredirect, page IS a redirect, no lt Charles Robert Darwin**

*Main:
*Sandbox:
*Sandbox, 1
----

**Test useredirect, page does not exist, no lt Charles Darwin (botanist)**

*Main:
*Sandbox:
*Sandbox, 1
----

**Test useredirect, page is not a redirect, Charlie Darwin Charles Darwin**

*Main:
*Sandbox:
*Sandbox, 1
----

**Test useredirect, page IS a redirect, Charlie Darwin Charles Robert Darwin**

*Main:
*Sandbox:
*Sandbox, 1
----

**Test useredirect, page does not exist, Charlie Darwin Charles Darwin (botanist)**

*Main:
*Sandbox:
*Sandbox, 1

**There is no article in English or in the foreign language Wikipedia (shows as blue link instead of red)**
See Template:Interlanguage link#Limitations. 

**A: Test cases with redirects in en-wiki**
These show a blue link (because the redirect exists) and bracketed lang codes at the same time:

**Test case A-1 redirect and one foreign link**

**Non-reduced font size**

**Test case B-1 differing names in other languages**

**Test case B-2 same name in other languages**

**Test case B-3 vertical-align aliases (with 'force')**

**Test case B-4 vertical-align aliases**

**Test case C shortening for Wikidata link**

**Test case D link text==