Template:Sister bar/testcases

From Wikipedia, the free encyclopedia
Jump to navigationJump to search

Note: Sandbox CSS classes have different names than the Main CSS Classes, due to technical limitations in {{test case}}. The sandbox and main will display correctly, but will be flagged as different due to these different names. You will have to manually inspect each test case for correctness.

No parameters

[edit]
no parameters
{{Sister bar}}
{{Sister bar}}
{{Sister bar/sandbox}}

With parameters

[edit]
plain
{{Sister bar |m=Category:Categories |d=Category:Contents |voy=Category:Project |commons=Category:CommonsRoot |b=Category:Categories |n=Category:Categories |q=Category:Categories |s=Category:Categories |wikt=Category:Fundamental |v=Category:Categories |mw=Category:Languages |species=Category:Categories}}
{{Sister bar}}
{{Sister bar/sandbox}}
all named arguments set to yes
{{Sister bar|test|b=yes |commons=true |d=yes |m=y |mw=y |n=yes |q=y |s=Y |species=y |species_author=y |v=YES |voy=1 |wikt=y}}
{{Sister bar}}
{{Sister bar/sandbox}}
all named arguments set to no
{{Sister bar|test|b=no |commons=false |d=no |m=n |mw=0 |n=no |q=n |s=N |species=n |species_author=n |v=NO |voy=0 |wikt=n}}
{{Sister bar}}
{{Sister bar/sandbox}}
Only commons link
{{Sister bar|test|b=no |commons=test |d=no |m=n |mw=0 |n=no |q=n |s=N |species=n |species_author=n |v=NO |voy=0 |wikt=n}}
{{Sister bar}}
{{Sister bar/sandbox}}
Only commonscat link
{{Sister bar|test|b=no |commons=test |commonscat=yes |d=no |m=n |mw=0 |n=no |q=n |s=N |species=n |species_author=n |v=NO |voy=0 |wikt=n}}
{{Sister bar}}
{{Sister bar/sandbox}}
Display with single link
{{Sister bar|test|b=no |commons=true |d=no |display=Bears |m=n |mw=0 |n=no |q=n |s=N |species=n |species_author=n |v=NO |voy=0 |wikt=n}}
{{Sister bar}}
{{Sister bar/sandbox}}
Only wikispecies
{{Sister bar|test|b=no |commons=false |d=no |m=n |mw=0 |n=no |q=n |s=N |species=Testus chicagoensis |species_author=n |v=NO |voy=0 |wikt=n}}
{{Sister bar}}
{{Sister bar/sandbox}}

Test commonscat

[edit]
commons provided, commonscat no
{{Sister bar|Polar bear|commons=Ursus maritimus}}
{{Sister bar}}
{{Sister bar/sandbox}}
commons provided, commonscat yes
{{Sister bar|Polar bear|commons=Ursus maritimus |commonscat=y}}
{{Sister bar}}
{{Sister bar/sandbox}}
commons has category, commonscat is category
{{Sister bar|Polar bear|commons=Category:Ursus maritimus |commonscat=Category:Ursus maritimus}}
{{Sister bar}}
{{Sister bar/sandbox}}
no commons, commonscat no
{{Sister bar|Polar bear}}
{{Sister bar}}
{{Sister bar/sandbox}}
no commons, commonscat yes
{{Sister bar|Polar bear|commonscat=y}}
{{Sister bar}}
{{Sister bar/sandbox}}

With Ursus maritimus metadata

[edit]
commonscat yes
{{Sister bar|Polar bear|commonscat=yes |d=y |qid=Q33609 |species=yes}}
{{Sister bar}}
{{Sister bar/sandbox}}
commonscat no
{{Sister bar|Polar bear|commonscat=no |d=y |qid=Q33609 |species=yes}}
{{Sister bar}}
{{Sister bar/sandbox}}
commons yes
{{Sister bar|Polar bear|commons=yes |d=y |qid=Q33609 |species=yes}}
{{Sister bar}}
{{Sister bar/sandbox}}
commons no
{{Sister bar|Polar bear|commons=no |d=y |qid=Q33609 |species=yes}}
{{Sister bar}}
{{Sister bar/sandbox}}
commons Angola
{{Sister bar|Polar bear|commons=Angola |d=y |qid=Q33609 |species=yes}}
{{Sister bar}}
{{Sister bar/sandbox}}

Test auto

