Template:Ambox: Difference between revisions
From Begonia Wiki
(Created page with ".ambox { margin: 0 10%; border: 1px solid #aaa; background-color: #f9f9f9; color: #000; padding: 2px 5px; } .ambox-style { border-left: 10px solid #1e90ff; →Blue left border for style issues: } .ambox-text { font-size: 0.875em; →Smaller text for message: } .ambox-image { width: 50px; →Width for the left side image: height: auto; →Auto height to maintain aspect ratio: vertical-align: middle; →Align image vertically in the middle: ...") |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="ambox {{#switch:{{{type|}}} | |||
| speedy = ambox-speedy | |||
| delete = ambox-delete | |||
| content = ambox-content | |||
| style = ambox-style | |||
| notice = ambox-notice | |||
| move = ambox-move | |||
| protection = ambox-protection | |||
| #default = ambox-notice | |||
}}" role="presentation"> | |||
<!-- Image left --> | |||
<div class="ambox-image"> | |||
{{#if: {{{image|}}} | [[File:{{{image}}}|40px]] | [[File:Ambox_important.svg|40px]] }} | |||
</div> | |||
} | <!-- Text --> | ||
<div class="ambox-text"> | |||
{{{text|Some text here.}}} | |||
</div> | |||
</div> | |||
} | |||
/ |
Latest revision as of 10:55, 7 November 2023
{{#if: | [[File:{{{image}}}|40px]] | File:Ambox important.svg }}
Some text here.