Template:Ambox/core: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
Jadrian Miles (talk | contribs)
No edit summary
Jadrian Miles (talk | contribs)
No edit summary
Line 2: Line 2:
| left = mbox-small-left
| left = mbox-small-left
}} {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
| speedy    = ambox-speedy
| delete    = ambox-delete
| content    = ambox-content
| style      = ambox-style
| move      = ambox-move
| protection = ambox-protection
| notice    <!-- notice = default -->
| notice    <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
Line 24: Line 18:
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[Image:{{#switch:{{{type|}}}
    | speedy    = Ambox speedy deletion.png
    | delete    = Ambox deletion.png
    | content    = Ambox content.png
    | style      = Ambox style.png
    | move      = Ambox move.png
    | protection = Ambox protection.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Ambox notice.png
     | #default  = Icon info.svg
     }} | {{#switch:{{{small|}}}  
     }} | {{#switch:{{{small|}}}  
       | left = 20x20px  
       | left = 20x20px  
Line 56: Line 44:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| notice    = <!-- Do nothing, valid "type" -->
| 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 -->
| #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 -->

Revision as of 17:30, 16 July 2009

[edit]Documentation

This is the {{ambox/core}} sub-template.

Do not use this template directly, use {{ambox}} instead.

This template is called from {{ambox}}. It holds most of the code for {{ambox}}, while {{ambox}} does parameter preprocessing. Thus simplifying the code in {{ambox/core}}.

For more documentation see {{ambox}}.