Template:Badge: Difference between revisions

From Droid Reference Library
Jump to navigation Jump to search
m (1 revision imported)
 
mNo edit summary
 
Line 5: Line 5:
  | 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><noinclude>
  }} background-color: {{{bg-color|#E7EFF5}}}; {{{border|border: 1px solid #A1CEF5}}}; padding: 5px 8px; {{border-radius|10px}} {{{style|}}}; text-align: center;">{{{content}}}</div><noinclude>
{{TNT|Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:36, 10 August 2018

{{{content}}}
Documentation icon Template documentation[view] [edit] [history] [purge]

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