Template:Canvas snippet/ifparam

From FlightGear wiki
Jump to navigation Jump to search

/ifparam parameters:


Shown text:


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


This template is used by {{canvas snippet}} to show different texts depending on if one of its parameters is defined or not.

Note The frame around the sample above will not be visible when used with {{canvas snippet}}.


{{canvas snippet/ifparam
  | param = 
  | ifdef = 
  | else  = 

The only mandatory parameter is param.

Name of the parameter in {{Canvas snippet}}.
Wiki text to use if the parameter is defined.
Wiki text to use if the parameter is not defined.

Technical details

The template adds a new row with one cell spanning two columns to a table. Each cell is used for formatting one of the parameters in {{canvas snippet}} that documents a canvas snippet.