Template:Modifier: Difference between revisions

51 bytes added ,  21:58, 26 October 2020
m
some fix for None input
(Created page with "<includeonly>{{#expr: floor(({{{1|6}}}-16)/2)}}</includeonly><noinclude>Category:Templates Returns the modifier for a specific number. Usage: <syntaxhighlight lang="xml...")
 
m (some fix for None input)
 
Line 1: Line 1:
<includeonly>{{#expr: floor(({{{1|6}}}-16)/2)}}</includeonly><noinclude>[[Category:Templates]]  
<includeonly>{{#vardefine:__MODIFIER__|{{#ifeq: {{{1|}}}| None | 16 | {{{1|16}}} }}}}{{#expr: floor(({{#var:__MODIFIER__|6}}-16)/2)}}</includeonly><noinclude>[[Category:Templates]]  
Returns the modifier for a specific number. Usage:  
Returns the modifier for a specific number. Usage:  


<syntaxhighlight lang="xml">
<pre>
{{modifier|18}}
{{modifier|18}}
</syntaxhighlight>
</pre>
{{modifier|18}}
{{modifier|18}}
</noinclude>
</noinclude>