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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Frietjes
(syntax update)
Line 1: Line 1:
{{#ifeq:{{{metric|y}}}|y
+
{{#switch:{{{prime units?|met}}}
|{{#if:{{{m|}}}
+
|met={{#if:{{{m|}}}
 
   |{{{1|}}} {{convert|{{{m|}}}|m|ftin|0|abbr=on}} {{{note|}}}
 
   |{{{1|}}} {{convert|{{{m|}}}|m|ftin|0|abbr=on}} {{{note|}}}
 
   |{{#if:{{{ft|}}}
 
   |{{#if:{{{ft|}}}
Line 9: Line 9:
 
   }}
 
   }}
 
}}
 
}}
|{{#if:{{{ft|}}}
+
|imp|kts={{#if:{{{ft|}}}
 
   |{{#if:{{{in|}}}
 
   |{{#if:{{{in|}}}
 
       |{{{1|}}} {{convert|{{{ft|}}}|ft|{{{in|}}}|in|m|abbr=on}} {{{note|}}}
 
       |{{{1|}}} {{convert|{{{ft|}}}|ft|{{{in|}}}|in|m|abbr=on}} {{{note|}}}
Line 23: Line 23:
  
 
== Metric tests ==
 
== Metric tests ==
{{aircraft specs/length|metric=y|* '''Length:'''|m=5|ft=|in=|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=5|ft=|in=|note=with a note}}
{{aircraft specs/length|metric=y|* '''Length:'''|m=5.49|ft=|in=|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=5.49|ft=|in=|note=with a note}}
{{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=16|in=5|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=|ft=16|in=5|note=with a note}}
{{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=18|in=0|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=|ft=18|in=0|note=with a note}}
{{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=18|in=|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=|ft=18|in=|note=with a note}}
{{aircraft specs/length|metric=y|* '''Length:'''|m=|ft=|in=5|note=with a note}}
+
{{aircraft specs/length|prime units?=met|* '''Length:'''|m=|ft=|in=5|note=with a note}}
 
== Imperial tests ==
 
== Imperial tests ==
{{aircraft specs/length|metric=n|* '''Length:'''|m=5|ft=|in=|note=with a note}}
+
{{aircraft specs/length|prime units?=imp|* '''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|prime units?=imp|* '''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|prime units?=imp|* '''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|prime units?=imp|* '''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|prime units?=imp|* '''Length:'''|m=|ft=18|in=|note=with a note}}
{{aircraft specs/length|metric=n|* '''Length:'''|m=|ft=|in=5|note=with a note}}
+
{{aircraft specs/length|prime units?=imp|* '''Length:'''|m=|ft=|in=5|note=with a note}}
 
}}</noinclude>
 
}}</noinclude>

Revision as of 01:09, 23 February 2017

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