This is the template test cases page for the sandbox of Template:Button. 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: |
No parameters defined
{{Button}}
{{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!}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World | Hello, World |
Text (basic usage)
{{Button|text=Different text}}
{{Button}} | {{Button/sandbox}} |
---|---|
Different text | Different text |
Background color
{{Button|bgcolor=#3366CC}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Tooltip
{{Button|tooltip=I'm not clickable!}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Top and bottom padding
{{Button|padTB=1em}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Left and right padding
{{Button|padLR=1em}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Full padding
{{Button|padLR=1em |padTB=0.5em}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Foreground color
{{Button|fgcolor=red}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Background gradient
{{Button|bgcolor1=#3366CC |bgcolor2=green}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Format
{{Button|format=bold}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |
Custom style
{{Button|style=font-family: monospace}}
{{Button}} | {{Button/sandbox}} |
---|---|
Hello, World! | Hello, World! |