Template:Ambox: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(keeeeeeeeeel the wiki)
mNo edit summary
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
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
----
;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>

Latest revision as of 05:22, 15 May 2020

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

Template