Difference between revisions of "Template:Aircraft specs/length/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Trialpears
(Handle weird imperial units)
Line 2: Line 2:
 
|met={{#if:{{{m|}}}
 
|met={{#if:{{{m|}}}
 
   |{{{1|}}} {{#if:{{{ft|}}}
 
   |{{{1|}}} {{#if:{{{ft|}}}
     |{{cvt|{{{m}}}|m|m|disp=out}} ({{cvt|{{{ft}}}|ft|{{{in|0}}}|in|ftin|disp=out}})
+
     |{{#if:{{{in|}}}|{{cvt|{{{m}}}|m|m|disp=out}} ({{cvt|{{{ft}}}|ft|{{{in|0}}}|in|ftin|disp=out}})|{{cvt|{{{m}}}|m|m|disp=out}} ({{cvt|{{{ft}}}|ft|ftin|disp=out}})}}
 
     |{{convert|{{{m|}}}|m|ftin|0|abbr=on}}}} {{{note|}}}  
 
     |{{convert|{{{m|}}}|m|ftin|0|abbr=on}}}} {{{note|}}}  
 
   |{{#if:{{{ft|}}}
 
   |{{#if:{{{ft|}}}

Revision as of 09:34, 26 August 2019

Template documentation

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