Template:Ambox: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to navigation Jump to search
(new)
 
m (Add code for incorrectly substed templates, or minor tidy up using AWB)
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
  | serious  = ambox-serious
| left =  
   | content  = ambox-content
   {{Ambox/core
   | style    = ambox-style
   | small      = left
   | merge    = ambox-merge
   | type      = {{{type|}}}
  | notice  = ambox-notice
   | image      = {{#if:{{{smallimage|}}}
   | #default = ambox-notice
                | {{{smallimage}}}
}}">
                | {{{image|}}}
<tr>
                }}
<td class="ambox-image">
   | imageright = {{#if:{{{smallimageright|}}}
{{#ifeq:{{{image}}}|none
                | {{{smallimageright}}}
  | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
                | {{{imageright|}}}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
                }}
    | serious = [[Image:Stop hand nuvola.svg|40px]]
  | style      = {{{style|}}}
    | content  = [[Image:Emblem-important.svg|40px]]
  | textstyle = {{{textstyle|}}}
    | style    = [[Image:Broom icon.svg|40px]]
  | text      = {{#if:{{{smalltext|}}}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
                | {{{smalltext}}}
    | notice  = [[Image:Info non-talk.png|40px]]
                | {{{text}}}
    | blank    = [[Image:No image.svg]]
                }}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
  }}
   }}</div>
| #default =  
}}</td>
  {{Ambox/core
<td class="ambox-text">{{{text}}}</td>
  | type      = {{{type|}}}
{{#if:{{{imageright|}}}|
  | image      = {{{image|}}}
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
  | imageright = {{{imageright|}}}
}}
   | style      = {{{style|}}}
</tr>
  | textstyle  = {{{textstyle|}}}
</table><noinclude>
  | text      = {{{text}}}
{{template doc}}
  }}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
}}<!--
 
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
--><!--{{Ambox}} end--><noinclude>
 
{{pp-template}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 11:01, 15 October 2009