Template:Ambox: Difference between revisions

Content deleted Content added
Correct compatibility wrapper for Wikipedia and Fandom notices
Prevent duplicate Fandom-compatible message box information
 
Line 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|}}}|info=}}
|{{#if:{{{text|}}}
|{{#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|}}}|info=}}}}
|{{#invoke:Message box|ambox}}
}}