Template:Ambox: Difference between revisions

m Removed test
Use Wikipedia message boxes while retaining Fandom parameter compatibility; attribution https://en.wikipedia.org/wiki/Template:Ambox?action=history
Line 1: Line 1:
<onlyinclude><table style="{{{style|}}}" class="darklinks ambox {{#if: {{{small|}}}|ambox-small}} {{#switch:{{{border|}}}
{{#if:{{{border|}}}|1|{{#if:{{{text|}}}||{{#if:{{{info|}}}|{{#switch:{{{type|}}}|speedy|delete|content|style|move|protection|notice=|#default=1}}}}}}}}
  | orange      = ambox-orange
|{{#invoke:Message box|ambox|type={{#switch:{{{border|}}}|red=delete|orange=content|yellow=style|#default=notice}}|text={{{type|}}}{{#if:{{{info|}}}|<br />{{{info|}}}}}|small={{{small|}}}}}
  | yellow      = ambox-yellow
|{{#invoke:Message box|ambox}}}}<noinclude>
  | purple      = ambox-purple
This template uses Wikipedia's article message box. It also accepts the former Fandom <code>border</code>, <code>type</code> and <code>info</code> parameters for compatibility with imported articles. Wikipedia source and contributor history: [https://en.wikipedia.org/wiki/Template:Ambox?action=history Template:Ambox].
  | blue        = ambox-blue
</noinclude>
  | green      = ambox-green
  | grey
  | gray        = ambox-gray
  | red
  | #default   = ambox-red
}}">
<tr>
{{#if: {{{small|}}}|{{#if: {{{image|}}}|<td class="ambox-image">{{{image|}}}</td>}}|<td class="ambox-image">{{{image|[[File:InterdictMsgAlert.jpg|x80px]]}}}</td>}}
<td style="color: black; padding: 0.25em 0.5em;">{{{type|}}}
<div class="ambox-smalltext">
{{{info|}}}
</div></td></tr></table><br></onlyinclude>
{{documentation}}