Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>David Levy
(Okay, but that's no reason to mess up the vast majority of templates that do not contain multiple paragraphs. This adds ugly padding to ALL OF THEM.)
No edit summary
 
(36 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
  | serious  = ambox-serious
| left =  
   | content  = ambox-content
   {{Bmbox/core
   | style    = ambox-style
   | small      = left
   | merge    = ambox-merge
   | type      = {{{type|}}}
  | notice  = ambox-notice
   | image      = {{#if:{{{smallimage|}}}
   | growth  = ambox-growth
                | {{{smallimage}}}
  | #default = ambox-notice
                | {{{image|}}}
}}">
                }}
<tr>
   | imageright = {{#if:{{{smallimageright|}}}
{{#ifeq:{{{image}}}|none
                | {{{smallimageright}}}
  | <!-- no image cell -->
                | {{{imageright|}}}
   | <td class="ambox-image"> {{#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}}}
    | growth   = [[Image:Green plus icon.png]]
                }}
    | blank    = <!-- empty image cell -->
   }}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
| #default =  
   }}</td>
   {{Bmbox/core
}}
  | type      = {{{type|}}}
<td>{{{text}}}</td>
  | image      = {{{image|}}}
{{#if:{{{imageright|}}}|
   | imageright = {{{imageright|}}}
   <td class="ambox-imageright"> {{{imageright}}} </td>
  | style      = {{{style|}}}
}}
  | textstyle  = {{{textstyle|}}}
</tr>
   | text      = {{{text}}}
</table><noinclude>
  }}
{{template doc}}
}}<!--{{Ambox}} end-->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:31, 9 July 2021