Template:Ambox: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
Line 1: Line 1:
Creates a generic message box on a wiki page.


;Usage
:<code>style =</code> ''optional'' additional style to be added to the box style attribute
:<code>border =</code> &#91;red,orange,yellow,purple,blue,brown,green,gray&#93; ''optional'' the boxes left accent color. Default is 'green'.
:<code>type =</code> top line text, meant to be the type of notice, or 'notice type title'
:<code>info =</code> a specific message, or explanation of the type
See [[Template:Ambox/doc]] for instructions and examples.<!-- high volume template, please don't integrate docs -->
----
;Template
<onlyinclude>{| {{#if:{{{style|}}}|style="{{{style}}}"}} class="plainlinks ambox ambox-<!--
  -->{{#switch:{{{border|}}}|red|orange|yellow|purple|blue|brown|green|gray={{{border}}}|#default=green}} {{#if:{{{nomobile|}}}|hidden|}}"
|-
| class="ambox-image"|{{{image|[[File:Stub.png]]}}}
| style="padding:0.25em 0.5em;"|{{{type|}}}
<!----><div class="amsmalltext">
<!---->{{{info|}}}<!--
    --></div>
|}
</onlyinclude>

Revision as of 00:17, 30 October 2015

Creates a generic message box on a wiki page.

Usage
style = optional additional style to be added to the box style attribute
border = [red,orange,yellow,purple,blue,brown,green,gray] optional the boxes left accent color. Default is 'green'.
type = top line text, meant to be the type of notice, or 'notice type title'
info = a specific message, or explanation of the type

See Template:Ambox/doc for instructions and examples.


Template