Template:CMF Messagebox

From cluster wiki
Revision as of 14:42, 17 December 2022 by Eric (talk | contribs) (Created page with "<includeonly><div class="biki-messagebox" style="background-color:{{{3|#025D00}}}"><!-- --><div>{{{2|i}}}</div><!-- --><div>{{#if:{{Trim|{{{1|}}}}}|{{Trim|{{{1|}}}}}|-Text not...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Displays a standardised message box. Base of messageboxes, used by many other templates.

Usage

{{Messagebox|message|icon|colour}}

  • message: the message to display
  • icon: (Optional, default "i") symbol to the left, a letter (written in white) or an image (format [[File]])
  • colour: (Optional, default #025D00) box HTML colour, can be one of:
    • HTML colour name - red, darkgrey, etc.
    • HTML colour format - #RGB or #RRGGBB
    • rgb format - rgb(255, 0, 0)
    • rgba format - rgba(255, 0, 0, 0.5)
    • hsl format - hsl(120, 100%, 50%)
    • hsla format - hsla(120, 60%, 70%, 0.3)
Examples
Code Result
{{Messagebox}} Template:Messagebox
{{Messagebox|Hello there!}} Template:Messagebox
{{Messagebox|Hello there!|✔}} Template:Messagebox
{{Messagebox|Hello there!|✔|orange}} Template:Messagebox
{{Messagebox|Hello there!|✔|#CDF}} Template:Messagebox
{{Messagebox|Yep|Unreadable!|#EEE}} Template:Messagebox
{{Messagebox|Arma 3 logo|[[File:Arma 3_logo_black.png|300px|center]]|#888}} Template:Messagebox
{{Messagebox|[[File:Arma 3_logo_black.png|300px|center]]|Arma 3 logo|#333}} Template:Messagebox
{{Messagebox|{{ofp}}<br>{{arma1}}<br>{{arma2}}<br>{{arma3}}|A|#333}} Template:Messagebox
{{Messagebox|{{arma3}}|a<br>b<br>c<br>d|#333}} Template:Messagebox
{{Messagebox|One line text|{{arma3}}|#FDA}} Template:Messagebox
{{Messagebox|{{Wiki|lorem}}|{{arma3}}|#FDA}} Template:Messagebox

Source

<div class="biki-messagebox" style="background-color: {{{3|#025D00}}}><!--
--><div>{{{2|i}}}</div><!--
--><div>{{{1|-Text not defined-}}}</div><!--
--></div>