Difference between revisions of "Template:Aircat"

From blackwiki
Jump to navigation Jump to search
blackwiki>Gonnym
m
blackwiki>Gonnym
Line 3: Line 3:
 
<includeonly>[[Category:Aircraft by manufacturer]]
 
<includeonly>[[Category:Aircraft by manufacturer]]
 
{{#ifeq: {{{2}}} | International || [[Category:Aircraft manufactured in {{{2}}}]] }}
 
{{#ifeq: {{{2}}} | International || [[Category:Aircraft manufactured in {{{2}}}]] }}
{{#ifeq: {{#invoke:Is article|main|{{Remove last word|{{PAGENAME}}}}}} | article || [[Category:Aircraft manufacture categories not using manufacture article title]] }}</includeonly>
+
{{#switch: {{#invoke:Is article|main|{{Remove last word|{{PAGENAME}}}}}}  
 +
| empty
 +
| article =
 +
| #default = [[Category:Aircraft manufacture categories not using manufacture article title]] }}</includeonly>
 
<noinclude>{{Documentation}}
 
<noinclude>{{Documentation}}
 
[[Category:Aviation templates]]</noinclude>
 
[[Category:Aviation templates]]</noinclude>

Revision as of 09:53, 6 July 2020

This category is for aircraft designed, manufactured or marketed by [[{{{1}}}|{{{1}}}]].


Template documentation[view] [edit] [history] [purge]

This template is for use on aircraft-by-manufacturer categories. It uses simple syntax.

Usage

Parameters

  • |1= (company) will add a link to the manufacturer at the top of the category a la {{catmain}}.
  • |2= (country) is the parameter for [[Category:Aircraft manufactured in Foo]]. Note that if a 'the' is required it must be added manually.

Examples

  • {{Aircat|Aermacchi|Italy}}
  • {{Aircat|Chase Aircraft|the United States}}