Difference between revisions of "Template:Max/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "Returns the larger value from its 2 positional parameter. {{subst:Documentation/Example Table|{{Max|1|2}}|{{Max|3.5|4.5}}}}")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Returns the larger value from its 2 positional parameter.
 
Returns the larger value from its 2 positional parameter.
  
{| class="wikitable"
+
<!--The following line is generated by substitution: {{subst:Template:Documentation/Example Table|{{Max|1|2}}|{{Max|4.5|3.5}}}}-->
|+ Examples
+
<table class="wikitable"><tr><th>Code</th><th>Result</th></tr><tr><td><code><nowiki>{{Max|1|2}}</nowiki></code></td><td>{{Max|1|2}}</td></tr><tr><td><code><nowiki>{{Max|4.5|3.5}}</nowiki></code></td><td>{{Max|4.5|3.5}}</td></tr></table>
|-
 
! Code !! Result
 
<tr><td><code><nowiki>{{Max|1|2}}</nowiki></code></td><td>{{Max|1|2}}</td></tr><!--
 
-->{{#if:{{Max|3.5|4.5}}|<tr><td><code><nowiki>{{Max|3.5|4.5}}</nowiki></code></td><td>{{Max|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:02, 26 December 2024

Returns the larger value from its 2 positional parameter.

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