Messagebox/BI – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Fix icon and style to new standards)
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="toccolours" style="background:{{{bg|#f4e8ff}}};" width=80%
<includeonly>{{Messagebox|{{#if:{{{1|}}}|'''{{Trim|{{{1}}}}}'''<br>}}{{{2|{{{message|-message not defined-}}}}}}|{{Icon|bi_alt|28}}|#6BA539}}</includeonly><noinclude>{{Doc/Template
|'''{{{1}}}'''
|descr= Shows a [[Bohemia Interactive]] message box.
|-
|param1= title
|{{{2}}}
|descr1= (Optional) title to display
|}
|param2= message
 
|descr2= (named) message to display
<noinclude>
|example1= <nowiki>{{Messagebox/BI}}</nowiki>
 
|result1= {{Messagebox/BI}}
[[Category:Templates|tool-disclaimer]]</noinclude>
|example2= <nowiki>{{Messagebox/BI|title}}</nowiki>
|result2= {{Messagebox/BI|title}}
|example3= <nowiki>{{Messagebox/BI|title|message}}</nowiki>
|result3= {{Messagebox/BI|title|message}}
|example4= <nowiki>{{Messagebox/BI||my super message}}</nowiki>
|result4= {{Messagebox/BI||my super message}}
|example5= <nowiki>{{Messagebox/BI|message= my super message}}</nowiki>
|result5= {{Messagebox/BI|message= my super message}}
}}</noinclude>

Revision as of 11:46, 25 August 2022

Shows a Bohemia Interactive message box.

This template is used on these pages.

Usage

{{Messagebox/BI|title|message}}

  • title: (Optional) title to display
  • message: (named) message to display
Examples
Code Result
{{Messagebox/BI}}
bi symbol white.png
-message not defined-
{{Messagebox/BI|title}}
bi symbol white.png
title
-message not defined-
{{Messagebox/BI|title|message}}
bi symbol white.png
title
message
{{Messagebox/BI||my super message}}
bi symbol white.png
my super message
{{Messagebox/BI|message= my super message}}
bi symbol white.png
my super message