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 5: Line 5:
| question    = ambox-question
| question    = ambox-question
| exclamation = ambox-exclamation
| exclamation = ambox-exclamation
| info    <!-- info = default -->
| info
| notice     <!-- info = notice = default -->
| #default    = ambox-notice
| #default    = ambox-notice
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
Line 24: Line 25:
     | question    = Icon question.svg
     | question    = Icon question.svg
     | exclamation = Icon exclamation.svg
     | exclamation = Icon exclamation.svg
     | info    <!-- info = default -->
     | info
    | notice     <!-- info = notice = default -->
     | #default  = Icon info.svg
     | #default  = Icon info.svg
     }} | {{#switch:{{{small|}}}  
     }} | {{#switch:{{{small|}}}  
Line 50: Line 52:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
| warn
| question
| exclamation
| info
| 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 -->

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}}.