SQwatermark(讨论 | 贡献) 小 (更新至英文wiki的进度) |
Magiczocker(讨论 | 贡献) 小 |
||
第1行: | 第1行: | ||
+ | <div class="{{#ifeq:{{{format|}}}|tiny|ambox-tiny|ambox}} {{#switch:{{{border|}}} |
||
− | <includeonly>{{#vardefine: color |
||
+ | | notice = ambox-blue |
||
⚫ | |||
− | | |
+ | | style | stub = ambox-yellow |
− | | |
+ | | technical | move = ambox-purple |
+ | | issue | mild issue | minor issue | content issue | content = ambox-orange |
||
− | | technical | move = purple |
||
− | | |
+ | | serious issue | major issue | deletion | warning = ambox-red |
⚫ | |||
− | | serious issue | major issue | deletion | warning = red |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | }}<div |
||
+ | | |
||
− | style="{{#if: {{{inline|}}} | display: inline-flex; width: auto; | display: flex; }}{{{style|}}}" |
||
− | + | | <span class="ambox-info">{{{info}}}</span> |
|
⚫ | |||
− | > {{#ifeq: {{{image|}}} | none || |
||
⚫ | |||
⚫ | |||
− | }} |
||
⚫ | |||
− | #if: {{{info| {{{text|}}} }}} | |
||
− | <div class="amsmalltext"> |
||
− | {{{info|{{{text}}} }}} |
||
− | </div> |
||
− | }} |
||
− | </div> |
||
⚫ |
2021年10月2日 (六) 06:38的版本
The template is a generic notice template.
- Parameters
{{{image}}}
: image file name for use on the left, e.g. "Stub.png"{{{title}}}
: top line text{{{text}}}
: list of extra info{{{type}}}
: border colour- deletion: red
- stub: yellow
- default: green
- technical: purple
- notice: blue
- issue: orange
- other: gray
{{{inline}}}
: display the ambox left aligned and small{{{style}}}
extra style parameters
- Examples
{{Ambox|title=Title|text=Text}}
: {{Ambox|type=issue|title=Title|text=Text}}
: {{Ambox|title=I am inline|image=Icon-template.png|inline=true}}
:Icon-template.png{{{type}}}