Jump to content

Template:Ambox: Difference between revisions

From Elite Dangerous Wiki
Use Wikipedia message boxes while retaining Fandom parameter compatibility; attribution https://en.wikipedia.org/wiki/Template:Ambox?action=history
Correct compatibility wrapper for Wikipedia and Fandom notices
 
Line 1: Line 1:
{{#if:{{{border|}}}|1|{{#if:{{{text|}}}||{{#if:{{{info|}}}|{{#switch:{{{type|}}}|speedy|delete|content|style|move|protection|notice=|#default=1}}}}}}}}
{{#if:{{{border|}}}
|{{#invoke:Message box|ambox|type={{#switch:{{{border|}}}|red=delete|orange=content|yellow=style|#default=notice}}|text={{{type|}}}{{#if:{{{info|}}}|<br />{{{info|}}}}}|small={{{small|}}}}}
|{{#invoke:Message box|ambox|type={{#switch:{{{border|}}}|red=delete|orange=content|yellow=style|#default=notice}}|text={{{type|}}}{{#if:{{{info|}}}|<br />{{{info|}}}}}|small={{{small|}}}}}
|{{#invoke:Message box|ambox}}}}<noinclude>
|{{#if:{{{text|}}}
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].
  |{{#invoke:Message box|ambox}}
  |{{#if:{{{info|}}}
    |{{#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|}}}}}}}
    |{{#invoke:Message box|ambox}}
  }}
}}
}}<noinclude>
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].
</noinclude>
</noinclude>

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.