“模板:Ambox/core”的版本间的差异
< 模板:Ambox
BearKidsTeam(讨论 | 贡献) |
BearKidsTeam(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
| − | <table class="metadata plainlinks ambox | + | <table class="metadata plainlinks ambox {{#switch:{{{small|}}} |
| − | + | | left = mbox-small-left | |
| − | + | }} {{#switch:{{{type|}}} | |
| − | + | | speedy = ambox-speedy | |
| − | + | | delete = ambox-delete | |
| − | + | | content = ambox-content | |
| − | + | | style = ambox-style | |
| − | + | | move = ambox-move | |
| − | + | | protection = ambox-protection | |
| − | + | | notice <!-- notice = default --> | |
| − | + | | #default = ambox-notice | |
| − | + | }} {{#if:{{{section|}}} <!-- 宣告章節用小型格式 --> | |
| − | + | | ambox-section | |
| − | + | }}" style="{{{style|}}}"> | |
| − | + | <tr> | |
| − | + | {{#switch:{{{image|}}} | |
| − | }} | + | | blank <!-- Fall back to "none", since deprecated. --> |
| − | + | | none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> | |
| − | + | | #default = | |
| − | + | <td class="mbox-image">{{ | |
| − | + | #switch:{{{small|}}} | |
| − | + | | left = <!-- Don't use the DIV --> | |
| + | | #default = <div style="width: 52px;"> | ||
}} | }} | ||
| − | + | {{#if:{{{image|}}} | |
| − | + | | {{{image}}} | |
| − | + | | [[File:{{#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 | |
| − | }}</tr></table> | + | | notice <!-- notice = default --> |
| + | | #default = Ambox notice.png | ||
| + | }} | {{#switch:{{{small|}}} | ||
| + | | left = 20x20px | ||
| + | | #default = 40x40px | ||
| + | }}{{#if:{{{section|}}} | ||
| + | |25px | ||
| + | |40px | ||
| + | }} ]] | ||
| + | }}{{#switch:{{{small|}}} | ||
| + | | left = <!-- Don't use the /DIV --> | ||
| + | | #default = </div> | ||
| + | }}</td> | ||
| + | }} | ||
| + | <td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{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> | ||
| + | </table><!-- | ||
| + | Detect and report usage with faulty "type" parameter: | ||
| + | -->{{#switch:{{{type|}}} | ||
| + | | <!-- No type fed, is also valid input --> | ||
| + | | speedy | ||
| + | | delete | ||
| + | | content | ||
| + | | style | ||
| + | | move | ||
| + | | protection | ||
| + | | notice = <!-- Do nothing, valid "type" --> | ||
| + | | #default = [[Category:需要修复的信息框|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
| + | }}<!-- | ||
| + | Detect and report usage of deprecated "image=blank": | ||
| + | -->{{#switch:{{{image|}}} | ||
| + | | blank = [[Category:需要修复的信息框|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
| + | }} | ||
2019年7月8日 (一) 23:44的版本
| {{{text}}} |