Template:Ambox/core: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
Jadrian Miles (talk | contribs)
Copied from wikipedia
 
Jadrian Miles (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
| left = mbox-small-left
| left = mbox-small-left
}} {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
| speedy    = ambox-speedy
| warn        = ambox-warn
| delete    = ambox-delete
| question   = ambox-question
| content   = ambox-content
| exclamation = ambox-exclamation
| style      = ambox-style
| info
| move      = ambox-move
| notice    <!-- info = notice = default -->
| protection = ambox-protection
| #default   = ambox-notice
| notice    <!-- notice = default -->
| #default   = ambox-notice
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
<tr>
<tr>
Line 24: Line 22:
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[Image:{{#switch:{{{type|}}}
     | speedy    = Ambox speedy deletion.png
     | warn        = Icon warning.svg
     | delete    = Ambox deletion.png
     | question   = Icon question.svg
    | content   = Ambox content.png
     | exclamation = Icon exclamation.svg
     | style      = Ambox style.png
     | info
     | move      = Ambox move.png
     | notice     <!-- info = notice = default -->
     | protection = Ambox protection.png
     | #default  = Icon info.svg
     | notice          <!-- notice = default -->
     | #default  = Ambox notice.png
     }} | {{#switch:{{{small|}}}  
     }} | {{#switch:{{{small|}}}  
       | left = 20x20px  
       | left = 20x20px  
Line 56: Line 52:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
| speedy
| warn
| delete
| question
| content
| exclamation
| style
| info
| 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 -->
Line 70: Line 64:
}}<noinclude>
}}<noinclude>


{{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 17:40, 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}}.