Template:Ambox: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(Created page with "<table class="plainlinks ambox {{#ifeq:{{{type|}}}|delete|ambox-delete|}} {{{class|}}}" style="{{{style|}}}"><tr> {{#if:{{{image|}}} |<!-- Image cell --><td class="ambo...")
 
(adding custom color to override the standard ambox colors (for difficulty template))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table class="plainlinks ambox {{#ifeq:{{{type|}}}|delete|ambox-delete|}} {{{class|}}}" style="{{{style|}}}"><tr>
{| table class="plainlinks ambox"
  {{#if:{{{image|}}}
| class="{{#switch:{{{type}}}
    |<!-- Image cell --><td class="ambox-image {{#ifeq:{{{type|}}}|notice|ambox-notice|ambox-{{{type|}}}}}">[[File:{{{image}}}{{!}}{{{imagewidth|56px}}}{{!}}{{{imagealt|}}}]]</td>
| notice = notice
    |<!-- Blank cell if no image specified --><td class="ambox-empty-cell {{#ifeq:{{{type|}}}|notice|ambox-notice|ambox-{{{type|}}}}}"></td>
| style = style
  }}<td class="ambox-text">{{{contents}}}</td>
| content = content
  {{#if:{{{image2|}}}
| delete = delete
    | <td class="ambox-image2">[[File:{{{image2}}}{{!}}{{{image2width|56px}}}{{!}}{{{image2alt|}}}]]</td>
| default
  }}
}} {{#if:{{{image|}}}|image|}}" style="{{#if:{{{color|}}}|border-left:10px solid {{{color|}}} !important|}}" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{!}}56px]]|}}
</tr></table><noinclude>
| class="message" | '''{{{header}}}'''<br><span class="smalltext">{{{smalltext|}}}</span>
{{Template doc}}
|}<noinclude>
[[Category:Maintenance templates|Ambox]]
[[Category:Maintenance templates|Ambox]]
[[Category:Subtemplates]]
</noinclude>
</noinclude>

Latest revision as of 12:15, 27 September 2021