Difference between revisions of "Template:Airtd/sandbox"
Jump to navigation
Jump to search
blackwiki>Tom.Reding |
blackwiki>Tom.Reding ({{ucfirst:{{{type}}}}}: {{{Type}}} no longer required) |
||
| Line 7: | Line 7: | ||
{| class="toccolours" style="margin:1em auto; font-size:95%; text-align:center;" | {| class="toccolours" style="margin:1em auto; font-size:95%; text-align:center;" | ||
|- | |- | ||
| − | ! style="background:#ccf" | {{{ | + | ! style="background:#ccf" | {{ucfirst:{{{type}}}}} by decade of first flight |
|- | |- | ||
| | | | ||
| Line 154: | Line 154: | ||
-->{{#ifeq:{{{1|}}}||[[Category:Aircraft catnav missing parameter|1]]}}<!-- | -->{{#ifeq:{{{1|}}}||[[Category:Aircraft catnav missing parameter|1]]}}<!-- | ||
-->{{#ifeq:{{{type|}}}||[[Category:Aircraft catnav missing parameter|T]]}}<!-- | -->{{#ifeq:{{{type|}}}||[[Category:Aircraft catnav missing parameter|T]]}}<!-- | ||
| − | |||
-->}}<!-- | -->}}<!-- | ||
| Line 164: | Line 163: | ||
Check cat 1 & output tracking cat if DNE: | Check cat 1 & output tracking cat if DNE: | ||
| − | -->{{#ifexist:Category:{{{ | + | -->{{#ifexist:Category:{{ucfirst:{{{type}}}}}|<!-- exists -->|<!-- end positive check |
-->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|I]]}}<!-- doesn't exist: +tracking cat | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|I]]}}<!-- doesn't exist: +tracking cat | ||
-->}}<!-- | -->}}<!-- | ||
Output cat 1 regardless: | Output cat 1 regardless: | ||
| − | -->[[Category:{{{ | + | -->[[Category:{{ucfirst:{{{type}}}}}|#{{{1}}}]]<!-- |
| Line 176: | Line 175: | ||
Check the appropriate cat 2 & output tracking cat if DNE: | Check the appropriate cat 2 & output tracking cat if DNE: | ||
| − | -->{{#switch:{{{ | + | -->{{#switch:{{ucfirst:{{{type}}}}}<!-- |
civil aircraft | civil aircraft | ||
| Line 188: | Line 187: | ||
|Civil trainer aircraft | |Civil trainer aircraft | ||
|Ultralight aircraft | |Ultralight aircraft | ||
| − | |Civil utility aircraft=[[Category:{{{1}}}0s civil aircraft|{{{ | + | |Civil utility aircraft=[[Category:{{{1}}}0s civil aircraft|{{ucfirst:{{{type}}}}}]]<!-- output regardless |
-->{{#ifexist:Category:{{{1}}}0s civil aircraft|<!-- exists -->|<!-- end positive check | -->{{#ifexist:Category:{{{1}}}0s civil aircraft|<!-- exists -->|<!-- end positive check | ||
-->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|J]]}}}}<!-- doesn't exist: +tracking cat | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|J]]}}}}<!-- doesn't exist: +tracking cat | ||
| Line 205: | Line 204: | ||
|Military transport aircraft | |Military transport aircraft | ||
|Military utility aircraft | |Military utility aircraft | ||
| − | |Patrol aircraft=[[Category:{{{1}}}0s military aircraft|{{{ | + | |Patrol aircraft=[[Category:{{{1}}}0s military aircraft|{{ucfirst:{{{type}}}}}]]<!-- output regardless |
-->{{#ifexist:Category:{{{1}}}0s military aircraft|<!-- exists -->|<!-- end positive check | -->{{#ifexist:Category:{{{1}}}0s military aircraft|<!-- exists -->|<!-- end positive check | ||
-->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|K]]}}}}<!-- doesn't exist: +tracking cat | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|K]]}}}}<!-- doesn't exist: +tracking cat | ||
aircraft | aircraft | ||
| − | -->|#default=[[Category:{{{1}}}0s aircraft|{{{ | + | -->|#default=[[Category:{{{1}}}0s aircraft|{{ucfirst:{{{type}}}}}]]<!-- output regardless |
-->{{#ifexist:Category:{{{1}}}0s aircraft|<!-- exists -->|<!-- end positive check | -->{{#ifexist:Category:{{{1}}}0s aircraft|<!-- exists -->|<!-- end positive check | ||
-->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|L]]}}}}<!-- doesn't exist: +tracking cat | -->{{#ifeq:{{NAMESPACE}}|Category|[[Category:Aircraft catnav missing parent|L]]}}}}<!-- doesn't exist: +tracking cat | ||
Revision as of 19:18, 10 May 2019
| 40x40px | 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. |
| 50px | This is the template sandbox page for Template:Airtd (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:
{{Airtd|type= | }}{{Airtd|type=civil trainer aircraft|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:Airtd/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. |
| 40x40px | This is a container category. Due to its scope, it should contain only subcategories. |
| {{{type}}} by decade of first flight |
|---|
|
[[:Category:{{{1}}}0s civil aircraft|Civil aircraft of the {{{1}}}0s]] |
|---|
|
[[:Category:{{{1}}}0s military aircraft|Military aircraft of the {{{1}}}0s]] |
| Miscellaneous aircraft of the {{{1}}}0s |
[[Category:{{{type}}}|#{{{1}}}]][[Category:{{{1}}}0s aircraft|{{{type}}}]]