Angrydog001(讨论 | 贡献) 小 (// Edit via Wikiplus) |
SQwatermark(讨论 | 贡献) 小 (更新至英文wiki的进度) |
||
第1行: | 第1行: | ||
− | {{#vardefine: |
+ | <includeonly>{{#vardefine: color |
| {{#switch: {{{type|}}} |
| {{#switch: {{{type|}}} |
||
⚫ | |||
− | | notice | stub | issue | mild issue | mild-issue | issue-mild | serious issue | serious-issue | issue-serious | technical | default = color |
||
− | | = |
+ | | style | stub = yellow |
− | | |
+ | | technical | move = purple |
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
+ | }}<div |
||
− | }}{{#vardefine: color |
||
+ | style="{{#if: {{{inline|}}} | display: inline-flex; width: auto; | display: flex; }}{{{style|}}}" |
||
− | | {{#switch: {{{type|}}} |
||
+ | class="plainlinks ambox ambox-{{#var:color}} {{{class|}}}" |
||
⚫ | |||
⚫ | |||
− | | stub = yellow |
||
+ | <div class="nomobile ambox-image">[[File:{{{image|Information.svg}}}|{{{size| {{#if:{{{inline|}}}|24px|48px}} }}}|alt=]]</div> |
||
− | | technical = purple |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
− | }}<includeonly><table style="{{{style|}}}" class="nomobile plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} ambox-{{ |
||
− | #if: {{{border|{{{color|}}}}}} | {{{border|{{{color}}}}}} | {{#var:color}} |
||
− | }} {{{class|}}}"> |
||
− | <tr> |
||
− | <td class="ambox-image">{{{image|[[File:{{{icon|{{{img|Information.png}}} }}}|{{ |
||
⚫ | |||
− | #if: {{{size|}}} | {{{size}}} | 48px |
||
− | }} }}|alt=]]}}} |
||
− | </td> |
||
⚫ | |||
− | #ifeq: {{#var:type}} | text | {{{type}}} | {{{title|}}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | {{{info|{{{text|}}}}}} |
||
⚫ | |||
− | </td> |
||
− | </tr> |
||
− | </table> |
||
− | <div class="mobileonly plainlinks" style="text-align: center"> |
||
− | {{#ifeq: {{#var:type}} | text | '''{{{type}}}''' | {{#if: {{{title|}}} | <strong>{{{title|}}}</strong> }} }}<br> |
||
⚫ | |||
− | <hr/> |
||
</div> |
</div> |
||
− | </includeonly><noinclude> |
+ | </div></includeonly><noinclude>{{doc}}</noinclude> |
− | {{doc}} |
||
− | [[Category:通知模板]] |
||
− | </noinclude><noinclude> |
||
− | |||
− | </noinclude> |
2020年10月1日 (四) 14:48的版本
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}}
: