Template:Craft type: Difference between revisions
Jump to navigation
Jump to search
(Fix for the default value and the use of the 'pre' parameter, when nothing is supplied.) |
(The link text is now singular.) |
||
Line 5: | Line 5: | ||
| aerostat = {{{pre|}}}[[:Category:Aerostat |Aerostat]] [[Category:Aerostat]] | | aerostat = {{{pre|}}}[[:Category:Aerostat |Aerostat]] [[Category:Aerostat]] | ||
| agricultural aircraft = {{{pre|}}}[[:Category:Agricultural aircraft |Agricultural aircraft]] [[Category:Agricultural aircraft]] | | agricultural aircraft = {{{pre|}}}[[:Category:Agricultural aircraft |Agricultural aircraft]] [[Category:Agricultural aircraft]] | ||
| airliner = {{{pre|}}}[[:Category:Airliners | | | airliner = {{{pre|}}}[[:Category:Airliners |Airliner]] [[Category:Airliners]] | ||
| airship = {{{pre|}}}[[:Category:Airships | | | airship = {{{pre|}}}[[:Category:Airships |Airship]] [[Category:Airships]] | ||
| amphibious helicopter = {{{pre|}}}[[:Category:Amphibious helicopters |Amphibious | | amphibious helicopter = {{{pre|}}}[[:Category:Amphibious helicopters |Amphibious helicopter]] [[Category:Amphibious helicopters]] | ||
| attack aircraft = {{{pre|}}}[[:Category:Attack aircraft |Attack aircraft]] [[Category:Attack aircraft]] | | attack aircraft = {{{pre|}}}[[:Category:Attack aircraft |Attack aircraft]] [[Category:Attack aircraft]] | ||
| autogyro = {{{pre|}}}[[:Category:Autogyros | | | autogyro = {{{pre|}}}[[:Category:Autogyros |Autogyro]] [[Category:Autogyros]] | ||
| balloon = {{{pre|}}}[[:Category:Balloons | | | balloon = {{{pre|}}}[[:Category:Balloons |Balloon]] [[Category:Balloons]] | ||
| bomber aircraft = {{{pre|}}}[[:Category:Bomber aircraft |Bomber aircraft]] [[Category:Bomber aircraft]] | | bomber aircraft = {{{pre|}}}[[:Category:Bomber aircraft |Bomber aircraft]] [[Category:Bomber aircraft]] | ||
| business aircraft = {{{pre|}}}[[:Category:Business aircraft |Business aircraft]] [[Category:Business aircraft]] | | business aircraft = {{{pre|}}}[[:Category:Business aircraft |Business aircraft]] [[Category:Business aircraft]] | ||
Line 23: | Line 23: | ||
| fighter aircraft = {{{pre|}}}[[:Category:Fighter aircraft |Fighter aircraft]] [[Category:Fighter aircraft]] | | fighter aircraft = {{{pre|}}}[[:Category:Fighter aircraft |Fighter aircraft]] [[Category:Fighter aircraft]] | ||
| glider aircraft = {{{pre|}}}[[:Category:Glider aircraft |Glider aircraft]] [[Category:Glider aircraft]] | | glider aircraft = {{{pre|}}}[[:Category:Glider aircraft |Glider aircraft]] [[Category:Glider aircraft]] | ||
| glider tug = {{{pre|}}}[[:Category:Glider tugs |Glider | | glider tug = {{{pre|}}}[[:Category:Glider tugs |Glider tug]] [[Category:Glider tugs]] | ||
| hang glider = {{{pre|}}}[[:Category:Hang gliders |Hang | | hang glider = {{{pre|}}}[[:Category:Hang gliders |Hang glider]] [[Category:Hang gliders]] | ||
| helicopter = {{{pre|}}}[[:Category:Helicopters | | | helicopter = {{{pre|}}}[[:Category:Helicopters |Helicopter]] [[Category:Helicopters]] | ||
| historical aircraft = {{{pre|}}}[[:Category:Historical aircraft |Historical aircraft]] [[Category:Historical aircraft]] | | historical aircraft = {{{pre|}}}[[:Category:Historical aircraft |Historical aircraft]] [[Category:Historical aircraft]] | ||
| hypersonic aircraft = {{{pre|}}}[[:Category:Hypersonic aircraft |Hypersonic aircraft]] [[Category:Hypersonic aircraft]] | | hypersonic aircraft = {{{pre|}}}[[:Category:Hypersonic aircraft |Hypersonic aircraft]] [[Category:Hypersonic aircraft]] | ||
Line 31: | Line 31: | ||
| light-sport aircraft = {{{pre|}}}[[:Category:Light-sport aircraft |Light-sport aircraft]] [[Category:Light-sport aircraft]] | | light-sport aircraft = {{{pre|}}}[[:Category:Light-sport aircraft |Light-sport aircraft]] [[Category:Light-sport aircraft]] | ||
| military aircraft = {{{pre|}}}[[:Category:Military aircraft |Military aircraft]] [[Category:Military aircraft]] | | military aircraft = {{{pre|}}}[[:Category:Military aircraft |Military aircraft]] [[Category:Military aircraft]] | ||
| military airship = {{{pre|}}}[[:Category:Military airships |Military | | military airship = {{{pre|}}}[[:Category:Military airships |Military airship]] [[Category:Military airships]] | ||
| military helicopter = {{{pre|}}}[[:Category:Military helicopters |Military | | military helicopter = {{{pre|}}}[[:Category:Military helicopters |Military helicopter]] [[Category:Military helicopters]] | ||
| military reconnaissance aircraft = {{{pre|}}}[[:Category:Military reconnaissance aircraft|Military reconnaissance aircraft]] [[Category:Military reconnaissance aircraft]] | | military reconnaissance aircraft = {{{pre|}}}[[:Category:Military reconnaissance aircraft|Military reconnaissance aircraft]] [[Category:Military reconnaissance aircraft]] | ||
| military tanker aircraft = {{{pre|}}}[[:Category:Military tanker aircraft |Military tanker aircraft]] [[Category:Military tanker aircraft]] | | military tanker aircraft = {{{pre|}}}[[:Category:Military tanker aircraft |Military tanker aircraft]] [[Category:Military tanker aircraft]] | ||
Line 38: | Line 38: | ||
| military transport aircraft = {{{pre|}}}[[:Category:Military transport aircraft |Military transport aircraft]] [[Category:Military transport aircraft]] | | military transport aircraft = {{{pre|}}}[[:Category:Military transport aircraft |Military transport aircraft]] [[Category:Military transport aircraft]] | ||
| military utility aircraft = {{{pre|}}}[[:Category:Military utility aircraft |Military utility aircraft]] [[Category:Military utility aircraft]] | | military utility aircraft = {{{pre|}}}[[:Category:Military utility aircraft |Military utility aircraft]] [[Category:Military utility aircraft]] | ||
| ornithopter = {{{pre|}}}[[:Category:Ornithopters | | | ornithopter = {{{pre|}}}[[:Category:Ornithopters |Ornithopter]] [[Category:Ornithopters]] | ||
| parasite aircraft = {{{pre|}}}[[:Category:Parasite aircraft |Parasite aircraft]] [[Category:Parasite aircraft]] | | parasite aircraft = {{{pre|}}}[[:Category:Parasite aircraft |Parasite aircraft]] [[Category:Parasite aircraft]] | ||
| patrol aircraft = {{{pre|}}}[[:Category:Patrol aircraft |Patrol aircraft]] [[Category:Patrol aircraft]] | | patrol aircraft = {{{pre|}}}[[:Category:Patrol aircraft |Patrol aircraft]] [[Category:Patrol aircraft]] | ||
Line 45: | Line 45: | ||
| roadable aircraft = {{{pre|}}}[[:Category:Roadable aircraft |Roadable aircraft]] [[Category:Roadable aircraft]] | | roadable aircraft = {{{pre|}}}[[:Category:Roadable aircraft |Roadable aircraft]] [[Category:Roadable aircraft]] | ||
| rotorcraft = {{{pre|}}}[[:Category:Rotorcraft |Rotorcraft]] [[Category:Rotorcraft]] | | rotorcraft = {{{pre|}}}[[:Category:Rotorcraft |Rotorcraft]] [[Category:Rotorcraft]] | ||
| sailplane = {{{pre|}}}[[:Category:Sailplanes | | | sailplane = {{{pre|}}}[[:Category:Sailplanes |Sailplane]] [[Category:Sailplanes]] | ||
| seaplanes and flying boat = {{{pre|}}}[[:Category:Seaplanes and flying boats | | | seaplanes and flying boat = {{{pre|}}}[[:Category:Seaplanes and flying boats |Seaplane or flying boat]] [[Category:Seaplanes and flying boats]] | ||
| spaceplane = {{{pre|}}}[[:Category:Spaceplanes | | | spaceplane = {{{pre|}}}[[:Category:Spaceplanes |Spaceplane]] [[Category:Spaceplanes]] | ||
| special-purpose aircraft = {{{pre|}}}[[:Category:Special-purpose aircraft |Special-purpose aircraft]] [[Category:Special-purpose aircraft]] | | special-purpose aircraft = {{{pre|}}}[[:Category:Special-purpose aircraft |Special-purpose aircraft]] [[Category:Special-purpose aircraft]] | ||
| sport aircraft = {{{pre|}}}[[:Category:Sport aircraft |Sport aircraft]] [[Category:Sport aircraft]] | | sport aircraft = {{{pre|}}}[[:Category:Sport aircraft |Sport aircraft]] [[Category:Sport aircraft]] | ||
Line 53: | Line 53: | ||
| trainer aircraft = {{{pre|}}}[[:Category:Trainer aircraft |Trainer aircraft]] [[Category:Trainer aircraft]] | | trainer aircraft = {{{pre|}}}[[:Category:Trainer aircraft |Trainer aircraft]] [[Category:Trainer aircraft]] | ||
| ultralight aircraft = {{{pre|}}}[[:Category:Ultralight aircraft |Ultralight aircraft]] [[Category:Ultralight aircraft]] | | ultralight aircraft = {{{pre|}}}[[:Category:Ultralight aircraft |Ultralight aircraft]] [[Category:Ultralight aircraft]] | ||
| ultralight trike = {{{pre|}}}[[:Category:Ultralight trikes |Ultralight | | ultralight trike = {{{pre|}}}[[:Category:Ultralight trikes |Ultralight trike]] [[Category:Ultralight trikes]] | ||
| unmanned aerial vehicle = {{{pre|}}}[[:Category:Unmanned aerial vehicles |Unmanned aerial | | unmanned aerial vehicle = {{{pre|}}}[[:Category:Unmanned aerial vehicles |Unmanned aerial vehicle]] [[Category:Unmanned aerial vehicles]] | ||
| vtol aircraft = {{{pre|}}}[[:Category:VTOL aircraft |VTOL aircraft]] [[Category:VTOL aircraft]] | | vtol aircraft = {{{pre|}}}[[:Category:VTOL aircraft |VTOL aircraft]] [[Category:VTOL aircraft]] | ||
| very light jet = {{{pre|}}}[[:Category:Very light jets |Very light | | very light jet = {{{pre|}}}[[:Category:Very light jets |Very light jet]] [[Category:Very light jets]] | ||
<!-- Spacecraft types --> | <!-- Spacecraft types --> | ||
| rocket = {{{pre|}}}[[:Category:Rockets | | | rocket = {{{pre|}}}[[:Category:Rockets |Rocket]] [[Category:Rockets]] | ||
| spaceplane = {{{pre|}}}[[:Category:Spaceplanes | | | spaceplane = {{{pre|}}}[[:Category:Spaceplanes |Spaceplane]] [[Category:Spaceplanes]] | ||
<!-- Vehicle types --> | <!-- Vehicle types --> | ||
| vehicle = {{{pre|}}}[[:Category:Vehicle |Vehicle]] [[Category:Vehicle]] | | vehicle = {{{pre|}}}[[:Category:Vehicle |Vehicle]] [[Category:Vehicle]] |
Revision as of 15:04, 27 May 2016
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, or seacraft. 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>}}