Jump to content

Template:Userbox/testcases

From Wikipedia, the free encyclopedia

Standard boxes

[edit]
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
xpfoodddd bar
En-oThis User speaks English only
xpfoodddd bar
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
En-oThis User speaks English only
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
ALAThis User Lives or Lived in Alameda, California
En-oThis User speaks English only
ALAThis User Lives or Lived in Alameda, California
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
TSThis user likes Taylor Swift
En-oThis User speaks English only
TSThis user likes Taylor Swift

Border width

[edit]
Border width test cases
border-s=10px
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=-9
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=-2
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=-1
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=0
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=1
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=2
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=3
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=5
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
border-s=12
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.
En-oThis User speaks English only
Samuel JohnsonThis user honours Samuel Johnson
for his enduring contributions to the
English language.

border-s=10
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=50
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=21
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=0
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=1
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=2
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=15
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=100
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
border-s=150
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}

Maths

[edit]
Math testcases

Side by side

{{Userbox}} to the left of {{Userbox/sandbox}}

Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
π3.1415926535897932384626433832795028841941693993751058209749445923808162...
En-oThis User speaks English only
π3.1415926535897932384626433832795028841941693993751058209749445923808162...
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
42The Answer to Great Question of the Universe, Life, and Everything
En-oThis User speaks English only
42The Answer to Great Question of the Universe, Life, and Everything
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
;This user thinks TeX is cool.
En-oThis User speaks English only
;This user thinks TeX is cool.

Floating

3 instances of {{Userbox}} precede 3 instances of {{Userbox/sandbox}} and 3 instances of {{Userbox/sandbox2}}.

π3.1415926535897932384626433832795028841941693993751058209749445923808162...
42The Answer to Great Question of the Universe, Life, and Everything
;This user thinks TeX is cool.

{{Userbox/sandbox}}

En-oThis User speaks English only
En-oThis User speaks English only
En-oThis User speaks English only

{{Userbox/sandbox2}}

π3.1415926535897932384626433832795028841941693993751058209749445923808162...
42The Answer to Great Question of the Universe, Life, and Everything
;This user thinks TeX is cool.

Stacked

{{Userbox}} precedes {{Userbox/sandbox}} followed by {{Userbox/sandbox2}} in each case.

π3.1415926535897932384626433832795028841941693993751058209749445923808162...
En-oThis User speaks English only
π3.1415926535897932384626433832795028841941693993751058209749445923808162...
42The Answer to Great Question of the Universe, Life, and Everything
En-oThis User speaks English only
42The Answer to Great Question of the Universe, Life, and Everything
;This user thinks TeX is cool.
En-oThis User speaks English only
;This user thinks TeX is cool.

Long text

[edit]
Lorem ipsum 1
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
En-oThis User speaks English only
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum 2
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
Mr. Lorem, I don't feel so good...Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
En-oThis User speaks English only
Mr. Lorem, I don't feel so good...Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Blank parameters

[edit]
{{userbox
| border-width=
| border-s=10
}}
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
{{userbox
| 
| border-c=blue
}}
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}
{{userbox
| id = id
| info-background =
}}
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
id{{{info}}}
En-oThis User speaks English only
id{{{info}}}
{{userbox
| id = id
| id-w = 
}}
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
id{{{info}}}
En-oThis User speaks English only
id{{{info}}}
{{userbox
| info-color = 
| info-fc = red
}}
Side by side comparison
{{Userbox}}{{Userbox/sandbox}}{{Userbox/sandbox2}}
{{{info}}}
En-oThis User speaks English only
{{{info}}}