Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Copied and modified the code from Wikipedia:Template standardisation/issuebox.)
 
No edit summary
 
(68 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:Merge-arrows.svg]]
  | 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>
 
 
=== The article message box meta template ===
 
This page is the meta template "ambox" that uses CSS classes for pretty much all its looks and that uses default images and has some other nifty features.
 
For usage demonstration, parameter explanations, the CSS code you need and more, see [[Wikipedia:Template standardisation/issuebox demo]].
 
--[[User:Davidgothberg|David&nbsp;Göthberg]]&nbsp;<small>([[User talk:Davidgothberg|talk]])</small> 10:02, 9 September 2007 (UTC)
 
</noinclude>

Latest revision as of 14:31, 9 July 2021