Template:Craft type
Jump to navigation
Jump to search
The following template description is not displayed when the template is inserted in an article.
Goal
Convert a craft's type into a link to a category page and append the category to the calling page.
Usage
{{craft type | type | pre = }}
- type
- Type of aircraft, spacecraft, vehicle, seacraft or air traffic control. Although this can be any text, special parameter values, independent of capitalisation, will be associated with a category. This will result in the creation of an internal wiki link to the category as well as appending the category to the article. See the Craft types section below for a table of values.
- pre
- Text to prefix prior to the link text. This is useful for creating lists.
Craft types
The following tables show the special values for the type parameter. To extend these lists, both the {{craft type}} template and {{craft type/doc}} documentation template need to be updated. Translations of the link text are supported.
Aircraft
This is for the Category:Aircraft by type subcategory of Category:Aircraft.
Spacecraft
This is for the Category:Spacecraft by type subcategory of Category:Spacecraft.
Parameter value | Link text | Appended categories |
---|---|---|
Rocket | Rockets | Category:Rockets |
Spaceplane | Spaceplanes | Category:Spaceplanes |
Vehicle
This is for the Category:Vehicle by type subcategory of Category:Vehicles.
Parameter value | Link text | Appended categories |
---|---|---|
Automobile | Automobile | Category:Automobile |
Military vehicle | Military vehicle | Category:Military vehicle |
Motorcycle | Motorcycle | Category:Motorcycle |
Pushback | Pushback | Category:Pushback |
Truck | Truck | Category:Truck |
Utility vehicle | Utility vehicle | Category:Utility vehicles |
Seacraft
This is for the Category:Seacraft by type subcategory of Category:Seacraft.
Parameter value | Link text | Appended categories |
---|---|---|
Aircraft carrier | Aircraft carriers | Category:aircraft carriers |
Air traffic control
This is for the Category:Air Traffic Control by type subcategory of Category:Air Traffic Control.
Parameter value | Link text | Appended categories |
---|---|---|
ATC aircraft | Air traffic control | Category:ATC Aircraft |
Examples
Utility aircraft list
{{craft type|civil utility aircraft}}{{craft type|military utility aircraft|pre=, <nowiki></nowiki>}}