Difference between revisions of "Template:Min/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "Returns the smaller value from its 2 positional parameter. {{subst:Documentation/Example Table|{{Min|1|2}}|{{Min|3.5|4.5}}}}")
 
 
Line 1: Line 1:
 
Returns the smaller value from its 2 positional parameter.
 
Returns the smaller value from its 2 positional parameter.
  
{| class="wikitable"
+
<!--The following line is generated by substitution: {{subst:Template:Documentation/Example Table|{{Min|1|2}}|{{Min|4.5|3.5}}}}-->
|+ Examples
+
<table class="wikitable"><tr><th>Code</th><th>Result</th></tr><tr><td><code><nowiki>{{Min|1|2}}</nowiki></code></td><td>{{Min|1|2}}</td></tr><tr><td><code><nowiki>{{Min|4.5|3.5}}</nowiki></code></td><td>{{Min|4.5|3.5}}</td></tr></table>
|-
 
! Code !! Result
 
<tr><td><code><nowiki>{{Min|1|2}}</nowiki></code></td><td>{{Min|1|2}}</td></tr><!--
 
-->{{#if:{{Min|3.5|4.5}}|<tr><td><code><nowiki>{{Min|3.5|4.5}}</nowiki></code></td><td>{{Min|3.5|4.5}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{3}}}</nowiki></code></td><td>{{{3}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{4}}}</nowiki></code></td><td>{{{4}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{5}}}</nowiki></code></td><td>{{{5}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{6}}}</nowiki></code></td><td>{{{6}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{7}}}</nowiki></code></td><td>{{{7}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{8}}}</nowiki></code></td><td>{{{8}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{9}}}</nowiki></code></td><td>{{{9}}}</td></tr>}}<!--
 
-->{{#if:|<tr><td><code><nowiki>{{{10}}}</nowiki></code></td><td>{{{10}}}</td></tr>}}
 
|}
 

Latest revision as of 11:03, 26 December 2024

Returns the smaller value from its 2 positional parameter.

CodeResult
{{Min|1|2}}1
{{Min|4.5|3.5}}3.5