Difference between revisions of "Template:Aircraft specs/length"
Jump to navigation
Jump to search
Template documentation
blackwiki>Frietjes |
blackwiki>Frietjes |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{m|}}} | + | {{#ifeq:{{{metric|y}}}|y |
| + | |{{#if:{{{m|}}} | ||
|{{{1|}}} {{convert|{{{m|}}}|m|ftin|0|abbr=on}} {{{note|}}} | |{{{1|}}} {{convert|{{{m|}}}|m|ftin|0|abbr=on}} {{{note|}}} | ||
|{{#if:{{{ft|}}} | |{{#if:{{{ft|}}} | ||
|{{#if:{{{in|}}} | |{{#if:{{{in|}}} | ||
|{{{1|}}} {{convert|{{{ft|}}}|ft|{{{in|}}}|in|m|abbr=on|order=flip}} {{{note|}}} | |{{{1|}}} {{convert|{{{ft|}}}|ft|{{{in|}}}|in|m|abbr=on|order=flip}} {{{note|}}} | ||
| − | |{{{1|}}} {{convert|{{{ft|}}}|ft|m | + | |{{{1|}}} {{convert|{{{ft|}}}|ft|m|abbr=on|order=flip}} {{{note|}}} |
}} | }} | ||
}} | }} | ||
| + | }} | ||
| + | |{{#if:{{{ft|}}} | ||
| + | |{{#if:{{{in|}}} | ||
| + | |{{{1|}}} {{convert|{{{ft|}}}|ft|{{{in|}}}|in|m|abbr=on}} {{{note|}}} | ||
| + | |{{{1|}}} {{convert|{{{ft|}}}|ft|m|abbr=on}} {{{note|}}} | ||
| + | }} | ||
| + | |{{#if:{{{m|}}} | ||
| + | |{{{1|}}} {{convert|{{{m|}}}|m|ftin|abbr=on|order=flip}} {{{note|}}} | ||
| + | }} | ||
| + | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation|content= | {{documentation|content= | ||
This subtemplate is used to simplify the code in {{tl|aircraft specs}}. It should not be used directly. | This subtemplate is used to simplify the code in {{tl|aircraft specs}}. It should not be used directly. | ||
| − | == | + | == Metric tests == |
| − | {{aircraft specs/length|* '''Length:'''|m=5|ft= | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=5|ft=|in=|note=with a note}} |
| − | {{aircraft specs/length|* '''Length:'''|m=5.49|ft= | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=5.49|ft=|in=|note=with a note}} |
| − | {{aircraft specs/length|* '''Length:'''|m=|ft=16|in=5|note=with a note}} | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=16|in=5|note=with a note}} |
| − | {{aircraft specs/length|* '''Length:'''|m=|ft=18|in=0|note=with a note}} | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=18|in=0|note=with a note}} |
| − | {{aircraft specs/length|* '''Length:'''|m=|ft=18|in=|note=with a note}} | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=18|in=|note=with a note}} |
| − | {{aircraft specs/length|* '''Length:'''|m=|ft=|in=5|note=with a note}} | + | {{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=|in=5|note=with a note}} |
| + | == Imperial tests == | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=5|ft=|in=|note=with a note}} | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=5.49|ft=|in=|note=with a note}} | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=|ft=16|in=5|note=with a note}} | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=|ft=18|in=0|note=with a note}} | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=|ft=18|in=|note=with a note}} | ||
| + | {{aircraft specs/length|metric=n|* '''Length:'''|m=|ft=|in=5|note=with a note}} | ||
}}</noinclude> | }}</noinclude> | ||
Revision as of 16:35, 22 February 2017
This subtemplate is used to simplify the code in {{aircraft specs}}. It should not be used directly.
Metric tests
- Length: 5 m (16 ft 5 in) with a note
- Length: 5.49 m (18 ft 0 in) with a note
- Length: 5.00 m (16 ft 5 in) with a note
- Length: 5.49 m (18 ft 0 in) with a note
- Length: 5.5 m (18 ft) with a note
Imperial tests
- Length: 16 ft 5 in (5 m) with a note
- Length: 18 ft 0 in (5.49 m) with a note
- Length: 16 ft 5 in (5.00 m) with a note
- Length: 18 ft 0 in (5.49 m) with a note
- Length: 18 ft (5.5 m) with a note
| Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |