Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Changed default merge/split/transwiki image to Edit-copy.svg since I think that one works for all those cases.)
No edit summary
 
(66 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<table class="ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
| serious  = ambox-serious
  {{Bmbox/core
| content  = ambox-content
  | small      = left
| style    = ambox-style
  | type      = {{{type|}}}
| merge    = ambox-merge
   | image      = {{#if:{{{smallimage|}}}
| notice   = ambox-notice
                | {{{smallimage}}}
| #default = ambox-notice
                | {{{image|}}}
}}"><tr>
                }}
{{#ifeq:{{{image}}}|none|
  | imageright = {{#if:{{{smallimageright|}}}
<!-- image=none -->
                | {{{smallimageright}}}
|<!-- else -->
                | {{{imageright|}}}
<td class="ambox-image"><!--
                }}
-->{{#ifeq:{{{image}}}|blank|
  | style      = {{{style|}}}
<!-- image=blank -->
  | textstyle = {{{textstyle|}}}
|<!-- image != blank -->
  | text      = {{#if:{{{smalltext|}}}
{{#if:{{{image|}}}|
                | {{{smalltext}}}
{{{image}}}
                | {{{text}}}  
|<!-- No image param -->
                }}
{{#switch:{{{type|}}}
  }}
| serious  = [[Image:Stop hand nuvola.svg|40px]]
| #default =  
| content = [[Image:Emblem-important.svg|40px]]
  {{Bmbox/core
| style    = [[Image:Broom icon.svg|40px]]
  | type      = {{{type|}}}
| merge    = [[Image:Edit-copy.svg|40px]]
  | image     = {{{image|}}}
| notice  = [[Image:Info non-talk.png|40px]]
  | imageright = {{{imageright|}}}
| #default = [[Image:Info non-talk.png|40px]]
  | style      = {{{style|}}}
}}<!-- End #switch type -->
  | textstyle  = {{{textstyle|}}}
}}<!-- End if image -->
  | text      = {{{text}}}
}}<!-- End ifeq image==blank -->
  }}
</td>
}}<!--{{Ambox}} end-->
}}<!-- End ifeq image==none -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<td>{{{text}}}</td>
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
{{#if:{{{imageright|}}}|
<td class="ambox-imageright">{{{imageright}}}</td>
}}
</tr></table><noinclude>
 
 
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 14:31, 9 July 2021