Template:AgeFull: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (oops, that's the WP template name)
m (ah, using relative paths causes the transcluding page to look for those pages relative to itself)
Line 2: Line 2:
  |{{#if:{{{month|}}}
  |{{#if:{{{month|}}}
   |{{#if:{{{day|}}}
   |{{#if:{{{day|}}}
   |{{/display
   |{{AgeFull/display
     |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}}
     |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}}
     |0
     |0
Line 39: Line 39:
     |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
     |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
     |0 years
     |0 years
     |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{/display
     |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{AgeFull/display
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
       }}
       }}
Line 46: Line 46:
     |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
     |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
       |<!--null value-->
       |<!--null value-->
       |{{/display
       |{{AgeFull/display
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
       }} and
       }} and
       }} {{#expr:{{CURRENTMONTH}}-{{{month}}}-1}}&nbsp;or {{/display
       }} {{#expr:{{CURRENTMONTH}}-{{{month}}}-1}}&nbsp;or {{AgeFull/display
       |months={{#expr:{{CURRENTMONTH}}-{{{month}}}}}
       |months={{#expr:{{CURRENTMONTH}}-{{{month}}}}}
       }}
       }}
     |{{#ifexpr:{{CURRENTYEAR}}={{#expr:{{{year}}}+1}}
     |{{#ifexpr:{{CURRENTYEAR}}={{#expr:{{{year}}}+1}}
       |<!--null value-->
       |<!--null value-->
       |{{/display
       |{{AgeFull/display
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-1}}
       |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-1}}
       }} and
       }} and
Line 63: Line 63:
   |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
   |{{#ifexpr:{{CURRENTYEAR}}={{{year}}}
   |0&nbsp;years
   |0&nbsp;years
   |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}}&nbsp;or {{/display
   |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}}&nbsp;or {{AgeFull/display
     |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
     |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}}
     }}
     }}

Revision as of 17:06, 12 June 2013

some time