Jump to content

Template:Ambox: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Planned new version from /sandbox. Many new additions and fixes. See discussions at Wikipedia talk:Article message boxes.
wikademia>Eme
m 1 revision
 
(24 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
  | speedy    = ambox-speedy   <!-- Can be used from 19 May 2008 -->
   {{Ambox/core
   | delete                          <!-- delete = serious -->
   | small      = left
   | serious    = ambox-delete     
   | type      = {{{type|}}}
  | content    = ambox-content
   | image     = {{#if:{{{smallimage|}}}
   | style     = ambox-style
                | {{{smallimage}}}
  | move                            <!-- move = merge -->
                | {{{image|}}}
  | merge      = ambox-merge  <!--ambox-move can be used 20 May 2008-->
                }}
   | protection = ambox-protection
   | imageright = {{#if:{{{smallimageright|}}}
  | notice    = ambox-notice
                | {{{smallimageright}}}
  | #default  = ambox-notice
                | {{{imageright|}}}
}}" style="{{{style|}}}">
                }}
<tr>
  | style     = {{{style|}}}
<td class="ambox-image">
  | textstyle  = {{{textstyle|}}}
{{#ifeq:{{{image|}}}|none
   | text       = {{#if:{{{smalltext|}}}
   | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
                | {{{smalltext}}}
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
                | {{{text}}}  
    | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
                }}
    | delete
  }}
    | serious    = [[Image:Ambox deletion.png|40x40px]]
| #default =  
    | content    = [[Image:Ambox content.png|40x40px]]
  {{Ambox/core
    | style     = [[Image:Ambox style.png|40x40px]]
  | type      = {{{type|}}}
    | move
  | image     = {{{image|}}}
    | merge      = [[Image:Ambox move.png|40x40px]]
  | imageright = {{{imageright|}}}
    | protection = [[Image:Ambox protection.png|40x40px]]
  | style      = {{{style|}}}
    | notice    = [[Image:Ambox notice.png|40x40px]]
  | textstyle  = {{{textstyle|}}}
    | blank      = &nbsp;
  | text      = {{{text}}}
    | #default  = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
   }}
   }}</div>
}}<!--
}}</td>
 
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
{{#if:{{{imageright|}}}
 
  | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
--><!--{{Ambox}} end--><noinclude>
}}
</tr>
</table><noinclude>


{{pp-template|small=yes}}
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 21:29, 18 December 2010

[create] Template documentation