Difference between revisions of "Template:Badge"
Jump to navigation
Jump to search
>Fbstj (add templatedata) |
>Fbstj m (fix) |
||
Line 1: | Line 1: | ||
<div style="{{#switch: {{{align|}}} | |||
| right= float: right; clear: right; margin: 0 0 0.5em 0.5em; | | right= float: right; clear: right; margin: 0 0 0.5em 0.5em; | ||
| left= float: left; clear: left; margin: 0 0 0.5em 0.5em; | | left= float: left; clear: left; margin: 0 0 0.5em 0.5em; | ||
| middle | | middle | ||
| center= margin: 0.5em auto; | | center= margin: 0.5em auto; | ||
}} background-color: {{{bg-color|#E7EFF5}}}; {{{border|border: 1px solid #A1CEF5}}}; padding: 5px 8px; {{border-radius|10px}} {{{style|}}}; text-align: center;">{{{content}}}</div> | }} background-color: {{{bg-color|#E7EFF5}}}; {{{border|border: 1px solid #A1CEF5}}}; padding: 5px 8px; {{border-radius|10px}} {{{style|}}}; text-align: center;">{{{content}}}</div><noinclude> | ||
<templatedata> | <templatedata> |
Revision as of 13:52, 26 November 2014
{{{content}}}
Parameter | Description | Type | Status | |
---|---|---|---|---|
Contents | content | The badge's content | Content | required |
Alignment | align | How to align the badge, either left, right or middle/center | String | required |
Background color | bg-color | A CSS color string
| String | optional |
Border style | border | A CSS border style string
| String | optional |
Extra style | style | Extra CSS for the badge's style tag.
| String | optional |