Difference between revisions of "Template:Z-Number"

From RimWorld Wiki
Jump to navigation Jump to search
(If we don't know what it does, its hard to call it obsolete)
(Documentation. But also suggested deletion)
 
Line 1: Line 1:
<noinclude>{{Obsolete|reason=unused}} {{Documentation wanted}}</noinclude>{{#expr: ({{{1|0}}} - {{{2|0}}}) / {{{3|1}}}}}
+
<includeonly>{{#expr: ({{{1|0}}} - {{{2|0}}}) / {{{3|1}}}}}</includeonly><noinclude>
 +
{{Documentation|content=
 +
{{Delete|reason=Unused. No interesting version history. Only consists of a very simple formula that doesn't need its own template. --[[User:Ickputzdirwech|Ickputzdirwech]] ([[User talk:Ickputzdirwech|talk]]) 22:58, 25 April 2023 (UTC)}}
 +
{{Obsolete|reason=unused}}
 +
== Summary ==
 +
This template takes the following three optional parameters:
 +
 
 +
'''1''' : A number. Default = 0 (let's call it x)
 +
'''2''' : A number. Default = 0 (let's call it y)
 +
'''3''' : A number. Default = 1 (let's call it z)
 +
 
 +
This template calculates:
 +
 
 +
(x - y) / z
 +
 
 +
== Examples ==
 +
The default case <code><nowiki>{{Z-Number}}</nowiki></code> results in: {{Z-Number}}
 +
 
 +
<code><nowiki>{{Z-Number|5|3|7}</nowiki></code> results in: {{Z-Number|5|3|7}}
 +
 
 +
[[Category:Math templates]]
 +
}}</noinclude>

Latest revision as of 22:59, 25 April 2023

Documentation icon Template documentation

Summary

This template takes the following three optional parameters:

1 : A number. Default = 0 (let's call it x)
2 : A number. Default = 0 (let's call it y)
3 : A number. Default = 1 (let's call it z)

This template calculates:

(x - y) / z

Examples

The default case {{Z-Number}} results in: 0

{{Z-Number|5|3|7} results in: 0.28571428571429