Difference between revisions of "Template:Airnd/sandbox"
Jump to navigation
Jump to search
blackwiki>Tom.Reding (Create & sync) |
blackwiki>Tom.Reding (Use Category:Aircraft catnav missing parent to track cats with red-linked parents) |
||
| Line 122: | Line 122: | ||
{{LinkCatIfExists2|{{{1}}}0s United States aircraft|United States}} | {{LinkCatIfExists2|{{{1}}}0s United States aircraft|United States}} | ||
|} | |} | ||
| − | <includeonly>[[Category:{{{1}}}0s aircraft|{{{nation}}}]] | + | <includeonly><!-- |
| − | [[Category:Aircraft manufactured in {{{country|{{#switch:{{{nation}}}| | + | |
| + | |||
| + | PARENT CAT 1 | ||
| + | |||
| + | |||
| + | Check cat 1 & output tracking cat if DNE: | ||
| + | -->{{#ifexist:Category:{{{1}}}0s aircraft|<!-- exists -->|<!-- end check | ||
| + | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|E]]}}<!-- tracking cat | ||
| + | -->}}<!-- | ||
| + | |||
| + | Output cat 1 regardless: | ||
| + | -->[[Category:{{{1}}}0s aircraft|{{{nation}}}]]<!-- | ||
| + | |||
| + | |||
| + | PARENT CAT 2 | ||
| + | |||
| + | |||
| + | Check cat 2 & output tracking cat if DNE: | ||
| + | -->{{#ifexist:Category:Aircraft manufactured in {{{country|{{#switch:{{{nation}}}| | ||
| + | |Argentine=Argentina | ||
| + | |Australian=Australia | ||
| + | |Austrian=Austria and Austria-Hungary | ||
| + | |Belgian=Belgium | ||
| + | |Brazilian=Brazil | ||
| + | |British=the United Kingdom | ||
| + | |Bulgarian=Bulgaria | ||
| + | |Canadian=Canada | ||
| + | |Chilean=Chile | ||
| + | |PRC|Chinese=China | ||
| + | |Colombian=Colombia | ||
| + | |Cypriot=Cyprus | ||
| + | |Czech|Czechoslovakian|Czech and Czechoslovakian=the Czech Republic and Czechoslovakia | ||
| + | |Danish=Denmark | ||
| + | |Dutch=the Netherlands | ||
| + | |Egyptian=Egypt | ||
| + | |Estonian=Estonia | ||
| + | |Ethiopian=Ethiopia | ||
| + | |Finnish=Finland | ||
| + | |French=France | ||
| + | |German=Germany | ||
| + | |Greek=Greece | ||
| + | |Hungarian=Hungary | ||
| + | |Indian=India | ||
| + | |Iranian=Iran | ||
| + | |Israeli=Israel | ||
| + | |Italian=Italy | ||
| + | |Japanese=Japan | ||
| + | |Latvian=Latvia | ||
| + | |Lithuanian=Lithuania | ||
| + | |Mexican=Mexico | ||
| + | |New Zealand=New Zealand | ||
| + | |Norwegian=Norway | ||
| + | |Peruvian=Peru | ||
| + | |Polish=Poland | ||
| + | |Romanian=Romania | ||
| + | |Singaporean=Singapore | ||
| + | |Slovak=Slovakia | ||
| + | |Slovenian=Slovenia | ||
| + | |South African=South Africa | ||
| + | |Soviet|Russian|Soviet and Russian=the Soviet Union | ||
| + | |Spanish=Spain | ||
| + | |Swedish=Sweden | ||
| + | |Swiss=Switzerland | ||
| + | |Taiwanese=Taiwan | ||
| + | |Thai=Thailand | ||
| + | |Turkish=Turkey | ||
| + | |U.S.=the United States | ||
| + | |United States=the United States | ||
| + | |Ukrainian=Ukraine | ||
| + | |Yugoslavian=Yugoslavia | ||
| + | |Yugoslav|Serbian|Yugoslav and Serbian=Yugoslavia and Serbia<!-- | ||
| + | -->}}<!-- end switch | ||
| + | -->}}}|<!-- exists -->|<!-- end check | ||
| + | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|F]]}}<!-- tracking cat | ||
| + | -->}}<!-- | ||
| + | |||
| + | Output cat 2 regardless: | ||
| + | -->[[Category:Aircraft manufactured in {{{country|{{#switch:{{{nation}}}| | ||
|Argentine=Argentina | |Argentine=Argentina | ||
|Australian=Australia | |Australian=Australia | ||
Revision as of 03:15, 10 May 2019
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
| This is the template sandbox page for Template:Airnd (diff). |
Note: This template will appear to be broken in this view – please check if it is actually broken on a page it is used on before trying to fix it.
Usage
All parameters are required:
{{Airnd|nation= | }}{{Airnd|nation=Soviet|194}}
Used on categories like:
See also
|
|
|
Tracking categories
- Category:Aircraft catnav failed to generate navbox (0)
- Category:Aircraft catnav missing parameter (0)
- Category:Aircraft catnav missing parent (0)
| The above documentation is transcluded from Template:Airnd/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
|
{{{nation}}} aircraft by decade of first flight |
|
Aircraft of the {{{1}}}0s by nation |