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 19:52, 26 September 2024 editDoc James (talk | contribs)Administrators312,283 editsNo edit summary← Previous edit Revision as of 03:40, 27 September 2024 edit undoBawolff (talk | contribs)Extended confirmed users2,740 edits Only show if gadget is enabled. Not sure if its best to hide just this, or the whole infoboxNext edit →
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:BMI calculator2/bmi.css"/> <templatestyles src="Template:BMI calculator2/bmi.css"/>
{| class="wikitable bmicalc" style="margin-left: auto; margin-right: auto; border: none;" {| class="wikitable bmicalc calculatorgadget-enabled" style="margin-left: auto; margin-right: auto; border: none;display:none"
|+ Calculator |+ Calculator
|- |-
| Units || {{calculator|id=metric|name=units|type=radio|default=1}} Metric {{calculator|id=imperial|name=units|type=radio|default=0}} Imperial<!-- replace with css :has selector once templatestyles supports--> | Units || {{calculator|id=metric|name=units|type=radio|default=1}} Metric {{calculator|id=imperial|name=units|type=radio|default=0}} Imperial<!-- replace with css :has selector once templatestyles supports-->
|- |-
| Waist || {{calculator|id=metric1|type=checkbox|formula=metric|style=display:none|default=1}}<span class="ifmetric">{{calculator|id=waistcm|size=3}} cm</span><span class="ifimperial">{{calculator|id=waistinch|size=3}} inches</span> | Waist || {{calculator|id=metric1|type=checkbox|formula=metric|style=display:none|default=1}}<span class="ifmetric">{{calculator|id=waistcm|size=3|formula=waistinch*2.54}} cm</span><span class="ifimperial">{{calculator|id=waistinch|size=3|formula=waistcm/2.54}} inches</span>
|- |-
| Height || {{calculator|id=metric2|type=checkbox|formula=metric|style=display:none|default=1}}<span class="ifmetric">{{calculator|id=heightcm|size=3}} cm</span><span class="ifimperial">{{calculator|id=heightfeet|size=2}} feet {{calculator|id=heightinches|size=3|min=0|max=11}} inches</span> | Height || {{calculator|id=metric2|type=checkbox|formula=metric|style=display:none|default=1}}<span class="ifmetric">{{calculator|id=heightcm|size=3|formula=(heightfeet*12*2.54+heightinches*2.54)}} cm</span><span class="ifimperial">{{calculator|id=heightfeet|size=2|formula=floor(heightcm/(12*2.54))}} feet {{calculator|id=heightinches|size=3|min=0|max=11|default=0|formula=(heightcm/(2.54)-12*floor(heightcm/(12*2.54)))}} inches</span>
|- |-
| BRI||'''{{calculator|id=brimetric|type=plain|decimals=2|formula=ifzero(imperial,(364.2-365.5×pow(1-(pow(waistcm/6.28318,2)/pow(0.5×heightcm,2)),0.5)),(364.2-365.5×pow(1-(pow(waistinch/2.4737,2)/pow(0.5×(heightfeet*30.48+heightinches*2.54),2)),0.5)))|style=min-width:3ch;display:inline-block}}''' | BRI||'''{{calculator|id=brimetric|type=plain|decimals=2|formula=ifzero(imperial,(364.2-365.5×pow(1-(pow(waistcm/6.28318,2)/pow(0.5×heightcm,2)),0.5)),(364.2-365.5×pow(1-(pow(waistinch/2.4737,2)/pow(0.5×(heightfeet*30.48+heightinches*2.54),2)),0.5)))|NaN-text=&#32;|style=min-width:3ch;display:inline-block}}'''
|}<noinclude> |}<noinclude>
{{documentation}} {{documentation}}

Revision as of 03:40, 27 September 2024

Page Template:BMI calculator2/bmi.css has no content.

Calculator
Units 1 Metric 0 Imperial
Waist 1 cm inches
Height 1 cm feet 0 inches
BRI
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. Categories: