Template:Interlanguage link/testcases
This is the template test cases page for the sandbox of Template: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
[edit]There is no article called Charles Darwin (botanist):
[edit]{{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:
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]{{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)
[edit]{{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):
[edit]{{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):
[edit]{{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):
[edit]*{{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):
[edit]*{{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
[edit]{{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
[edit]{{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
[edit]{{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)
[edit]{{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)
[edit]{{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)
[edit]{{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
[edit]{{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
[edit]{{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
[edit]{{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
[edit]{{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
[edit]{{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
[edit]{{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)
[edit]{{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
[edit]{{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
[edit]{{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)
[edit]{{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)
[edit]See Template:Interlanguage link#Limitations.
{{Interlanguage link|Kate no Sukune Foobar|ja|蚊手宿祢 Foobar}}
{{Interlanguage link}} | {{Interlanguage link/sandbox}} |
---|---|
Kate no Sukune Foobar | Kate no Sukune Foobar |
A: Test cases with redirects in en-wiki
[edit]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
[edit]{{Interlanguage link|Constitutional law of 10 July 1940|fr|Loi constitutionnelle du 10 juillet 1940}}
Constitutional law of 10 July 1940
Non-reduced font size
[edit]{{Interlanguage link|Constitutional law of 10 July 1940|fr|Loi constitutionnelle du 10 juillet 1940|v=ib}}
Constitutional law of 10 July 1940
Test case B-1 differing names in other languages
[edit]{{Interlanguage link|Geiseltal fossil bed|de|Fossillagerstätte Geiseltal|fr|Gisement de fossiles du Geiseltal|es|Yacimiento de Geiseltal}}
{{Interlanguage link|North face of the Eiger|fr|Face nord de l'Eiger|ca|Cara nord de l'Eiger|de|Eiger-Nordwand}}
Test case B-2 same name in other languages
[edit]{{Interlanguage link|Margarita Cueto|ca||es||pt}}
{{Interlanguage link|Luigi Madonis|ca||de||fi||it||kk|Луиджи Мадонис|ru|Мадонис, Луиджи}}
{{Interlanguage link|Eero Heinonen|de||es||fi}}
Test case B-3 vertical-align aliases (with 'force')
[edit]{{Interlanguage link|Charles Darwin|fr||es||de|display=force |vertical-align=sup}}
Charles Darwin [fr; es; de]
{{Interlanguage link/sandbox}}
Charles Darwin [fr; es; de]
{{Interlanguage link|Charles Darwin|fr||es||de|display=force |valign=sup}}
Charles Darwin [fr; es; de]
{{Interlanguage link/sandbox}}
Charles Darwin [fr; es; de]
{{Interlanguage link|Charles Darwin|fr||es||de|display=force |v=sup}}
Charles Darwin [fr; es; de]
{{Interlanguage link/sandbox}}
Charles Darwin [fr; es; de]
Test case B-4 vertical-align aliases
[edit]{{Interlanguage link|Margarita Cueto|ca||es||pt|vertical-align=sup}}
Margarita Cueto [ca; es; pt]
{{Interlanguage link/sandbox}}
Margarita Cueto [ca; es; pt]
{{Interlanguage link|Eero Heinonen|de||es||fi|valign=sup}}
Eero Heinonen [de; es; fi]
{{Interlanguage link/sandbox}}
Eero Heinonen [de; es; fi]
{{Interlanguage link|Luigi Madonis|ca||de||fi||it||kk|Луиджи Мадонис|ru|Мадонис, Луиджи|v=sup}}
Luigi Madonis [ca; de; fi; it; kk; ru]
Test case C shortening for Wikidata link
[edit]{{Interlanguage link|Jokery|WD=Q131138 |short=yes}}
{{Interlanguage link|Jokery|s=1 |v=sup |wd=Q131138}}
Test case D link text
[edit]{{Interlanguage link|Altar der Victoria (Köln)|de|lt=Altar der Victoria}}
{{Interlanguage link|BOOS: This Is The Voice|nl|italic=yes}}
{{Interlanguage link|Hasta la vista (Oleksandr Ponomaryov song)|uk|Hasta la vista|lt=Hasta la vista |quotes=y}}
{{Interlanguage link|Machsor Lipsiae|de|lt-lang=de}}
{{Interlanguage link|Landesausschuss|de|italic=yes |lt-lang=de}}
{{Interlanguage link|Vuelve conmigo|es|lt-lang=es |quote=yes}}
{{Interlanguage link|محمد قدري باشا|ar|lt-lang=ar |lt-rtl=yes}}