Difference between revisions of "Template:Infobox airport/datatable"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(try using navbox group colour defined by MediaWiki:Common.css for greater contrast per talk page)
imported>Jonesey95
(fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments)
 
Line 10: Line 10:
 
{{#if:{{{l1-f|}}} {{{l1-m|}}} {{{s1|}}}|
 
{{#if:{{{l1-f|}}} {{{l1-m|}}} {{{s1|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n1|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n1|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l1-{{#if:{{{metric|}}}|m|f}}|}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l1-{{#if:{{{metric|}}}|m|f}}|}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l1-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l1-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l1-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l1-m}}}|m|ft|0|disp=output number only}} | {{convert|{{{l1-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l1-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l1-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l1-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l1-m}}}|m|ft|0|disp=output number only}} | {{convert|{{{l1-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s1|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s1|}}}
 
|{{#if: {{{n1|}}} |  
 
|{{#if: {{{n1|}}} |  
Line 19: Line 19:
 
{{#if:{{{l2-f|}}} {{{l2-m|}}} {{{s2|}}}|
 
{{#if:{{{l2-f|}}} {{{l2-m|}}} {{{s2|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n2|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n2|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l2-{{#if:{{{metric|}}}|m|f}}|}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l2-{{#if:{{{metric|}}}|m|f}}|}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l2-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l2-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l2-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l2-m}}}|m|ft|0|disp=output number only}} | {{convert|{{{l2-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l2-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l2-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l2-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l2-m}}}|m|ft|0|disp=output number only}} | {{convert|{{{l2-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s2|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s2|}}}
 
|{{#if: {{{n2|}}} |  
 
|{{#if: {{{n2|}}} |  
Line 28: Line 28:
 
{{#if:{{{l3-f|}}} {{{l3-m|}}} {{{s3|}}}|
 
{{#if:{{{l3-f|}}} {{{l3-m|}}} {{{s3|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n3|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n3|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l3-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l3-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l3-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l3-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l3-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l3-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l3-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l3-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l3-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l3-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l3-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l3-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s3|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s3|}}}
 
|{{#if: {{{n3|}}} |  
 
|{{#if: {{{n3|}}} |  
Line 37: Line 37:
 
{{#if:{{{l4-f|}}} {{{l4-m|}}} {{{s4|}}}|
 
{{#if:{{{l4-f|}}} {{{l4-m|}}} {{{s4|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n4|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n4|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l4-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l4-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l4-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l4-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l4-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l4-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l4-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l4-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l4-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l4-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l4-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l4-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s4|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s4|}}}
 
|{{#if: {{{n4|}}} |  
 
|{{#if: {{{n4|}}} |  
Line 46: Line 46:
 
{{#if:{{{l5-f|}}} {{{l5-m|}}} {{{s5|}}}|
 
{{#if:{{{l5-f|}}} {{{l5-m|}}} {{{s5|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n5|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n5|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l5-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l5-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l5-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l5-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l5-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l5-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l5-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l5-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l5-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l5-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l5-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l5-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s5|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s5|}}}
 
|{{#if: {{{n5|}}} |  
 
|{{#if: {{{n5|}}} |  
Line 55: Line 55:
 
{{#if:{{{l6-f|}}} {{{l6-m|}}} {{{s6|}}}|
 
{{#if:{{{l6-f|}}} {{{l6-m|}}} {{{s6|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n6|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n6|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l6-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l6-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l6-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l6-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l6-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l6-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l6-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l6-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l6-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l6-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l6-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l6-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s6|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s6|}}}
 
|{{#if: {{{n6|}}} |  
 
|{{#if: {{{n6|}}} |  
Line 64: Line 64:
 
{{#if:{{{l7-f|}}} {{{l7-m|}}} {{{s7|}}}|
 
{{#if:{{{l7-f|}}} {{{l7-m|}}} {{{s7|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n7|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n7|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l7-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l7-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l7-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l7-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l7-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l7-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l7-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l7-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l7-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l7-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l7-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l7-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s7|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s7|}}}
 
|{{#if: {{{n7|}}} |  
 
|{{#if: {{{n7|}}} |  
Line 73: Line 73:
 
{{#if:{{{l8-f|}}} {{{l8-m|}}} {{{s8|}}}|
 
{{#if:{{{l8-f|}}} {{{l8-m|}}} {{{s8|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n8|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n8|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l8-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l8-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l8-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l8-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l8-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l8-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l8-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l8-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l8-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l8-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l8-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l8-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s8|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s8|}}}
 
|{{#if: {{{n8|}}} |  
 
|{{#if: {{{n8|}}} |  
Line 82: Line 82:
 
{{#if:{{{l9-f|}}} {{{l9-m|}}} {{{s9|}}}|
 
{{#if:{{{l9-f|}}} {{{l9-m|}}} {{{s9|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n9|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n9|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l9-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l9-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l9-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l9-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l9-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l9-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l9-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l9-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l9-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l9-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l9-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l9-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s9|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s9|}}}
 
|{{#if: {{{n9|}}} |  
 
|{{#if: {{{n9|}}} |  
Line 91: Line 91:
 
{{#if:{{{l10-f|}}} {{{l10-m|}}} {{{s10|}}}|
 
{{#if:{{{l10-f|}}} {{{l10-m|}}} {{{s10|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n10|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n10|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l10-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l10-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l10-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l10-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l10-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l10-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l10-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l10-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l10-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l10-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l10-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l10-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s10|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s10|}}}
 
|{{#if: {{{n10|}}} |  
 
|{{#if: {{{n10|}}} |  
Line 100: Line 100:
 
{{#if:{{{l11-f|}}} {{{l11-m|}}} {{{s11|}}}|
 
{{#if:{{{l11-f|}}} {{{l11-m|}}} {{{s11|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n11|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n11|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l11-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l11-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l11-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l11-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l11-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l11-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l11-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l11-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l11-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l11-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l11-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l11-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s11|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s11|}}}
 
|{{#if: {{{n11|}}} |  
 
|{{#if: {{{n11|}}} |  
Line 109: Line 109:
 
{{#if:{{{l12-f|}}} {{{l12-m|}}} {{{s12|}}}|
 
{{#if:{{{l12-f|}}} {{{l12-m|}}} {{{s12|}}}|
 
{{!}} style="text-align: center;" {{!}} {{{n12|}}}
 
{{!}} style="text-align: center;" {{!}} {{{n12|}}}
{{!}} style="text-align: center;" {{!}} {{formatnum: {{{l12-{{#if:{{{metric|}}}|m|f}}}}} }}
+
{{!}} style="text-align: center;" {{!}} {{formatnum: {{replace|{{{l12-{{#if:{{{metric|}}}|m|f}}}}}|,|}} }}
{{!}} style="text-align: center;" {{!}} {{#if:{{{l12-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{{l12-{{#if:{{{metric|}}}|f|m}} }}} }} |{{#if:{{{l12-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l12-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l12-f}}}|ft|m|0|disp=output number only}} }} }} }}
+
{{!}} style="text-align: center;" {{!}} {{#if:{{{l12-{{#if:{{{metric|}}}|f|m}}|}}}| {{formatnum: {{replace|{{{l12-{{#if:{{{metric|}}}|f|m}} }}}|,|}} }} |{{#if:{{{l12-{{#if:{{{metric|}}}|m|f}}|}}} | {{#if:{{{metric|}}} | {{convert|{{{l12-m}}}|m|ft|0|disp=output number only}} |{{convert|{{{l12-f}}}|ft|m|0|disp=output number only}} }} }} }}
 
{{!}} style="text-align: center;" {{!}} {{{s12|}}}
 
{{!}} style="text-align: center;" {{!}} {{{s12|}}}
 
|{{#if: {{{n12|}}} |  
 
|{{#if: {{{n12|}}} |  

Latest revision as of 17:30, 28 September 2020

Number Length Surface
ft m
Template documentation

This subtemplate is used by {{Infobox airport}}, it should not be used directly.