Jump to content

Template:Button/testcases

From Wikipedia, the free encyclopedia
No parameters defined
{{Button}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Full usage
{{Button|bgcolor1=#3366CC |bgcolor2=#E0E0E0 |fgcolor=red |format=bold |padLR=1em |padTB=0.5em |text=Hello, World |tooltip=I'm not clickable!}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World Hello, World
Text (basic usage)
{{Button|text=Different text}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Different text Different text
Background color
{{Button|bgcolor=#3366CC}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Tooltip
{{Button|tooltip=I'm not clickable!}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Top and bottom padding
{{Button|padTB=1em}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Left and right padding
{{Button|padLR=1em}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Full padding
{{Button|padLR=1em |padTB=0.5em}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Foreground color
{{Button|fgcolor=red}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Background gradient
{{Button|bgcolor1=#3366CC |bgcolor2=green}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Format
{{Button|format=bold}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!
Custom style
{{Button|style=font-family: monospace}}
Side by side comparison
{{Button}}{{Button/sandbox}}
Hello, World! Hello, World!