Template:Userbox/testcases
Appearance
![]() | This is the template test cases page for the sandbox of Template:Userbox. 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: |
General
[edit]{{Userbox}} | ||||||
---|---|---|---|---|---|---|
{{Userbox}}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = | id = xp | id-c = #ffffee | id-s = 20 | info = ''foodddd bar'' | info-c = #ffeeff | info-s = 12 }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |id=[[File:Heterochromia iridium clipart.svg|45px]] |info=''This user has [[heterochromia iridium|different colors of eyes]].'' |border=#FFCC33 |id-c=#a05a2c |info-c=#93aca7 |info-fc=#000000 }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | bodyclass = Vcard | border-c = id-c | border-s = 1 | float = left | id = ALA | id-a = center | id-c = Red | id-fc = Blue | id-h = 45 | id-lh = 1.25em | id-p = 0 1px 0 0 | id-s = 14 | id-w = 45 | info = This User Lives or Lived in [[Alameda, California]] | info-a = left | info-c = Blue | info-fc = Red | info-lh = 1.25em | info-p = 0 4px 0 4px }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | border-c = id-c | border-s = 2 | id = TS | id-a = center | id-c = Yellow | id-fc = Blue | id-h = 45 | id-s = 14 | id-w = 45 | info = ''This user likes Taylor Swift'' | info-a = left | info-c = Black | info-fc = White | info-s = }}
|
Border width
[edit]10px | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=10px |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|35px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
9px | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=-9 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|35px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
-2 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=-2 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|35px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
-1 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=-1 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|35px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
0 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=0 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|47px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
1 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=1 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|45px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
2 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=2 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|43px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
3 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=3 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|41px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
5 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=5 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|39px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
12 | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox |border-s=12 |id=[[File:Samuel Johnson by Joshua Reynolds 280x280.jpg|37px|alt=Samuel Johnson|link=Samuel Johnson]] |id-c=navy |id-w=0 |info=This user honours [[Samuel Johnson]]<br>for his enduring contributions to the<br>[[English language]]. |info-a=center |info-c=#ffffdd |info-s=6 }}
|
10 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 10 }}
|
50 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 50 }}
|
21 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 21 }}
|
0 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 0 }}
|
1 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 1 }}
|
2 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 2 }}
|
15 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 15 }}
|
100 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 100 }}
|
150 | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-c = #aaffaa | border-s = 150 }}
|
Maths
[edit]Side by side
[edit]{{Userbox}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Userbox |info=3.1415926535897932384626433832795028841941693993751058209749445923808162... |id=π }} {{Userbox |info=The Answer to Great Question of the Universe, Life, and Everything |id=42 }} {{Userbox |info=This user thinks TeX is cool. |id=<math>TeX</math>; }}
|
Stacked
[edit]{{Userbox}} | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Userbox |info=3.1415926535897932384626433832795028841941693993751058209749445923808162... |id=π }} {{-}} {{Userbox |info=The Answer to Great Question of the Universe, Life, and Everything |id=42 }} {{-}} {{Userbox |info=This user thinks TeX is cool. |id=<math>TeX</math>; }} {{-}}
|
Long text
[edit]{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | _template1 = Userbox | _template2 = Userbox/sandbox | _template3 = Userbox/sandbox2 | _title = Lorem ipsum 1 | _collapsible = yes | border-c = yellow | border-s = 5 | id = {{lorem}} | info = {{lorem}} | info-fc = green }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | _template1 = Userbox | _template2 = Userbox/sandbox | _template3 = Userbox/sandbox2 | _title = Lorem ipsum 2 | _collapsible = yes | border-c = yellow | border-s = 5 | id = Mr. Lorem, I don't feel so good... | info = {{lorem}} | info-fc = green }}
|
Blank parameters
[edit]{{Userbox}} | ||||||
---|---|---|---|---|---|---|
{{Userbox | border-width= | border-s=10 }}
|
{{Userbox}} | ||||||
---|---|---|---|---|---|---|
{{Userbox | | border-c=blue }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | id = id | info-background = }}
|
{{Userbox}} | ||||||||
---|---|---|---|---|---|---|---|---|
{{Userbox | id = id | id-w = }}
|
{{Userbox}} | ||||||
---|---|---|---|---|---|---|
{{Userbox | info-color = | info-fc = red }}
|