Misplaced Pages

Template:Body roundness index: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 09:57, 27 December 2024 editUwappa (talk | contribs)Extended confirmed users4,450 edits Undid revision 1265373794 by Zefr (talk) undo pending escalationTags: Undo Reverted← Previous edit Revision as of 11:05, 27 December 2024 edit undoJMF (talk | contribs)Extended confirmed users56,803 edits Undid revision 1265523930 by Uwappa (talk) rv to consensus version, pending BRD discussion. That is now also a WP:3RR violationTags: Replaced Undo RevertedNext edit →
Line 1: Line 1:
<templatestyles src="Body roundness index/styles.css" /> <templatestyles src="Body roundness index/styles.css" />
<div class="calculatorgadget-fallback">Please select in your preferences: ] to see a working calculator.</div> <div class="calculatorgadget-fallback">Please select in your preferences: ] to see a working calculator.</div>
{| class="bmicalc calculatorgadget-enabled" style = "display:none; float: right; margin-left:15px;" {| class="bmicalc calculatorgadget-enabled" style="display: none; float: right; margin-left: 15px;"
|+ Body roundness calculator |+ Body roundness calculator
| class="prompt" | Units
<!-- hidden temporary fields for backward compatibility with previous calculator version on whtr and bri page. Fields are used on those pages -->
! Metric
{{calculator|id=heightcm|default=180|type=hidden|formula=heightSelected}}{{calculator|id=heightfeet|default=5|type=hidden|formula=heightSelectedFeet0Dec}}{{calculator|id=heightinches|default=11|type=hidden|formula=heightSelectedInch}}{{calculator|id=waistcm|default=81|type=hidden|formula=waistSelected}}{{calculator|id=waistinch|default=31.890|type=hidden|formula=waistSelectedInch}}
| rowspan="3"|&nbsp;
<!-- There is no need to select a unit for either Metric or Imperial.
! Imperial
Input a height in cm and the calculator will automatically convert it to feet and inches.
Same story for waist cm to inches.
-->
|- |-
| class="prompt"| | class="prompt" | Height
| {{calculator|id=heightcm|default=160|size=3|min=1|formula=round(heightfeet*12*2.54+heightinches*2.54)}} cm
! {{CSS image crop
| style="text-align: left;" | {{calculator|id=heightfeet|default=5|size=2|min=0|formula=floor(heightcm/(12*2.54))}} ft<br />{{calculator|id=heightinches|default=3|size=2|min=0|max=11|formula=round(heightcm/(2.54)-12*floor(heightcm/(12*2.54)))}} in
|Image = US_Navy_110426-N-00332-114_Students_measure_the_height_and_body_weight_of_fourth_and_fifth_grade_students_from_Lindenwood_Elementary_School.jpg
|bSize = 200
|cWidth = 70
|cHeight = 75
|Link = Human_height
|oTop = 35
|oLeft = 40
}}
! ]
|- |-
| class="prompt" rowspan="2"|] | class="prompt" | Waist
| {{calculator|id=waistcm|default=72|size=3|min=1|formula=round(waistinch*2.54)}} cm
! ]
| style="text-align: left;" | {{calculator|id=waistinch|default=28|size=2|min=1|formula=round(waistcm/2.54)}} in
! ]
|- |-
| class="prompt" | ]
|{{calculator|id=height|default=180|type=number|step=1|min=1}}<div class="conversions">
| colspan="3" | {{calculator|id=whtr_whtr|default=0.45|size=3|type=plain|decimals=3|formula=waistcm/heightcm}}
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height+10|contents=]}} {{calculator|id=heightPlus10|default=190|size=5|type=plain|formula=height+10}}cm&asymp;{{calculator|type=plain|id=heightPlus10Feet0Dec|default=6|formula=floor(heightPlus10/30.48)}}{{prime}}{{calculator|type=plain|id=heightPlus10Inch|default=3|formula=round(heightPlus10/2.54-12*heightPlus10Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height+3|contents=]}} {{calculator|id=heightPlus3|default=183|size=5|type=plain|formula=height+3}}cm&asymp;{{calculator|type=plain|id=heightPlus3Feet0Dec|default=6|formula=floor(heightPlus3/30.48)}}{{prime}}{{calculator|type=plain|id=heightPlus3Inch|default=0|formula=round(heightPlus3/2.54-12*heightPlus3Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height+2|contents=]}} {{calculator|id=heightPlus2|default=182|size=5|type=plain|formula=height+2}}cm&asymp;{{calculator|type=plain|id=heightPlus2Feet0Dec|default=5|formula=floor(heightPlus2/30.48)}}{{prime}}{{calculator|type=plain|id=heightPlus2Inch|default=12|formula=round(heightPlus2/2.54-12*heightPlus2Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height+1|contents=]}} {{calculator|id=heightPlus1|default=181|size=5|type=plain|formula=height+1}}cm&asymp;{{calculator|type=plain|id=heightPlus1Feet0Dec|default=5|formula=floor(heightPlus1/30.48)}}{{prime}}{{calculator|type=plain|id=heightPlus1Inch|default=11|formula=round(heightPlus1/2.54-12*heightPlus1Feet0Dec)}}{{pprime}}</div>
<div class="selectedValue">] {{calculator|id=heightSelected|default=180|size=5|type=plain|formula=height}}cm&asymp;{{calculator|type=plain|id=heightSelectedFeet0Dec|default=5|formula=floor(heightSelected/30.48)}}{{prime}}{{calculator|type=plain|id=heightSelectedInch|default=11|formula=round(heightSelected/2.54-12*heightSelectedFeet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height-1|contents=]}} {{calculator|id=heightMinus1|default=179|size=5|type=plain|formula=height-1}}cm&asymp;{{calculator|type=plain|id=heightMinus1Feet0Dec|default=5|formula=floor(heightMinus1/30.48)}}{{prime}}{{calculator|type=plain|id=heightMinus1Inch|default=10|formula=round(heightMinus1/2.54-12*heightMinus1Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height-2|contents=]}} {{calculator|id=heightMinus2|default=178|size=5|type=plain|formula=height-2}}cm&asymp;{{calculator|type=plain|id=heightMinus2Feet0Dec|default=5|formula=floor(heightMinus2/30.48)}}{{prime}}{{calculator|type=plain|id=heightMinus2Inch|default=10|formula=round(heightMinus2/2.54-12*heightMinus2Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height-3|contents=]}} {{calculator|id=heightMinus3|default=177|size=5|type=plain|formula=height-3}}cm&asymp;{{calculator|type=plain|id=heightMinus3Feet0Dec|default=5|formula=floor(heightMinus3/30.48)}}{{prime}}{{calculator|type=plain|id=heightMinus3Inch|default=10|formula=round(heightMinus3/2.54-12*heightMinus3Feet0Dec)}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=height|type=plain|formula=height-10|contents=]}} {{calculator|id=heightMinus10|default=170|size=5|type=plain|formula=height-10}}cm&asymp;{{calculator|type=plain|id=heightMinus10Feet0Dec|default=5|formula=floor(heightMinus10/30.48)}}{{prime}}{{calculator|type=plain|id=heightMinus10Inch|default=7|formula=round(heightMinus10/2.54-12*heightMinus10Feet0Dec)}}{{pprime}}</div>
</div>
|{{calculator|id=waist|default=81|min=1|formula=floor(height*whtr+0.5)}}
<div class="conversions">
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+50|contents=]}} {{calculator|id=waistPlus50|default=131|size=5|type=plain|formula=waist+50}}cm&asymp;{{calculator|type=plain|id=waistPlus50Inch|default=51.575|formula=waistPlus50/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+40|contents=]}} {{calculator|id=waistPlus40|default=121|size=5|type=plain|formula=waist+40}}cm&asymp;{{calculator|type=plain|id=waistPlus40Inch|default=47.638|formula=waistPlus40/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+30|contents=]}} {{calculator|id=waistPlus30|default=111|size=5|type=plain|formula=waist+30}}cm&asymp;{{calculator|type=plain|id=waistPlus30Inch|default=43.701|formula=waistPlus30/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+20|contents=]}} {{calculator|id=waistPlus20|default=101|size=5|type=plain|formula=waist+20}}cm&asymp;{{calculator|type=plain|id=waistPlus20Inch|default=39.764|formula=waistPlus20/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+10|contents=]}} {{calculator|id=waistPlus10|default=91|size=5|type=plain|formula=waist+10}}cm&asymp;{{calculator|type=plain|id=waistPlus10Inch|default=35.827|formula=waistPlus10/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+5|contents=]}} {{calculator|id=waistPlus5|default=86|size=5|type=plain|formula=waist+5}}cm&asymp;{{calculator|type=plain|id=waistPlus5Inch|default=33.858|formula=waistPlus5/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+4|contents=]}} {{calculator|id=waistPlus4|default=85|size=5|type=plain|formula=waist+4}}cm&asymp;{{calculator|type=plain|id=waistPlus4Inch|default=33.465|formula=waistPlus4/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+3|contents=]}} {{calculator|id=waistPlus3|default=84|size=5|type=plain|formula=waist+3}}cm&asymp;{{calculator|type=plain|id=waistPlus3Inch|default=33.071|formula=waistPlus3/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+2|contents=]}} {{calculator|id=waistPlus2|default=83|size=5|type=plain|formula=waist+2}}cm&asymp;{{calculator|type=plain|id=waistPlus2Inch|default=32.677|formula=waistPlus2/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist+1|contents=]}} {{calculator|id=waistPlus1|default=82|size=5|type=plain|formula=waist+1}}cm&asymp;{{calculator|type=plain|id=waistPlus1Inch|default=32.283|formula=waistPlus1/2.54|decimals=3}}{{pprime}}</div>
<div class="selectedValue">] {{calculator|id=waistSelected|default=81|size=5|type=plain|formula=waist}}cm&asymp;{{calculator|type=plain|id=waistSelectedInch|default=31.890|formula=waistSelected/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-1&nbsp;|contents=]}} {{calculator|id=waistMinus1|default=80|size=5|type=plain|formula=waist-1}}cm&asymp;{{calculator|type=plain|id=waistMinus1Inch|default=31.496|formula=waistMinus1/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-2|contents=]}} {{calculator|id=waistMinus2|default=79|size=5|type=plain|formula=waist-2}}cm&asymp;{{calculator|type=plain|id=waistMinus2Inch|default=31.102|formula=waistMinus2/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-3|contents=]}} {{calculator|id=waistMinus3|default=78|size=5|type=plain|formula=waist-3}}cm&asymp;{{calculator|type=plain|id=waistMinus3Inch|default=30.709|formula=waistMinus3/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-4|contents=]}} {{calculator|id=waistMinus4|default=77|size=5|type=plain|formula=waist-4}}cm&asymp;{{calculator|type=plain|id=waistMinus4Inch|default=30.315|formula=waistMinus4/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-5|contents=]}} {{calculator|id=waistMinus5|default=76|size=5|type=plain|formula=waist-5}}cm&asymp;{{calculator|type=plain|id=waistMinus5Inch|default=29.921|formula=waistMinus5/2.54|decimals=3}}{{pprime}}</div>
<div class=otherValue>{{calculator button|for=waist|type=plain|formula=waist-10|contents=]}} {{calculator|id=waistMinus10|default=71|size=5|type=plain|formula=waist-10}}cm&asymp;{{calculator|type=plain|id=waistMinus10Inch|default=27.953|formula=waistMinus10/2.54|decimals=3}}{{pprime}}</div></div>
<!-- silhouetteRoundedBounded is an integer in the range 1, 18.
-->
|- class="silhouetteRow"
| class="prompt"|]
| colspan="2"|
{{calculator|id=showSilhouette1|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,1,1,0)}}<div class="whtr0d20">{{CSS image crop|oLeft= 0|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette2|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,2,1,0)}}<div class="silhouette2 whtr0d25">{{CSS image crop|oLeft= 50|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette3|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,3,1,0)}}<div class="whtr0d30">{{CSS image crop|oLeft=100|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette4|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,4,1,0)}}<div class="whtr0d35">{{CSS image crop|oLeft=150|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette5|type=checkbox|default=1|formula=ifequal(silhouetteRoundedBounded,5,1,0)}}<div class="whtr0d40">{{CSS image crop|oLeft=200|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette6|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,6,1,0)}}<div class="whtr0d45">{{CSS image crop|oLeft=250|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette7|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,7,1,0)}}<div class="whtr0d50">{{CSS image crop|oLeft=300|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette8|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,8,1,0)}}<div class="whtr0d55">{{CSS image crop|oLeft=350|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette9|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,9,1,0)}}<div class="whtr0d60">{{CSS image crop|oLeft=400|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette10|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,10,1,0)}}<div class="whtr0d65">{{CSS image crop|oLeft=450|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette11|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,11,1,0)}}<div class="whtr0d70">{{CSS image crop|oLeft=500|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette12|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,12,1,0)}}<div class="whtr0d75">{{CSS image crop|oLeft=550|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette13|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,13,1,0)}}<div class="whtr0d80">{{CSS image crop|oLeft=600|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette14|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,14,1,0)}}<div class="whtr0d85">{{CSS image crop|oLeft=650|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette15|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,15,1,0)}}<div class="whtr0d90">{{CSS image crop|oLeft=700|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette16|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,16,1,0)}}<div class="whtr0d95">{{CSS image crop|oLeft=750|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette17|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,17,1,0)}}<div class="whtr1d00">{{CSS image crop|oLeft=800|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
{{calculator|id=showSilhouette18|type=checkbox|default=0|formula=ifequal(silhouetteRoundedBounded,18,1,0)}}<div class="whtr1d05">{{CSS image crop|oLeft=850|cWidth=50|bSize=1000|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}</div>
|- |-
| class="prompt"|{{anchor|WhtrPrompt}}] | class="prompt" | ]
| colspan="3" | {{calculator|id=bri|default=2.46|type=plain|decimals=2|formula=364.2-365.5×pow(1-(pow(waistcm/6.28318,2)/pow(0.5×heightcm,2)),0.5)|NaN-text=Please come back after birth}}
| colspan="2"| {{calculator|id=waistFormula|formula=waist|default=81|type=plain}}/{{calculator|id=heightFormula|formula=height|default=180|type=plain}} {{calculator-hideifzero|formula=not(ifequal(whtr,whtrRounded))|starthidden=1|&asymp;}}{{calculator-hideifzero|formula=ifequal(whtr,whtrRounded)|&equals;}} {{calculator|id=whtr|default=0.45|type=number|formula=waist/height|step=0.025|min=0.2|max=2}}{{calculator|id=whtrRounded|default=0.45|type=hidden|formula=floor(whtr*100+0.5)/100}}{{calculator-hideifzero|formula=not(ifequal(whtr,whtrRounded))|starthidden=1| &asymp; {{calculator|id=whtrRounded2|default=0.45|type=plain|formula=whtrRounded|decimals=2}}}}
<div class="conversions">
{| class="wikitable"
|-
! WHtR
! colspan="2" | Waist for height {{calculator|default=180|type=plain|formula=height}}cm, {{calculator|type=plain|default=5|formula=floor(heightSelected/30.48)}}{{prime}}{{calculator|type=plain|default=11|formula=round(heightSelected/2.54-12*heightSelectedFeet0Dec)}}{{pprime}}

|- class="whtr1d00"
| {{calculator-hideifzero|formula=ifgreaterorequal(whtr,1.00)|starthidden=1|] {{calculator|default=1.00|type=plain|formula=whtrRounded|decimals=2}}}} {{calculator-hideifzero|formula=ifless(whtr,1.00)|{{calculator button|for=whtr|type=plain|formula=1.0|contents=]}} }}
|| {{CSS image crop|oLeft=176|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr1d00cm|default=180|type=plain|formula=round(height*1.00)}}cm&asymp;{{calculator|type=plain|id=waistWhtr1d00Inch|default=70.866|formula=waistWhtr1d00cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d90"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.90),ifless(whtr,1.00))|starthidden=1|] {{calculator|default=0.90|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.90),ifgreaterorequal(whtr,1.00))|{{calculator button|for=whtr|type=plain|formula=0.9|contents=]}}}}
|| {{CSS image crop|oLeft=154|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d90cm|default=162|type=plain|formula=round(height*0.90)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d90Inch|default=63.780|formula=waistWhtr0d90cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d80"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.80),ifless(whtr,0.90))|starthidden=1|] {{calculator|default=0.80|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.80),ifgreaterorequal(whtr,0.90))|{{calculator button|for=whtr|type=plain|formula=0.8|contents=]}}}}
|| {{CSS image crop|oLeft=132|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d80cm|default=144|type=plain|formula=round(height*0.80)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d80Inch|default=56.693|formula=waistWhtr0d80cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d70"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.70),ifless(whtr,0.80))|starthidden=1|] {{calculator|default=0.70|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.70),ifgreaterorequal(whtr,0.80))|{{calculator button|for=whtr|type=plain|formula=0.7|contents=]}}}}
|| {{CSS image crop|oLeft=110|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d70cm|default=126|type=plain|formula=round(height*0.70)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d70Inch|default=49.606|formula=waistWhtr0d70cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d60"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.60),ifless(whtr,0.70))|starthidden=1|] {{calculator|default=0.60|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.60),ifgreaterorequal(whtr,0.70))|{{calculator button|for=whtr|type=plain|formula=0.6|contents=]}}}}
|| {{CSS image crop|oLeft=88|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d60cm|default=108|type=plain|formula=round(height*0.60)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d60Inch|default=42.520|formula=waistWhtr0d60cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d50"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.50),ifless(whtr,0.60))|starthidden=1|] {{calculator|default=0.50|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.50),ifgreaterorequal(whtr,0.60))|{{calculator button|for=whtr|type=plain|formula=0.5|contents=]}}}}
|| {{CSS image crop|oLeft=66|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d50cm|default=90|type=plain|formula=round(height*0.50)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d50Inch|default=35.433|formula=waistWhtr0d50cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d45"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.45),ifless(whtr,0.50))|] {{calculator|default=0.45|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|starthidden=1|formula=or(ifless(whtr,0.45),ifgreaterorequal(whtr,0.50))|{{calculator button|for=whtr|type=plain|formula=0.45|contents=]}}}}
|| {{CSS image crop|oLeft=55|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d45cm|default=81|type=plain|formula=round(height*0.45)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d45Inch|default=31.890|formula=waistWhtr0d45cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d40"
| {{calculator-hideifzero|formula=and(ifgreaterorequal(whtr,0.40),ifless(whtr,0.45))|starthidden=1|] {{calculator|default=0.40|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=or(ifless(whtr,0.40),ifgreaterorequal(whtr,0.45))|{{calculator button|for=whtr|type=plain|formula=0.40|contents=]}}}}
|| {{CSS image crop|oLeft=44|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d40cm|default=72|type=plain|formula=round(height*0.40)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d40Inch|default=28.346|formula=waistWhtr0d40cm/2.54|decimals=3}}{{pprime}}

|- class="whtr0d30"
| {{calculator-hideifzero|formula=ifless(whtr,0.40)|starthidden=1|] {{calculator|default=0.30|type=plain|formula=whtrRounded|decimals=2}}}}{{calculator-hideifzero|formula=ifgreaterorequal(whtr,0.40)|{{calculator button|for=whtr|type=plain|formula=0.30|contents=]}}}}
|| {{CSS image crop|oLeft=22|cWidth=11|bSize=220|Location=center|Image=Waist_to_height_ratio_silhouettes.svg}}
|| {{calculator|id=waistWhtr0d30cm|default=54|type=plain|formula=round(height*0.30)}}cm&asymp;{{calculator|type=plain|id=waistWhtr0d30Inch|default=21.260|formula=waistWhtr0d30cm/2.54|decimals=3}}{{pprime}}
|}</div>
|- class="obscured"
| class="prompt"|rounded bounded<br>silhouette index,<br>hidden
| colspan="2"| {{calculator|id=silhouetteRoundedBounded|type=plain|default=5|formula=min(max(floor(silhouette),1),18)}}
|- class="obscured"
| class="prompt"|silhouette index,<br>hidden
| colspan="2"| {{calculator|id=silhouette|type=plain|default=5.876404494382022|formula=whtr*20-3}}
<!-- The checkboxes impact the radio buttons for the NICE (National_Institute_for_Health_and_Care_Excellence) health level categories.
minwhtr4: the minimum of 0.4 and whtr. For a whtr of 0.4494 it will be 0.4.
whtrLT4: a boolean, true if whtr < 0.4, so for 0.4494 it will be 0
whtrGE4: a boolean, true if 0.4 <= whtr, so for 0.4494 it will be 1

minwhtr5: the minimum of 0.5 and whtr. E.g. for a whtr of 0.4494 it will be 0.4494.
whtrGE5: a boolean, true if 0.5 <= whtr, so for 0.4494 it will be 0

minwhtr6: the minimum of 0.5 and whtr. E.g. for a whtr of 0.4494 it will be 0.4494.
whtrGE6: a boolean, true if 0.6 <= whtr, so for 0.4494 it will be 0.

These checkboxes are hidden, as they are intermediate results.
For a whtr of 7 the values will be:
whtrLT4: 0
whtrGE4: 1
whtrGE5: 1
whtrGE6: 1
-->
|- class="obscured"
! hidden
!<0.4 >=0.4
!>=0.5
!>=0.6
|- class="obscured"
!hidden
| {{calculator|id=minwhtr4|default=0.4|type=plain|formula=min(0.4,whtr)}}<br>{{calculator|id=whtrLT4|default=0|type=checkbox|formula=1-whtrGE4}}{{calculator|id=whtrGE4|default=1|type=checkbox|formula=ifequal(minwhtr4,0.4,1,0)}}
|{{calculator|id=minwhtr5|default=0.4494|type=plain|formula=min(0.5,whtr)}}<br>{{calculator|id=whtrGE5|default=0|type=checkbox|formula=ifequal(minwhtr5,0.5,1,0)}}| {{calculator|id=minwhtr6|default=0.4494|type=plain|formula=min(0.6,whtr)}}<br>{{calculator|id=whtrGE6|default=0|type=checkbox|formula=ifequal(minwhtr6,0.6,1,0)}}
{{calculator|id=waistNice0.4|type=hidden|default=72|formula=0.4*height}}{{calculator|id=waistNice0.5|type=hidden|default=90|formula=0.5*height}}{{calculator|id=waistNice0.6|type=hidden|default=108|formula=0.6*height}}
<!-- The radio buttons use the checkboxes whtrLT4, whtrGE4, minwhtr5, whtrGE5, whtrGE6 to select one NICE health category.
whtr_category_0: true if whtr < 0.4. For a whtr of 0.4494 it will be 0.
whtr_category_4: true if 0.4 <= whtr < 0.5. For a whtr of 0.4494 it will be 1.
whtr_category_5: true if 0.5 <= whtr < 0.6. For a whtr of 0.4494 it will be 0
whtr_category_6: true if 0.6 <= whtr. For a whtr of 0.4494 it will be 0
-->
|-
| class="prompt"|
]
| class="healthRisk" colspan="2"|
{{calculator|id=showRiskCategory_6|name=niceCategory|default=0|type=radio|formula=whtrGE6}}<div class="furtherIncreasedHealthRisk">{{calculator-hideifzero|formula=not(showRiskCategory_6)|0.6 &le; WHtR}}{{calculator-hideifzero|formula=showRiskCategory_6|starthidden=1|0.6 &le; {{calculator|default=99|type=plain|formula=whtrRounded|decimals=2}}}}: {{vanchor|furtherIncreasedHealthRisk|text=]}}</div>{{calculator|id=showRiskCategory_5|name=niceCategory|default=0|type=radio|formula=and(whtrGE5, not(whtrGE6))}}
<div class="increasedHealthRisk">
{{calculator-hideifzero|formula=showRiskCategory_5|starthidden=1|0.5 &le; {{calculator|default=99|type=plain|formula=whtrRounded|decimals=2}} &lt; 0.6}}{{calculator-hideifzero|formula=not(showRiskCategory_5)|0.5 &le; WHtR &lt; 0.6}}: {{vanchor|increasedHealthRisk|text=]}}</div>
{{calculator|id=showRiskCategory_4|name=niceCategory|default=1|type=radio|formula=and(whtrGE4, not(whtrGE5))}}<div class="healthy">{{calculator-hideifzero|formula=not(showRiskCategory_4)|starthidden=1|0.4 &le; WHtR &lt; 0.5}}{{calculator-hideifzero|formula=showRiskCategory_4|0.4 &le; {{calculator|default=0.45|type=plain|formula=whtrRounded|decimals=2}} &lt; 0.5}}: {{vanchor|healthy|text=]}}
</div>{{calculator|id=showRiskCategory_0|name=niceCategory|default=0|type=radio|formula=whtrLT4}}<div class="unspecifiedHealthRisk">
{{calculator-hideifzero|formula=not(showRiskCategory_0)|WHTR < 0.4}}{{calculator-hideifzero|formula=showRiskCategory_0|starthidden=1|{{calculator|default=99|type=plain|formula=whtrRounded|decimals=2}} &lt; 0.4}}: {{vanchor|unspecifiedHealthRisk|text=]}}</div>
|}<noinclude> |}<noinclude>
{{documentation}} {{documentation}}

Revision as of 11:05, 27 December 2024

Please select in your preferences: Enables javascript Calculator template to see a working calculator.
Body roundness calculator
Units Metric   Imperial
Height 160 cm 5 ft
3 in
Waist 72 cm 28 in
WHtR 0.45
BRI 2.46
Template documentation[view] [edit] [history] [purge]

Usage

This template uses template:Calculator body roundness based on

  • height
  • waist circumference.

Input can be in metric or imperial units.

  • The calculator converts cm to feet and inches
  • The calculator converts feet and inches to cm.

The template shows body roundness in two units:

  1. Waist to height ratio
  2. Body roundness index.

Used templates

The Body Roundness Calculator uses

The above documentation is transcluded from Template:Body roundness index/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template. Category: