Difference between revisions of "Template:Min"

From geofiction
Jump to navigation Jump to search
(Created page with "<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! -->{{ #If:{{{1|}}} | {{ #If:{{{2|}}} | {{ #If:{{{3|}}} | {{#ifexpr: {{{1}}} < {{{2}}} | {{#ifexpr: {{{1}}} < {...")
 
m
 
Line 1: Line 1:
<!-- Please DO NOT EDIT! Please contact User:Mstr for any edits! -->{{ #If:{{{1|}}} | {{ #If:{{{2|}}} | {{ #If:{{{3|}}} | {{#ifexpr: {{{1}}} < {{{2}}} | {{#ifexpr: {{{1}}} < {{{3}}} | {{{1}}} | {{{3}}} }} | {{#ifexpr: {{{2}}} < {{{3}}} | {{{2}}} | {{{3}}} }} }} | {{#ifexpr: {{{1}}} < {{{2}}} | {{{1}}} | {{{2}}} }} }} | {{{1}}} }} }}<noinclude>
+
<includeonly>{{#if:{{{1|}}}|{{ #if:{{{2|}}}|{{ #if:{{{3|}}}|{{#ifexpr:{{{1}}}< {{{2}}}|{{#ifexpr:{{{1}}}<{{{3}}}|{{{1}}}|{{{3}}}}}|{{#ifexpr:{{{2}}}<{{{3}}}|{{{2}}}|{{{3}}}}}}}|{{#ifexpr:{{{1}}}<{{{2}}}|{{{1}}}|{{{2}}}}}}}|{{{1}}}}}}}</includeonly><noinclude><!--
 +
    ____                                              __          __  _           
 +
  / __ \ ____  _____ __  __ ____ ___  ___  ____  / /_ ____ _ / /_ (_)____  ____
 +
  / / / // __ \ / ___// / / // __ `__ \ / _ \ / __ \ / __// __ `// __// // __ \ / __ \
 +
/ /_/ // /_/ // /__ / /_/ // / / / / //  __// / / // /_ / /_/ // /_ / // /_/ // / / /
 +
/_____/ \____/ \___/ \__,_//_/ /_/ /_/ \___//_/ /_/ \__/ \__,_/ \__//_/ \____//_/ /_/
 +
                                                                                     
 +
-->==Purpose==
 +
Determin minimum value out of three values.
  
=Example I=
+
==Usage==
 +
<pre>{{Min|a|b|c}}</pre>
 +
 
 +
==Examples==
 +
<pre>{{Min|100}}</pre>
 
{{Min|100}}
 
{{Min|100}}
  
{{Min|100|200}} {{Min|200|100}}
+
<pre>{{Min|100|200}}</pre>
 +
{{Min|100|200}}
 +
 
 +
<pre>{{Min|200|100}}</pre>
 +
{{Min|200|100}}
 +
 
 +
<pre>{{Min|100|200|300}}</pre>
 +
{{Min|100|200|300}}
 +
 
 +
<pre>{{Min|100|300|200}}</pre>
 +
{{Min|100|300|200}}
 +
 
 +
<pre>{{Min|200|100|300}}</pre>
 +
{{Min|200|100|300}}
 +
 
 +
<pre>{{Min|300|100|200}}</pre>
 +
{{Min|300|100|200}}
 +
 
 +
<pre>{{Min|200|300|100}}</pre>
 +
{{Min|200|300|100}}
  
{{Min|100|200|300}} {{Min|100|300|200}} {{Min|200|100|300}} {{Min|300|100|200}} {{Min|200|300|100}} {{Min|300|200|100}}
+
<pre>{{Min|300|200|100}}</pre>
 +
{{Min|300|200|100}}
  
[[Category:Templates/Base]]
+
[[Category:Calculation templates]]</noinclude>
[[Category:Templates User:MStr]]</noinclude>
 

Latest revision as of 18:38, 14 September 2022

Purpose

Determin minimum value out of three values.

Usage

{{Min|a|b|c}}

Examples

{{Min|100}}

100

{{Min|100|200}}

100

{{Min|200|100}}

100

{{Min|100|200|300}}

100

{{Min|100|300|200}}

100

{{Min|200|100|300}}

100

{{Min|300|100|200}}

100

{{Min|200|300|100}}

100

{{Min|300|200|100}}

100