Template:Height: Difference between revisions

From Pornopedia, the sexy encyclopedia
Till Kraemer (talk | contribs)
m Protected "Template:Height" ([edit=sysop] (indefinite) [move=sysop] (indefinite))
Till Kraemer (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#ifexpr:({{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|1|0}} AND ({{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|1|0}} OR {{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}|1|0}}))|<font color="red">Error: please specify only imperial or only metric units</font>|{{{{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|cm in ft in|ft in cm}}|frac={{{frac|2}}}|abbr={{{abbr|yes}}}|wiki={{{wiki|no}}}|precision={{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|{{{precision|1}}}|{{{precision|0}}}}}|{{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centmetres|{{{cm|}}}}}}}}}}}}}}}|{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm}}}}}}}}}}}}}}}}}{{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|{{{foot|{{{feet|{{{ft}}}}}}}}}}}{{#ifexpr:({{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}|1|0}} AND {{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|0|1}})|0}}|{{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|{{{inch|{{{inches|{{{in|0}}}}}}}}}}}{{#ifexpr:{{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|0|1}} AND {{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|0|1}}|{{{inch|{{{inches|{{{in|0}}}}}}}}}}}}}}}</includeonly><noinclude>
{{#switch:{{#if:{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|1|0}}{{#if:{{{meter|{{{meters|{{{metre|{{{metres|{{{m|}}}}}}}}}}}}}}}|1|0}}{{#if:{{{foot|{{{feet|{{{ft|}}}}}}}}}|1|0}}{{#if:{{{inch|{{{inches|{{{in|}}}}}}}}}|1|0}}
|1000={{convert|{{{centimeter|{{{centimeters|{{{centimetre|{{{centimetres|{{{cm|}}}}}}}}}}}}}}}|cm|ftin|frac={{#ifeq:{{{precision}}}|0||{{{frac|2}}}}}|abbr={{#switch:{{{abbr}}}|no=off|mos=def|#default=on}}|lk={{#ifeq:{{{wiki|}}}|yes|on|off}}|{{{precision|1}}} }}
|0100={{convert|{{{meter|{{{meters|{{{metre|{{{metres|{{{m}}}}}}}}}}}}}}}|m|ftin|frac={{#ifeq:{{{precision}}}|0||{{{frac|2}}}}}|abbr={{#switch:{{{abbr}}}|no=off|mos=def|#default=on}}|lk={{#ifeq:{{{wiki|}}}|yes|on|off}}|{{{precision|1}}} }}
|0011={{convert|{{{foot|{{{feet|{{{ft|}}}}}}}}}|ft|{{{inch|{{{inches|{{{in|}}}}}}}}}|in|{{#ifeq:{{{out|}}}|cm|cm|m}}|abbr={{#switch:{{{abbr}}}|no=off|mos=def|#default=on}}|lk={{#ifeq:{{{wiki|}}}|yes|on|off}}|{{#if:{{{precision|}}}|{{{precision}}}|{{#ifeq:{{{out|}}}|cm|0|2}}}} }}
|0010={{convert|{{{foot|{{{feet|{{{ft|}}}}}}}}}|ft|0|in|{{#ifeq:{{{out|}}}|cm|cm|m}}|abbr={{#switch:{{{abbr}}}|no=off|mos=def|#default=on}}|lk={{#ifeq:{{{wiki|}}}|yes|on|off}}|{{#if:{{{precision|}}}|{{{precision}}}|{{#ifeq:{{{out|}}}|cm|0|2}}}} }}
|0001={{convert|0|ft|{{{inch|{{{inches|{{{in|}}}}}}}}}|in|{{#ifeq:{{{out|}}}|cm|cm|m}}|abbr={{#switch:{{{abbr}}}|no=off|mos=def|#default=on}}|lk={{#ifeq:{{{wiki|}}}|yes|on|off}}|{{#if:{{{precision|}}}|{{{precision}}}|{{#ifeq:{{{out|}}}|cm|0|2}}}} }}
|0000=
|#default={{Error|Error: please specify height using only one type of units}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using height with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Height]] with unknown parameter "_VALUE_"|ignoreblank=y| abbr | centimeter | centimeters | centimetre | centimetres | cm | feet | foot | frac | ft | in | inch | inches | m | meter | meters | metre | metres | out | precision | wiki | {{#ifeq:{{{1}}}|0|1|_NULLPARAMETER_}}
}}{{#ifeq:{{{1}}}|0|{{main other|[[Category:Pages using height with 1 equal 0]]}}
}}</includeonly><noinclude>
* <code><nowiki>{{Height|cm=180}}</nowiki></code> (results in ''180 cm (5 ft 11 in)'')
* <code><nowiki>{{Height|cm=180}}</nowiki></code> (results in ''180 cm (5 ft 11 in)'')



Revision as of 18:04, 7 December 2021

</includeonly>

  • {{Height|cm=180}} (results in 180 cm (5 ft 11 in))
  • {{Height|ft=5|in=11}} (results also in 180 cm (5 ft 11 in))