Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Happy-melon
(remove category sortkey which is now the default after bugzilla:16552)
en.wikibooks>Adrignola
m (+category)
Line 1: Line 1:
{{#switch:{{{small|}}}
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
| left =  
  | serious  = ambox-serious
   {{ambox/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>
   | imageright = {{#if:{{{smallimageright|}}}
<td class="ambox-image">
                | {{{smallimageright}}}
{{#ifeq:{{{image}}}|none
                | {{{imageright|}}}
  | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
                }}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
  | style      = {{{style|}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
  | textstyle = {{{textstyle|}}}
    | content = [[Image:Emblem-important.svg|40px]]
  | text      = {{#if:{{{smalltext|}}}
    | style    = [[Image:Broom icon.svg|40px]]
                | {{{smalltext}}}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
                | {{{text}}}
    | notice   = [[Image:Info non-talk.png|40px]]
                }}
    | blank    = [[Image:No image.svg]]
   }}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
| #default =  
   }}</div>
  {{ambox/core
}}</td>
  | type      = {{{type|}}}
<td class="ambox-text">{{{text}}}</td>
   | image      = {{{image|}}}
{{#if:{{{imageright|}}}|
  | imageright = {{{imageright|}}}
   <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
  | style      = {{{style|}}}
}}
  | textstyle  = {{{textstyle|}}}
</tr>
  | text      = {{{text}}}
</table>
   }}
<noinclude>
}}<!--
[[Category:Infobox templates|{{PAGENAME}}]]
 
[[mk:Шаблон:Ambox]]
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
--><noinclude>
 
{{pp-template}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 03:32, 28 August 2009