Difference between revisions of "Template:Aircraft specs/convert"
Jump to navigation
Jump to search
Template documentation
blackwiki>Frietjes (←Created page with '{{#ifeq:{{{metric|y}}}|y |{{#if:{{{mval|}}} |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|abbr=on}} {{{note|}}} |{{#if:{{{ival|}}} |{{{1|}}} {...') |
blackwiki>Frietjes |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{{metric|y}}}|y | {{#ifeq:{{{metric|y}}}|y | ||
|{{#if:{{{mval|}}} | |{{#if:{{{mval|}}} | ||
| − | |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|abbr=on}} {{{note|}}} | + | |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{rnd|}}}|abbr=on}} {{{note|}}} |
|{{#if:{{{ival|}}} | |{{#if:{{{ival|}}} | ||
| − | |{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|abbr=on|order=flip}} {{{note|}}} | + | |{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} |
}} | }} | ||
}} | }} | ||
|{{#if:{{{ival|}}} | |{{#if:{{{ival|}}} | ||
| − | |{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|abbr=on}} {{{note|}}} | + | |{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{rnd|}}}|abbr=on}} {{{note|}}} |
|{{#if:{{{mval|}}} | |{{#if:{{{mval|}}} | ||
| − | |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|abbr=on|order=flip}} {{{note|}}} | + | |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} |
}} | }} | ||
}} | }} | ||
| Line 19: | Line 19: | ||
{{aircraft specs/convert|metric=y|* '''Length:'''|mval=5|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=y|* '''Length:'''|mval=5|munit=m|ival=|iunit=ft|note=with a note}} | ||
{{aircraft specs/convert|metric=y|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=y|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|note=with a note}} | ||
| + | {{aircraft specs/convert|metric=y|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|rnd=0|note=with a note}} | ||
{{aircraft specs/convert|metric=y|* '''Length:'''|mval=|munit=m|ival=16|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=y|* '''Length:'''|mval=|munit=m|ival=16|iunit=ft|note=with a note}} | ||
{{aircraft specs/convert|metric=y|* '''Length:'''|mval=|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=y|* '''Length:'''|mval=|munit=m|ival=|iunit=ft|note=with a note}} | ||
| Line 24: | Line 25: | ||
{{aircraft specs/convert|metric=n|* '''Length:'''|mval=5|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=n|* '''Length:'''|mval=5|munit=m|ival=|iunit=ft|note=with a note}} | ||
{{aircraft specs/convert|metric=n|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=n|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|note=with a note}} | ||
| + | {{aircraft specs/convert|metric=n|* '''Length:'''|mval=5.49|munit=m|ival=|iunit=ft|rnd=0|note=with a note}} | ||
{{aircraft specs/convert|metric=n|* '''Length:'''|mval=|munit=m|ival=16|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=n|* '''Length:'''|mval=|munit=m|ival=16|iunit=ft|note=with a note}} | ||
{{aircraft specs/convert|metric=n|* '''Length:'''|mval=|munit=m|ival=|iunit=ft|note=with a note}} | {{aircraft specs/convert|metric=n|* '''Length:'''|mval=|munit=m|ival=|iunit=ft|note=with a note}} | ||
}}</noinclude> | }}</noinclude> | ||
Revision as of 18:13, 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)* with a note
- Length: 5.49 m (18.0 ft)* with a note
- Length: 5.49 m (18.0 ft)* with a note
- Length: 4.9 m (16 ft)* with a note
Imperial tests
- Length: 16 ft (5 m)* with a note
- Length: 18.0 ft (5.49 m)* with a note
- Length: 18.0 ft (5.49 m)* with a note
- Length: 16 ft (4.9 m)* with a note
| Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |