Template:AircraftHangar

From FlightGear wiki
Jump to navigation Jump to search

{{AircraftHangar}}: Parameter aircraft is not defined.


The following template description is not displayed when the template is inserted in an article.
Note  This template has been made redundant. Identical results are obtained by using the {{fgaddon aircraft source}} template in the same way that this template is used.

Goal

To provide a Mediawiki link to an aircraft in the FGAddon svn version control repository, via the web interface. This is a is a subtemplate of the master {{repo link}} template, using the intermediate {{fgaddon aircraft source}} template, designed to simplify the interface.

Usage

{{AircraftHangar
| aircraft       =
| text       =
}}

If the text parameter is not supplied, then the link text will be set to the value of the aircraft parameter.

Parameter Description Abbreviated
parameter
Numbered
parameter
Status
aircraft The aircraft directory name in FGAddon. The {{repo link}} path parameter is constructed as trunk/Aircraft/<aircraft>. 1 mandatory
text Text to display as the link label. title 2 optional

Examples

No parameters

This should show an error message.

{{AircraftHangar}}

{{AircraftHangar}}: Parameter aircraft is not defined.

Aircraft

{{AircraftHangar
| aircraft = SpaceShuttle
}}

SpaceShuttle

Text label

{{AircraftHangar
| aircraft = SpaceShuttle
| text     = SpaceShuttle in the FGAddon repository
}}.

The SpaceShuttle in the FGAddon repository.

Or:

{{AircraftHangar
| aircraft = SpaceShuttle
| title    = SpaceShuttle in the FGAddon repository
}}.

The SpaceShuttle in the FGAddon repository.

Positional parameters

{{AircraftHangar
| SpaceShuttle
| SpaceShuttle in the FGAddon repository
}}.

The SpaceShuttle in the FGAddon repository.

Related templates