Jump to content

Template:Ambox: Difference between revisions

From Elite Dangerous Wiki
Created page with "<onlyinclude><table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{border|}}} | red = ambox-red | orange = ambox-orange | yellow = ambox-yel..."
 
Correct compatibility wrapper for Wikipedia and Fandom notices
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude><table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{border|}}}
{{#if:{{{border|}}}
  | red         = ambox-red
|{{#invoke:Message box|ambox|type={{#switch:{{{border|}}}|red=delete|orange=content|yellow=style|#default=notice}}|text={{{type|}}}{{#if:{{{info|}}}|<br />{{{info|}}}}}|small={{{small|}}}}}
  | orange     = ambox-orange
|{{#if:{{{text|}}}
  | yellow     = ambox-yellow
   |{{#invoke:Message box|ambox}}
  | purple      = ambox-purple
  |{{#if:{{{info|}}}
  | blue        = ambox-blue
    |{{#switch:{{{type|}}}|speedy|delete|content|style|move|protection|notice={{#invoke:Message box|ambox}}|#default={{#invoke:Message box|ambox|type=notice|text={{{type|}}}<br />{{{info|}}}|small={{{small|}}}}}}}
  | green      = ambox-green
    |{{#invoke:Message box|ambox}}
  | gray        = ambox-gray
  }}
   | #default    = ambox-green
}}
}}">
}}<noinclude>
<tr>
This template uses Wikipedia's article message box and 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].
<td class="ambox-image">{{{image|[[File:Placeholder.png|50px]]}}}</td>
</noinclude>
<td style="color: black; padding: 0.25em 0.5em;">{{{type|}}}
<div class="ambox-smalltext">
{{{info|}}}
</div></td></tr></table></onlyinclude>
{{documentation}}

Latest revision as of 03:20, 28 October 2026

This template uses Wikipedia's article message box and accepts the former Fandom border, type and info parameters for compatibility with imported articles. Wikipedia source and contributor history: Template:Ambox.