User:Johan G/Messagebox/format

From FlightGear wiki
Jump to navigation Jump to search


The following template description is not displayed when the template is inserted in an article.

Goal

This template is used by User:Johan G/Messagebox and its sub templates. It can show different strings depending on the input value

Usage

{{messagebox/format
| format  = 
| top     = 
| box     = 
| section = 
| empty   = 
| invalid = 
}}

All parameters are optional. They all default to an empty string.

format
Box format. Valid values are top, box and section. So far this parameter is called box elsewhere.
top
String to use if box format is top.
box
String to use if box format is box.
section
String to use if box format is section.
empty
String to use if format is empty or undefined.
invalid
String to use if format is not empty and is neither of top, box or section.

Examples

{{messagebox/format
| format  = {{{box|}}}  <!-- Using the parameter that is for now called box -->
| top     = 
| box     = 
| section = 
| empty   = 
| invalid = 
}}

Related templates