Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

User:Johan G/Messagebox/format

From FlightGear wiki
Jump to: navigation, 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