Help us get to over 8,767 articles in 2025.
If you know of a magician not listed in MagicPedia, start a New Biography for them. Contact us at magicpediahelp@gmail.com
Template:Age2: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#explode:{{{4}}}| |0}} | |||
{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }} | |||
- | |||
({{{1}}}) | |||
- | |||
( | |||
( {{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }}|{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }} }}|{{CURRENTMONTH}}) | |||
< | |||
({{MONTHNUMBER|{{#explode:{{{2}}}| |0}}}}) | |||
or | |||
({{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }}|{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }} }}|{{CURRENTMONTH}}) | |||
= | |||
({{MONTHNUMBER|{{#explode:{{{2}}}| |0}} }}) | |||
and | |||
({{#if:{{#explode:{{#explode:{{{4}}}| |1}}|,|0}}|{{#explode:{{#explode:{{{4}}}| |1}}|,|0}}}}|{{CURRENTDAY}}) | |||
< | |||
({{#explode:{{#explode:{{{2}}}| |1}}|,|0}}) | |||
) | |||
<includeonly>{{#expr:({{{3|{{CURRENTYEAR}}}}}) | <includeonly>{{#expr:({{{3|{{CURRENTYEAR}}}}}) | ||
- | - | ||
| Line 4: | Line 26: | ||
- | - | ||
( | ( | ||
( {{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} | ( {{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }}|{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }} }}|{{CURRENTMONTH}}) | ||
< | < | ||
({{MONTHNUMBER|{{#explode:{{{2}}}| |0}}}}) | ({{MONTHNUMBER|{{#explode:{{{2}}}| |0}}}}) | ||
or | or | ||
({{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} | ({{#if:{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }}|{{MONTHNUMBER|{{#explode:{{{4}}}| |0}} }} }}|{{CURRENTMONTH}}) | ||
= | = | ||
({{MONTHNUMBER|{{#explode:{{{2}}}| |0}} }}) | ({{MONTHNUMBER|{{#explode:{{{2}}}| |0}} }}) | ||
and | and | ||
({{#if:{{#explode:{{#explode:{{{4}}}| |1}}|,|0 | ({{#if:{{#explode:{{#explode:{{{4}}}| |1}}|,|0}}|{{#explode:{{#explode:{{{4}}}| |1}}|,|0}}}}|{{CURRENTDAY}}) | ||
< | < | ||
({{#explode:{{#explode:{{{2}}}| |1}}|,|0}}) | ({{#explode:{{#explode:{{{2}}}| |1}}|,|0}}) | ||
Revision as of 13:16, 19 May 2012
{{{4}}}
Expression error: Unrecognized punctuation character "{".
- ({{{1}}}) - (
( Expression error: Unrecognized punctuation character "{".|11)
<
(Expression error: Unrecognized punctuation character "{".)
or
(Expression error: Unrecognized punctuation character "{".|11)
=
(Expression error: Unrecognized punctuation character "{".)
and
(|22)
<
()
)
This template returns the number of full years between two specified dates. If the second set of parameters is not included, it will return the number of full years between a specified date and today's date. Syntax:
- {{age2|year1|month1 day1|year2|month2 day2}} or :{{age2|year1|month1 day1}}
Examples:
- {{age2|1962|July 23|2003|July 14}} returns "July
7
- (1962) - (
( 7|11) < (7) or (7|11) = (7) and (14|22) < (23) )
Expression error: Unclosed bracket."
- {{age2|1900|July 23}} returns "{{{4}}}
Expression error: Unrecognized punctuation character "{".
- (1900) - (
( Expression error: Unrecognized punctuation character "{".|11)
<
(7)
or
(Expression error: Unrecognized punctuation character "{".|11)
=
(7)
and
(|22)
<
(23)
)
Expression error: Unexpected < operator."
When using this template to calculate a person's age at death or a person's age on a specified date (rather than the person's current age), please substitute it into the page.
- Example: {{subst:age2|1989|July 23|2003|July 14}}