Nhwɛdo:Interlanguage link/testcases
This is the template test cases page for the sandbox of Nhwɛdo:Interlanguage link. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Various test cases
sesa muThere is no article called Charles Darwin (botanist):
sesa mu{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin}}
- Main:
- Sandbox:
There is an article called Charles Darwin:
sesa mu{{Interlanguage link|Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin}}
- Main
- Sandbox
Test nobold Charles Darwin (botanist):
sesa mu{{Interlanguage link/sandbox|nobold=x|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
- Sandbox
Test italic Charles Darwin (botanist):
sesa mu{{Interlanguage link/sandbox|italic=x|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
- Sandbox
Test italics Charles Darwin (botanist):
sesa mu{{Interlanguage link/sandbox|italics=x|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
- Sandbox
Test nobold, italic, and quote together Charles Darwin (botanist):
sesa mu{{Interlanguage link/sandbox|nobold=x|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|italic=1|quote=1}}
- Main
- Sandbox
Test vertical-align=none Charles Darwin (botanist):
sesa mu{{Interlanguage link/sandbox|vertical-align=none|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
- Sandbox
Test vertical-align=none and quote=y together Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=none|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
- Sandbox
Test vertical-align=sup Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=sup|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
Charles Darwin [fr; de; es]
- Sandbox
Charles Darwin [fr; de; es]
Test vertical-align=sup and quote=y together Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=sup|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
"Charles Darwin" [fr; de; es]
- Sandbox
"Charles Darwin" [fr; de; es]
Test vertical-align=super Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=super|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
Charles Darwin [fr; de; es]
- Sandbox
Charles Darwin [fr; de; es]
Test vertical-align=super and quote=y together Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=super|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
"Charles Darwin" [fr; de; es]
- Sandbox
"Charles Darwin" [fr; de; es]
Test vertical-align=sub Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=sub|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
Charles Darwin [fr; de; es]
- Sandbox
Charles Darwin [fr; de; es]
Test vertical-align=sub and quote=y together Charles Darwin (botanist)
sesa mu{{Interlanguage link|vertical-align=sub|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
"Charles Darwin" [fr; de; es]
- Sandbox
"Charles Darwin" [fr; de; es]
Test vertical-align=sup and italic=yes Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=sup|Charles Darwin (botanist)|italic=yes|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
Charles Darwin [fr; de; es]
- Sandbox
Charles Darwin [fr; de; es]
Test vertical-align=sup, italic=yes, and quote=y together Charles Darwin (botanist):
sesa mu{{Interlanguage link|vertical-align=sup|italic=yes|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
"Charles Darwin " [fr; de; es]
- Sandbox
"Charles Darwin " [fr; de; es]
Test bulleted list Charles Darwin (botanist):
sesa mu*{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}}
- Main
- Charles Darwin
- Sandbox
- Charles Darwin
Test bulleted list with quote=y Charles Darwin (botanist):
sesa mu*{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|quote=y}}
- Main
- "Charles Darwin"
- Sandbox
- "Charles Darwin"
{{Interlanguage link|Jokery|WD=Q131138}}
- Main
- Sandbox
{{Interlanguage link|Jokery|WD=Q131138|quote=y}}
- Main
"Jokery"
- Sandbox
"Jokery"
{{Interlanguage link|Jokery|wd=Q131138}}
- Main
- Sandbox
{{Interlanguage link|Jokery|wd=Q131138|quote=y}}
- Main
"Jokery"
- Sandbox
"Jokery"
Test page exists and has display=1, should not have any expensive parser function calls Charles Darwin
sesa mu{{Interlanguage link|Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|display=1}}
- Main:
- Sandbox:
Test page exists and has preserve=1, should not have any expensive parser function calls Charles Darwin
sesa mu{{Interlanguage link|Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1}}
- Main:
- Sandbox:
Test page exists and has preserve=1 and display=1 together, should not have any expensive parser function calls Charles Darwin
sesa mu{{Interlanguage link|Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1|display=1}}
- Main:
- Sandbox:
Test page does not exist and has display=1, should not have any expensive parser function calls Charles Darwin (botanist)
sesa mu{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|display=1}}
- Main:
- Sandbox:
Test page does not exist and has preserve=1, should not have any expensive parser function calls Charles Darwin (botanist)
sesa mu{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1}}
- 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)
sesa mu{{Interlanguage link|Charles Darwin (botanist)|lt=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1|display=1}}
- 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
sesa mu{{Interlanguage link|Charles Robert Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin}}
- Main:
- Sandbox:
Test page is a redirect and has display=1, should not have any expensive parser function calls Charles Robert Darwin
sesa mu{{Interlanguage link|Charles Robert Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|display=1}}
- Main:
- Sandbox:
Test page is a redirect and has preserve=1, should not have any expensive parser function calls Charles Robert Darwin
sesa mu{{Interlanguage link|Charles Robert Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1}}
- 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
sesa mu{{Interlanguage link|Charles Robert Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|preserve=1|display=1}}
- Main:
- Sandbox:
Test useredirect, page is not a redirect, no |lt=
Charles Darwin
sesa mu
{{Interlanguage link|Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
Test useredirect, page IS a redirect, no |lt=
Charles Robert Darwin
sesa mu
{{Interlanguage link|Charles Robert Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
Test useredirect, page does not exist, no |lt=
Charles Darwin (botanist)
sesa mu
{{Interlanguage link|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
Test useredirect, page is not a redirect, |lt=Charlie Darwin
Charles Darwin
sesa mu
{{Interlanguage link|Charles Darwin|lt=Charlie Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
Test useredirect, page IS a redirect, |lt=Charlie Darwin
Charles Robert Darwin
sesa mu
{{Interlanguage link|Charles Robert Darwin|lt=Charlie Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
Test useredirect, page does not exist, |lt=Charlie Darwin
Charles Darwin (botanist)
sesa mu
{{Interlanguage link|Charles Darwin (botanist)|lt=Charlie Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|eo|Charles Darwin|it|Charles Darwin|da|Charles Darwin|no|Charles Darwin|tr|Charles Darwin|sv|Charles Darwin|cs|Charles Darwin|hr|Charles Darwin|pt|Charles Darwin|useredirect=1}}
- Main:
- Sandbox:
- Sandbox,
|maskredirect=1
There is no article in English or in the foreign language Wikipedia (shows as blue link instead of red)
sesa muSee Template:Interlanguage link#Limitations.
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
A: Test cases with redirects in en-wiki
sesa muThese 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
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Non-reduced font size
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case B-1 differing names in other languages
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case B-2 same name in other languages
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case B-3 vertical-align aliases (with 'force')
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case B-4 vertical-align aliases
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case C shortening for Wikidata link
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
Test case D link text
sesa mu[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]
[[{{{1}}}]]
{{Interlanguage link/sandbox}}
[[{{{1}}}]]