6,566
edits
(Created a template for converting a aircraft/spacecraft/vehicle/seacraft type string into a category link and to automatically append the category to the article. This is taken from User:Bugman/Infobox Aircraft.) |
(The 'type' parameter is now also the first numbered parameter.) |
||
Line 1: | Line 1: | ||
{{#switch: {{lc: {{{type|}}}}} | {{#switch: {{lc: {{{type|{{{1|}}}}}}}} | ||
| airliner = [[:Category:Airliners|Airliners]] [[Category:Airliners]] | | airliner = [[:Category:Airliners|Airliners]] [[Category:Airliners]] | ||
| business aircraft = [[:Category:Business aircraft|Business aircraft]] [[Category:Business aircraft]] | | business aircraft = [[:Category:Business aircraft|Business aircraft]] [[Category:Business aircraft]] | ||
Line 12: | Line 12: | ||
| military helicopter = [[:Category:Military helicopters|Military helicopter]] [[Category:Military helicopters]] | | military helicopter = [[:Category:Military helicopters|Military helicopter]] [[Category:Military helicopters]] | ||
| spacecraft = [[:Category:Spacecraft|Spacecraft]] [[Category:Spacecraft]] | | spacecraft = [[:Category:Spacecraft|Spacecraft]] [[Category:Spacecraft]] | ||
| #default = {{{type|}}} | | #default = {{{type|{{{1|}}}}}} | ||
}}<noinclude> | }}<noinclude> | ||