[edit]
Alabama no auto
{{Sister bar| Alabama |qid=Q173}}
{{Sister bar}}
{{Sister bar/sandbox}}
Alabama auto
{{Sister bar| Alabama |auto=1 |qid=Q173}}
{{Sister bar}}
{{Sister bar/sandbox}}
Alabama auto no qid
{{Sister bar| Alabama |auto=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
Alabama no auto no qid
{{Sister bar| Alabama}}
{{Sister bar}}
{{Sister bar/sandbox}}
Abraham Lincoln no auto
{{Sister bar| Abraham Lincoln |qid=Q91}}
{{Sister bar}}
{{Sister bar/sandbox}}
Abraham Lincoln auto
{{Sister bar| Abraham Lincoln |auto=1 |qid=Q91}}
{{Sister bar}}
{{Sister bar/sandbox}}
Abraham Lincoln auto no qid
{{Sister bar| Abraham Lincoln |auto=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
Abraham Lincoln no auto no qid
{{Sister bar| Abraham Lincoln}}
{{Sister bar}}
{{Sister bar/sandbox}}

Test wikispecies

[edit]
auto default
{{Sister bar| Polar bear |auto=1 |qid=Q33609}}
{{Sister bar}}
{{Sister bar/sandbox}}
species default, without QID
{{Sister bar| Polar bear |species=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
species default, with QID
{{Sister bar| Polar bear |qid=Q33609 |species=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
species specified
{{Sister bar| Polar bear |species=Ursus maritimus}}
{{Sister bar}}
{{Sister bar/sandbox}}
author default, with QID
{{Sister bar| Constantine John Phipps |author=1 |qid=Q335143 |species_author=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
author default, without QID
{{Sister bar| Constantine John Phipps |author=1 |species_author=1}}
{{Sister bar}}
{{Sister bar/sandbox}}
author specified
{{Sister bar| Constantine John Phipps |author=1 |species_author=Constantine John Phipps}}
{{Sister bar}}
{{Sister bar/sandbox}}
both species and author specified
{{Sister bar| Polar bear |author=1 |species=Ursus maritimus |species_author=Constantine John Phipps}}
{{Sister bar}}
{{Sister bar/sandbox}}
species blank, author no, auto
{{Sister bar| Polar bear |auto=1 |qid=Q33609 |species_author=no}}
{{Sister bar}}
{{Sister bar/sandbox}}
species no, author no, auto
{{Sister bar| Polar bear |auto=1 |qid=Q33609 |species=no |species_author=no}}
{{Sister bar}}
{{Sister bar/sandbox}}

Test cookbook

[edit]
From wikidata
{{Sister bar| Dessert |auto=1 |qid=Q182940}}
{{Sister bar}}
{{Sister bar/sandbox}}
cookbook specified
{{Sister bar| Cuisine of France|auto=1 |b=Cuisine of France |c=Cuisine of France |commonscat=y |cookbook=y |qid=Q6661 |voy=Cuisine of France}}
{{Sister bar}}
{{Sister bar/sandbox}}
cookbook implicit
{{Sister bar| Vanilla |auto=1 |c=y |cookbook=y |qid=Q13241 |s=y |wikt=y}}
{{Sister bar}}
{{Sister bar/sandbox}}
cookbook namespace used
{{Sister bar| Vanilla |auto=1 |b=Cookbook:Vanilla |qid=Q13241}}
{{Sister bar}}
{{Sister bar/sandbox}}

Test wikisource author

[edit]
Colin Powell
{{Sister bar| Colin Powell |author=yes |qid=Q150851 |s=Colin L. Powell}}
{{Sister bar}}
{{Sister bar/sandbox}}
Leon Trotsky
{{Sister bar| Leon Trotsky |author=yes |commons=Лев Троцкий |d=Q33391 |qid=Q33391}}
{{Sister bar}}
{{Sister bar/sandbox}}

Adjacent navboxes

[edit]
Adjacent navboxes
{{Carnivora|C.}}
{{Sister bar|auto=1|qid=Q33609}}
{{Authority control|qid=Q33609}}

{{Sister bar}}



{{Sister bar/sandbox}}


Test interwiki

[edit]
Esperanto
{{Sister bar|auto=1 |iw=y |qid=Q143}}
{{Sister bar}}
{{Sister bar/sandbox}}
Karnataka
{{Sister bar|auto=1 |iw=kn |qid=Q1185}}
{{Sister bar}}
{{Sister bar/sandbox}}
Belarusian (multiple iw)
{{Sister bar|auto=1 |iw=be |iw2=be-x-old |qid=Q9091}}
{{Sister bar}}
{{Sister bar/sandbox}}
Junk
Side by side comparison
{{Sister bar}}{{Sister bar/sandbox}}
[edit]
sdfjoisfj auto=0
{{Sister bar| sdfjoisfj |auto=0}}
{{Sister bar}}
{{Sister bar/sandbox}}
sdfjoisfj auto=1
{{Sister bar| sdfjoisfj |auto=1}}
{{Sister bar}}
{{Sister bar/sandbox}}