Template:Craft type: Difference between revisions
Jump to navigation
Jump to search
(Testing out translations for the link text (for the 'airliner' parameter value).) |
(Converted all link text elements to use {{LangSwitch}} in preparation for full translations of the text.) |
||
Line 1: | Line 1: | ||
{{#switch: {{lc: {{{1|}}}}} | {{#switch: {{lc: {{{1|}}}}} | ||
<!-- Aircraft types --> | <!-- Aircraft types --> | ||
| awacs aircraft | | awacs aircraft = | ||
| aerobatic aircraft | {{{pre|}}}[[:Category:AWACS aircraft|<!-- | ||
| aerostat | -->{{LangSwitch | ||
| agricultural aircraft | | en = AWACS aircraft | ||
}}]] | |||
[[Category:AWACS aircraft]] | |||
| aerobatic aircraft = | |||
{{{pre|}}}[[:Category:Aerobatic aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Aerobatic aircraft | |||
}}]] | |||
[[Category:Aerobatic aircraft]] | |||
| aerostat = | |||
{{{pre|}}}[[:Category:Aerostat|<!-- | |||
-->{{LangSwitch | |||
| en = Aerostat | |||
}}]] | |||
[[Category:Aerostat]] | |||
| agricultural aircraft = {{{pre|}}}[[:Category:Agricultural aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Agricultural aircraft | |||
}}]] | |||
[[Category:Agricultural aircraft]] | |||
| airliner = | | airliner = | ||
{{{pre|}}}[[:Category:Airliners|{{LangSwitch | {{{pre|}}}[[:Category:Airliners|<!-- | ||
-->{{LangSwitch | |||
| de = Verkehrsflugzeug | |||
| en = Airliner | |||
}}]] | |||
[[Category:Airliners]] | [[Category:Airliners]] | ||
| airship | | airship = | ||
| amphibious helicopter | {{{pre|}}}[[:Category:Airships|<!-- | ||
| attack aircraft | -->{{LangSwitch | ||
| autogyro | | en = Airship | ||
| balloon | }}]] | ||
| bomber aircraft | [[Category:Airships]] | ||
| business aircraft | | amphibious helicopter = | ||
| business jet | {{{pre|}}}[[:Category:Amphibious helicopters|<!-- | ||
| cargo aircraft | -->{{LangSwitch | ||
| carrier-based aircraft | | en = Amphibious helicopter | ||
| civil aircraft | }}]] | ||
| civil trainer aircraft | [[Category:Amphibious helicopters]] | ||
| civil utility aircraft | | attack aircraft = | ||
| experimental aircraft | {{{pre|}}}[[:Category:Attack aircraft|<!-- | ||
| fictional aircraft | -->{{LangSwitch | ||
| fighter aircraft | | en = Attack aircraft | ||
| glider aircraft | }}]] | ||
| glider tug | [[Category:Attack aircraft]] | ||
| hang glider | | autogyro = | ||
| helicopter | {{{pre|}}}[[:Category:Autogyros|<!-- | ||
| historical aircraft | -->{{LangSwitch | ||
| hypersonic aircraft | | en = Autogyro | ||
| interceptor aircraft | }}]] | ||
| light-sport aircraft | [[Category:Autogyros]] | ||
| military aircraft | | balloon = | ||
| military airship | {{{pre|}}}[[:Category:Balloons|<!-- | ||
| military helicopter | -->{{LangSwitch | ||
| military reconnaissance aircraft = {{{pre|}}}[[:Category:Military reconnaissance aircraft|Military reconnaissance aircraft]] [[Category:Military reconnaissance aircraft]] | | en = Balloon | ||
| military tanker aircraft | }}]] | ||
| military trainer aircraft | [[Category:Balloons]] | ||
| military transport aircraft | | bomber aircraft = | ||
| military utility aircraft | {{{pre|}}}[[:Category:Bomber aircraft|<!-- | ||
| ornithopter | -->{{LangSwitch | ||
| parasite aircraft | | en = Bomber aircraft | ||
| patrol aircraft | }}]] | ||
| racing aircraft | [[Category:Bomber aircraft]] | ||
| radio-controlled aircraft | | business aircraft = | ||
| roadable aircraft | {{{pre|}}}[[:Category:Business aircraft|<!-- | ||
| rotorcraft | -->{{LangSwitch | ||
| sailplane | | en = Business aircraft | ||
| seaplanes and flying boat | }}]] | ||
| spaceplane | [[Category:Business aircraft]] | ||
| special-purpose aircraft | | business jet = | ||
| sport aircraft | {{{pre|}}}[[:Category:Business jet|<!-- | ||
| tiltrotor aircraft | -->{{LangSwitch | ||
| trainer aircraft | | en = Business jet | ||
| ultralight aircraft | }}]] | ||
| ultralight trike | [[Category:Business jet]] | ||
| unmanned aerial vehicle | | cargo aircraft = | ||
| vtol aircraft | {{{pre|}}}[[:Category:Cargo aircraft|<!-- | ||
| very light jet | -->{{LangSwitch | ||
| en = Cargo aircraft | |||
}}]] | |||
[[Category:Cargo aircraft]] | |||
| carrier-based aircraft = | |||
{{{pre|}}}[[:Category:Carrier-based aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Carrier-based aircraft | |||
}}]] | |||
[[Category:Carrier-based aircraft]] | |||
| civil aircraft = | |||
{{{pre|}}}[[:Category:Civil aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Civil aircraft | |||
}}]] | |||
[[Category:Civil aircraft]] | |||
| civil trainer aircraft = | |||
{{{pre|}}}[[:Category:Civil trainer aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Civil trainer aircraft | |||
}}]] | |||
[[Category:Civil trainer aircraft]] | |||
| civil utility aircraft = | |||
{{{pre|}}}[[:Category:Civil utility aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Civil utility aircraft | |||
}}]] | |||
[[Category:Civil utility aircraft]] | |||
| experimental aircraft = | |||
{{{pre|}}}[[:Category:Experimental aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Experimental aircraft | |||
}}]] | |||
[[Category:Experimental aircraft]] | |||
| fictional aircraft = | |||
{{{pre|}}}[[:Category:Fictional aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Fictional aircraft | |||
}}]] | |||
[[Category:Fictional aircraft]] | |||
| fighter aircraft = | |||
{{{pre|}}}[[:Category:Fighter aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Fighter aircraft | |||
}}]] | |||
[[Category:Fighter aircraft]] | |||
| glider aircraft = | |||
{{{pre|}}}[[:Category:Glider aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Glider aircraft | |||
}}]] | |||
[[Category:Glider aircraft]] | |||
| glider tug = | |||
{{{pre|}}}[[:Category:Glider tugs|<!-- | |||
-->{{LangSwitch | |||
| en = Glider tug | |||
}}]] | |||
[[Category:Glider tugs]] | |||
| hang glider = | |||
{{{pre|}}}[[:Category:Hang gliders|<!-- | |||
-->{{LangSwitch | |||
| en = Hang glider | |||
}}]] | |||
[[Category:Hang gliders]] | |||
| helicopter = | |||
{{{pre|}}}[[:Category:Helicopters|<!-- | |||
-->{{LangSwitch | |||
| en = Helicopter | |||
}}]] | |||
[[Category:Helicopters]] | |||
| historical aircraft = | |||
{{{pre|}}}[[:Category:Historical aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Historical aircraft | |||
}}]] | |||
[[Category:Historical aircraft]] | |||
| hypersonic aircraft = | |||
{{{pre|}}}[[:Category:Hypersonic aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Hypersonic aircraft | |||
}}]] | |||
[[Category:Hypersonic aircraft]] | |||
| interceptor aircraft = | |||
{{{pre|}}}[[:Category:Interceptor aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Interceptor aircraft | |||
}}]] | |||
[[Category:Interceptor aircraft]] | |||
| light-sport aircraft = | |||
{{{pre|}}}[[:Category:Light-sport aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Light-sport aircraft | |||
}}]] | |||
[[Category:Light-sport aircraft]] | |||
| military aircraft = | |||
{{{pre|}}}[[:Category:Military aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Military aircraft | |||
}}]] | |||
[[Category:Military aircraft]] | |||
| military airship = | |||
{{{pre|}}}[[:Category:Military airships|<!-- | |||
-->{{LangSwitch | |||
| en = Military airship | |||
}}]] | |||
[[Category:Military airships]] | |||
| military helicopter = | |||
{{{pre|}}}[[:Category:Military helicopters|<!-- | |||
-->{{LangSwitch | |||
| en = Military helicopter | |||
}}]] | |||
[[Category:Military helicopters]] | |||
| military reconnaissance aircraft = | |||
{{{pre|}}}[[:Category:Military reconnaissance aircraft|Military reconnaissance aircraft]] [[Category:Military reconnaissance aircraft]] | |||
| military tanker aircraft = | |||
{{{pre|}}}[[:Category:Military tanker aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Military tanker aircraft | |||
}}]] | |||
[[Category:Military tanker aircraft]] | |||
| military trainer aircraft = | |||
{{{pre|}}}[[:Category:Military trainer aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Military trainer aircraft | |||
}}]] | |||
[[Category:Military trainer aircraft]] | |||
| military transport aircraft = | |||
{{{pre|}}}[[:Category:Military transport aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Military transport aircraft | |||
}}]] | |||
[[Category:Military transport aircraft]] | |||
| military utility aircraft = | |||
{{{pre|}}}[[:Category:Military utility aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Military utility aircraft | |||
}}]] | |||
[[Category:Military utility aircraft]] | |||
| ornithopter = | |||
{{{pre|}}}[[:Category:Ornithopters|<!-- | |||
-->{{LangSwitch | |||
| en = Ornithopter | |||
}}]] | |||
[[Category:Ornithopters]] | |||
| parasite aircraft = | |||
{{{pre|}}}[[:Category:Parasite aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Parasite aircraft | |||
}}]] | |||
[[Category:Parasite aircraft]] | |||
| patrol aircraft = | |||
{{{pre|}}}[[:Category:Patrol aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Patrol aircraft | |||
}}]] | |||
[[Category:Patrol aircraft]] | |||
| racing aircraft = | |||
{{{pre|}}}[[:Category:Racing aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Racing aircraft | |||
}}]] | |||
[[Category:Racing aircraft]] | |||
| radio-controlled aircraft = | |||
{{{pre|}}}[[:Category:Radio-controlled aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Radio-controlled aircraft | |||
}}]] | |||
[[Category:Radio-controlled aircraft]] | |||
| roadable aircraft = | |||
{{{pre|}}}[[:Category:Roadable aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Roadable aircraft | |||
}}]] | |||
[[Category:Roadable aircraft]] | |||
| rotorcraft = | |||
{{{pre|}}}[[:Category:Rotorcraft|<!-- | |||
-->{{LangSwitch | |||
| en = Rotorcraft | |||
}}]] | |||
[[Category:Rotorcraft]] | |||
| sailplane = | |||
{{{pre|}}}[[:Category:Sailplanes|<!-- | |||
-->{{LangSwitch | |||
| en = Sailplane | |||
}}]] | |||
[[Category:Sailplanes]] | |||
| seaplanes and flying boat = | |||
{{{pre|}}}[[:Category:Seaplanes and flying boats|<!-- | |||
-->{{LangSwitch | |||
| en = Seaplane or flying boat | |||
}}]] | |||
[[Category:Seaplanes and flying boats]] | |||
| spaceplane = | |||
{{{pre|}}}[[:Category:Spaceplanes|<!-- | |||
-->{{LangSwitch | |||
| en = Spaceplane | |||
}}]] | |||
[[Category:Spaceplanes]] | |||
| special-purpose aircraft = | |||
{{{pre|}}}[[:Category:Special-purpose aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Special-purpose aircraft | |||
}}]] | |||
[[Category:Special-purpose aircraft]] | |||
| sport aircraft = | |||
{{{pre|}}}[[:Category:Sport aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Sport aircraft | |||
}}]] | |||
[[Category:Sport aircraft]] | |||
| tiltrotor aircraft = | |||
{{{pre|}}}[[:Category:Tiltrotor aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Tiltrotor aircraft | |||
}}]] | |||
[[Category:Tiltrotor aircraft]] | |||
| trainer aircraft = | |||
{{{pre|}}}[[:Category:Trainer aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Trainer aircraft | |||
}}]] | |||
[[Category:Trainer aircraft]] | |||
| ultralight aircraft = | |||
{{{pre|}}}[[:Category:Ultralight aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = Ultralight aircraft | |||
}}]] | |||
[[Category:Ultralight aircraft]] | |||
| ultralight trike = | |||
{{{pre|}}}[[:Category:Ultralight trikes|<!-- | |||
-->{{LangSwitch | |||
| en = Ultralight trike | |||
}}]] | |||
[[Category:Ultralight trikes]] | |||
| unmanned aerial vehicle = | |||
{{{pre|}}}[[:Category:Unmanned aerial vehicles|<!-- | |||
-->{{LangSwitch | |||
| en = Unmanned aerial vehicle | |||
}}]] | |||
[[Category:Unmanned aerial vehicles]] | |||
| vtol aircraft = | |||
{{{pre|}}}[[:Category:VTOL aircraft|<!-- | |||
-->{{LangSwitch | |||
| en = VTOL aircraft | |||
}}]] | |||
[[Category:VTOL aircraft]] | |||
| very light jet = | |||
{{{pre|}}}[[:Category:Very light jets|<!-- | |||
-->{{LangSwitch | |||
| en = Very light jet | |||
}}]] | |||
[[Category:Very light jets]] | |||
<!-- Spacecraft types --> | <!-- Spacecraft types --> | ||
| rocket | | rocket = | ||
| spaceplane | {{{pre|}}}[[:Category:Rockets|<!-- | ||
-->{{LangSwitch | |||
| en = Rocket | |||
}}]] | |||
[[Category:Rockets]] | |||
| spaceplane = | |||
{{{pre|}}}[[:Category:Spaceplanes|<!-- | |||
-->{{LangSwitch | |||
| en = Spaceplane | |||
}}]] | |||
[[Category:Spaceplanes]] | |||
<!-- Vehicle types --> | <!-- Vehicle types --> | ||
| automobile | | automobile = | ||
| military vehicle | {{{pre|}}}[[:Category:Automobile|<!-- | ||
| motorcycle | -->{{LangSwitch | ||
| pushback | | en = Automobile | ||
| truck | }}]] | ||
[[Category:Automobile]] | |||
| military vehicle = | |||
{{{pre|}}}[[:Category:Military vehicle|<!-- | |||
-->{{LangSwitch | |||
| en = Military vehicle | |||
}}]] | |||
[[Category:Military vehicle]] | |||
| motorcycle = | |||
{{{pre|}}}[[:Category:Motorcycle|<!-- | |||
-->{{LangSwitch | |||
| en = Motorcycle | |||
}}]] | |||
[[Category:Motorcycle]] | |||
| pushback = | |||
{{{pre|}}}[[:Category:Pushback|<!-- | |||
-->{{LangSwitch | |||
| en = Pushback | |||
}}]] | |||
[[Category:Pushback]] | |||
| truck = | |||
{{{pre|}}}[[:Category:Truck|<!-- | |||
-->{{LangSwitch | |||
| en = Truck | |||
}}]] | |||
[[Category:Truck]] | |||
<!-- Seacraft types --> | <!-- Seacraft types --> | ||
| aircraft carrier | | aircraft carrier = | ||
{{{pre|}}}[[:Category:Aircraft carrier|<!-- | |||
-->{{LangSwitch | |||
| en = Aircraft carrier | |||
}}]] | |||
[[Category:aircraft carrier]] | |||
<!-- Unknown type --> | <!-- Unknown type --> | ||
| #default | | #default = {{#if: {{{1|}}}|{{{pre|}}}{{{1|}}}}} | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 12:42, 8 June 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>}}