Difference between revisions of "Template:Badge"

From WPRDC Wiki
Jump to navigation Jump to search
>Fbstj
(add templatedata)
>Fbstj
m (fix)
Line 1: Line 1:
 
<div style="{{#switch: {{{align|}}}
<noinclude><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}}}

Template parameters

ParameterDescriptionTypeStatus
Contentscontent

The badge's content

Contentrequired
Alignmentalign

How to align the badge, either left, right or middle/center

Stringrequired
Background colorbg-color

A CSS color string

Default
#E7EFF5
Stringoptional
Border styleborder

A CSS border style string

Default
border: 1px solid #A1CEF5
Stringoptional
Extra stylestyle

Extra CSS for the badge's style tag.

Default
10px
Stringoptional