Template:Ambox: Difference between revisions

From Cvillepedia
Jump to navigation Jump to search
(New page: {{#switch:{{{small|}}} | left = {{ambox/core | small = left | type = {{{type|}}} | image = {{#if:{{{smallimage|}}} | {{{smallimage}}} ...)
 
m (Reverted edits by Kathy.brown (talk) to last revision by B.S. Lawrence)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch:{{{small|}}}
<table class="metadata plainlinks ambox ">
| left =  
<tr>
  {{ambox/core
<td class="mbox-image">{{#if:{{{image|}}} | {{{image}}} | [[Image:Logo-small25.jpg]] }}</td>
  | small      = left
<td class="mbox-text">{{{text|}}}</td></tr></table><noinclude>{{ambox/doc}}</noinclude>
  | type      = {{{type|}}}
  | image     = {{#if:{{{smallimage|}}}
                | {{{smallimage}}}
                | {{{image|}}}
                }}
  | imageright = {{#if:{{{smallimageright|}}}
                | {{{smallimageright}}}
                | {{{imageright|}}}
                }}
  | style      = {{{style|}}}
  | textstyle  = {{{textstyle|}}}
  | text       = {{#if:{{{smalltext|}}}
                | {{{smalltext}}}
                | {{{text}}}
                }}
  }}
| #default =
  {{ambox/core
  | type      = {{{type|}}}
  | image      = {{{image|}}}
  | imageright = {{{imageright|}}}
  | style      = {{{style|}}}
  | textstyle  = {{{textstyle|}}}
  | text      = {{{text}}}
  }}
}}<noinclude>
 
{{pp-template}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 10:58, 22 July 2011

The ambox template allows easy creation of notice boxes.

Parameters

  • image: Defaults to the cvillepedia logo.
  • text: the text included in the box.