Difference between revisions of "Template:Aircraft specs/convert/sandbox"
Jump to navigation
Jump to search
Template documentation
blackwiki>Trialpears (And for imperial) |
blackwiki>Trialpears (Added workaround for weird unit displays) |
||
| Line 1: | Line 1: | ||
{{#switch:{{{prime units?|met}}} | {{#switch:{{{prime units?|met}}} | ||
|met={{#if:{{{mval|}}} | |met={{#if:{{{mval|}}} | ||
| − | |{{{1|}}} {{#if:{{{iunit|}}}|{{{mval|}}} {{{munit|}}} ({{{ival}}} {{{iunit}}})|{{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{{rnd|}}}|abbr=on}} }} {{{note|}}} | + | |{{{1|}}} {{#if:{{{iunit|}}}|{{{mval|}}} {{convert|0|{{{munit}}}|{{{munit}}}|disp=unit2}} ({{{ival}}} {{convert|0|{{{iunit}}}|{{{iunit}}}|disp=unit2}})|{{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{{rnd|}}}|abbr=on}} }} {{{note|}}} |
|{{#if:{{{ival|}}} | |{{#if:{{{ival|}}} | ||
|{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} | |{{{1|}}} {{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} | ||
| Line 7: | Line 7: | ||
}} | }} | ||
|imp | kts = {{#if:{{{ival|}}} | |imp | kts = {{#if:{{{ival|}}} | ||
| − | |{{{1|}}} {{#if:{{{mval|}}}|{{{ival}}} {{{iunit}}} ({{{mval}}} {{{munit}}})|{{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{{rnd|}}}|abbr=on}}}} {{{note|}}} | + | |{{{1|}}} {{#if:{{{mval|}}}|{{{ival}}} {{convert|0|{{{iunit}}}|{{{iunit}}}|disp=unit2}} ({{{mval}}} {{convert|0|{{{munit}}}|{{{munit}}}|disp=unit2}})|{{convert|{{{ival|}}}|{{{iunit}}}|{{{munit}}}|{{{rnd|}}}|abbr=on}}}} {{{note|}}} |
|{{#if:{{{mval|}}} | |{{#if:{{{mval|}}} | ||
|{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} | |{{{1|}}} {{convert|{{{mval|}}}|{{{munit}}}|{{{iunit}}}|{{{rnd|}}}|abbr=on|order=flip}} {{{note|}}} | ||
Revision as of 23:18, 9 August 2019
| This is the template sandbox page for Template:Aircraft specs/convert (diff). |
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 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 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. |