Template:Ambox/core: Difference between revisions

From Cibernética Americana
Jump to navigationJump to search
(Created page with '<!--{{Ambox}} begin-->{{#switch:{{{small|}}} | left = {{Ambox/core | small = left | type = {{{type|}}} | image = {{#if:{{{smallimage|}}} ...')
 
No edit summary
 
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
| left =  
| left = mbox-small-left
  {{Ambox/core
}} {{#switch:{{{type|}}}
  | small     = left
| speedy    = ambox-speedy
  | type      = {{{type|}}}
| delete    = ambox-delete
  | image      = {{#if:{{{smallimage|}}}
| content    = ambox-content
                | {{{smallimage}}}
| style      = ambox-style
                | {{{image|}}}
| move      = ambox-move
                }}
| protection = ambox-protection
  | imageright = {{#if:{{{smallimageright|}}}
| notice    <!-- notice = default -->
                | {{{smallimageright}}}
| #default  = ambox-notice
                | {{{imageright|}}}
}}" style="{{{style|}}}">
                }}
<tr>
  | style     = {{{style|}}}
{{#switch:{{{image|}}}
  | textstyle  = {{{textstyle|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
   | text      = {{#if:{{{smalltext|}}}
| none = <td class="mbox-empty-cell"></td>   <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
                | {{{smalltext}}}
| #default =
                | {{{text}}}
  <td class="mbox-image">{{
                }}
  #switch:{{{small|}}}
  | left = <!-- Don't use the DIV -->
  | #default = <div style="width: 52px;">
   }}
   }}
| #default =
  {{#if:{{{image|}}}
   {{Ambox/core
   | {{{image}}}
   | type      = {{{type|}}}
   | [[File:{{#switch:{{{type|}}}
  | image      = {{{image|}}}
    | speedy    = Ambox speedy deletion.png
   | imageright = {{{imageright|}}}
    | delete    = Ambox deletion.png
   | style      = {{{style|}}}
    | content    = Ambox content.png
  | textstyle  = {{{textstyle|}}}
    | style      = Edit-clear.svg
  | text      = {{{text}}}
    | move       = Ambox move.png
    | protection = Ambox protection.png
    | notice          <!-- notice = default -->
    | #default  = Ambox notice.png
    }} | {{#switch:{{{small|}}}  
      | left = 20x20px
      | #default = 40x40px
      }} |link=|alt=]]
  }}{{#switch:{{{small|}}}
   | left = <!-- Don't use the /DIV -->
  | #default = </div>
  }}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
    | left = {{{imageright}}}
    | #default = <div style="width: 52px;"> {{{imageright}}} </div>
    }}</td>
   }}
   }}
}}<!--
}}
 
</tr>
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
</table><!--  
 
Detect and report usage with faulty "type" parameter:
--><!--{{Ambox}} end--><noinclude>
-->{{#switch:{{{type|}}}
 
|   <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| notice    = <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--  
Detect and report usage of deprecated "image=blank":
-->{{#switch:{{{image|}}}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
{{pp-template}}
{{pp-template}}
{{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 18:20, 14 January 2010

[create] Template documentation