Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>MZMcBride
(converted to wikisyntax; optimized code)
No edit summary
 
(63 intermediate revisions by 26 users not shown)
Line 1: Line 1:
{| class="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|}}}
|#default=ambox-notice
                | {{{smallimage}}}
}}"
                | {{{image|}}}
{{#ifeq:{{{image}}}|none|<!-- image=none -->|<!-- else -->
                }}
{{!}} class="ambox-image" {{!}} <!--
  | imageright = {{#if:{{{smallimageright|}}}
-->{{#ifeq:{{{image}}}|blank|
                | {{{smallimageright}}}
<!-- image=blank -->
                | {{{imageright|}}}
|<!-- image != blank -->
                }}
{{#if:{{{image|}}}|{{{image}}}|<!-- No image param -->
  | style      = {{{style|}}}
{{#switch:{{{type|}}}
   | textstyle = {{{textstyle|}}}
|serious =[[Image:Stop hand nuvola.svg|40px]]
  | text      = {{#if:{{{smalltext|}}}
|content =[[Image:Emblem-important.svg|40px]]
                | {{{smalltext}}}  
|style   =[[Image:Broom icon.svg|40px]]
                | {{{text}}}  
|merge   =[[Image:Merge-split-transwiki default.svg]]
                }}
|notice =[[Image:Info non-talk.png|40px]]
  }}
|#default=[[Image:Info non-talk.png|40px]]
| #default =  
}}<!-- End #switch type -->
  {{Bmbox/core
}}<!-- End if image -->
  | type      = {{{type|}}}
}}<!-- End ifeq image==blank -->
  | image      = {{{image|}}}
}}<!-- End ifeq image==none -->
  | imageright = {{{imageright|}}}
{{!}} {{{text}}}
  | style      = {{{style|}}}
{{#if:{{{imageright|}}}|
  | textstyle  = {{{textstyle|}}}
{{!}} class="ambox-imageright">{{{imageright}}}
  | text      = {{{text}}}
}}
  }}
|}<noinclude>
}}<!--{{Ambox}} end-->
{{template doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</noinclude>

Latest revision as of 14:31, 9 July 2021