Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Years since: Difference between revisions

Template page
No edit summary
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 4: Line 4:
c) more than max -> max
c) more than max -> max
d) less than min -> min
d) less than min -> min
e) number inbetween min and max. {{#expr: trunc( ({{CURRENTYEAR}}-{{{1}}}) / {{{mod|1}}}) * {{{mod|1}}} }} calculates number of years since {{{1}}} rounded down to a multiple of mod
e) number in between min and max. {{#expr: trunc( ({{CURRENTYEAR}}-{{{1}}}) / {{{mod|1}}}) * {{{mod|1}}} }} calculates number of years since {{{1}}} rounded down to a multiple of mod
-->{{#switch:1
-->{{#switch:1
  |{{#if:  {{{1|}}} |0|1}}                                         = {{error|}}  
  |{{#if:  {{{1|}}} |0|1}}                                           = {{{error|}}}
  |{{IfNum| {{{1}}} |0|1}}                                         = {{error|}}
  |{{IfNum| {{#expr:{{{1}}} }} |0|1}}                                 = {{{error|}}}
  |{{#expr: {{CURRENTYEAR}}-{{{1}}} > {{{max|{{CURRENTYEAR}} }}} }} = {{{max|{{CURRENTYEAR}} }}}
  |{{#expr: {{CURRENTYEAR}}-({{{1}}}) >= {{{max|{{CURRENTYEAR}} }}} }} = {{{max|{{CURRENTYEAR}} }}}
  |{{#expr: {{CURRENTYEAR}}-{{{1}}} < {{{min|0}}} }}                = {{{min|0}}}
  |{{#expr: {{CURRENTYEAR}}-({{{1}}}) <= {{{min|0}}} }}                = {{{min|0}}}
  |#default = {{#expr: trunc( ({{CURRENTYEAR}}-{{{1}}}) / {{{mod|1}}}) * {{{mod|1}}} }}  
  |#default = {{#expr: trunc( ({{CURRENTYEAR}}-({{{1}}})) / {{{mod|1}}}) * {{{mod|1}}} }}  
}}<noinclude>
}}<noinclude>
{{heavily used template}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.