Difference between revisions of "Template:Ambox/core"
m (Protected "Template:Ambox/core": High-impact page ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
|||
| Line 10: | Line 10: | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = ambox-notice | | #default = ambox-notice | ||
| − | }}" style="{{{style|}}}"> | + | }} {{{class|}}}" style="{{{style|}}}"> |
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
| Line 24: | Line 24: | ||
| {{{image}}} | | {{{image}}} | ||
| [[File:{{#switch:{{{type|}}} | | [[File:{{#switch:{{{type|}}} | ||
| − | | speedy = Ambox | + | | speedy = Ambox speedy deletion.png |
| − | | delete = Ambox | + | | delete = Ambox deletion.png |
| − | | content = | + | | content = Ambox content.png |
| style = Edit-clear.svg | | style = Edit-clear.svg | ||
| − | | move = | + | | move = Ambox move.png |
| − | | protection = | + | | protection = Ambox protection.png |
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| − | | #default = | + | | #default = Ambox notice.png |
}} | {{#switch:{{{small|}}} | }} | {{#switch:{{{small|}}} | ||
| left = 20x20px | | left = 20x20px | ||
| Line 41: | Line 41: | ||
}}</td> | }}</td> | ||
}} | }} | ||
| − | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} {{#if:{{{date|}}} |
| + | |<small>''({{{date}}})''</small> | ||
| + | }}</td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| Line 63: | Line 65: | ||
| protection | | 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> | + | | #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> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Revision as of 14:38, 20 August 2011
|
|
{{{text}}} |
| This template is used on 700,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in the template's /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added in one single edit to the template. Please consider discussing any changes on Wikipedia talk:Article message boxes before implementing them. |
This is the {{ambox/core}} sub-template.
Do not use this template directly, use {{ambox}} instead.
This template is called from {{ambox}}. It holds almost all of the code for {{ambox}}, while {{ambox}} does parameter preprocessing. Thus simplifying the code in {{ambox/core}}.
For more documentation see {{ambox}}.ja:Template:Ambox/core sc:Template:Ambox/core sl:Predloga:Polje za članke/core zh:模板:Ambox/core
| The above documentation is transcluded from Template:Ambox/core/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |