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
m Reverted edits by PeterHoliper03 (talk) to last revision by Jarekt
mNo edit summary
 
(2 intermediate revisions by 2 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|}}}
Line 12: Line 12:
  |#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.