Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>AzaToth
(testing wikitable code, and changes of logic, do not kill me it if's not working)
No edit summary
 
(54 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{| 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|}}}
   | #default = ambox-notice
                | {{{smallimage}}}
}}"
                | {{{image|}}}
|-
                }}
{{#ifeq:{{{image}}}|none
  | imageright = {{#if:{{{smallimageright|}}}
  | <!-- no image cell -->
                | {{{smallimageright}}}
  | {{!}} class="ambox-image" {{!}} {{#switch:{{{image|{{{type|}}}}}}
                | {{{imageright|}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
                }}
    | content = [[Image:Emblem-important.svg|40px]]
  | style      = {{{style|}}}
    | style    = [[Image:Broom icon.svg|40px]]
  | textstyle = {{{textstyle|}}}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
  | text      = {{#if:{{{smalltext|}}}
    | notice  = [[Image:Info non-talk.png|40px]]
                | {{{smalltext}}}
    | blank    = <!-- empty image cell -->
                | {{{text}}}  
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
                }}
   }}
   }}
}}
| #default =
| {{{text}}}
  {{Bmbox/core
{{#if:{{{imageright|}}}
  | type      = {{{type|}}}
   | {{!}} class="ambox-imageright" {{!}} {{{imageright}}}
  | image      = {{{image|}}}
}}
  | imageright = {{{imageright|}}}
|}<noinclude>
   | style      = {{{style|}}}
{{template doc}}
  | textstyle  = {{{textstyle|}}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
  | text      = {{{text}}}
</noinclude>
  }}
}}<!--{{Ambox}} end-->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:31, 9 July 2021