Changes

Jump to: navigation, search

Template:Ambox

4,181 bytes added, 00:16, 21 August 2018
Created page with "<includeonly><div style="padding:0.2em"> {{#switch: {{{1|}}} | success = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bco..."
<includeonly><div style="padding:0.2em">
{{#switch: {{{1|}}}
| success = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#28a745}}};border-left:10px solid {{{bcolor|#28a745}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| info = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#17a2b8}}};border-left:10px solid {{{bcolor|#17a2b8}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| warning = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#ffc107}}};border-left:10px solid {{{bcolor|#ffc107}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| danger = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#dc3545}}};border-left:10px solid {{{bcolor|#dc3545}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| dark = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#343a40}}};border-left:10px solid {{{bcolor|#343a40}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| primary = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#007bff}}};border-left:10px solid {{{bcolor|#007bff}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
| = <div style="width:{{{width|30%}}};background:{{{bgcolor|#F0F8FF}}};padding:5px;border:1px solid {{{bcolor|#6c757d}}};border-left:10px solid {{{bcolor|#6c757d}}};border-radius:{{{radius|0}}};{{{style|}}}"><span style="padding-left:1.5%">{{{content|}}}</span></div>
}}</div>
</includeonly><noinclude>
:'''Success''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|success|content=}}</nowiki></span>
{{ambox|success|content = Sample Content}}
:'''Info''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|info|content=}}</nowiki></span>
{{ambox|info|content = Sample Content}}
:'''Warning''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|warning|content=}}</nowiki></span>
{{ambox|warning|content = Sample Content}}
:'''Danger''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|danger|content=}}</nowiki></span>
{{ambox|danger|content = Sample Content}}
:'''Dark''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|dark|content=}}</nowiki></span>
{{ambox|dark|content = Sample Content}}
:'''Primary''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|primary|content=}}</nowiki></span>
{{ambox|primary|content = Sample Content}}
:'''Default''' <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000"><nowiki>{{ambox|content=}}</nowiki></span>
{{ambox|content = Sample Content}}

==Advance Options==
: '''type''' - Sets the pre-defined border colors for the ambos. Currently there are 7 pre-defined styles: <span style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000">success, info, warning, danger, dark, primary, default</span>
: '''width''' - Sets the width of the ambox notification. Default to 40%
: '''bgcolor''' - Sets the background color of the ambox notification. Default to #F0F8FF
: '''bcolor''' - Sets the border color of the ambox notification other than the pre-defined styles.
: '''radius''' - Sets the border-radius property of the ambox notification. Default to 0
: '''style''' - Adds additional styles for the ambox
: '''content''' - This will provide value to the ambox notification

<pre style="padding:2px 10px;background:#DDDDDD;border:1px dashed #000;width:40%;">
{{ambox|1
|width =
| bgcolor =
| bcolor =
| radius =
| style =
| content =
}}
</pre>
</noinclude>

Navigation menu