Difference between revisions of "Template:User Wiki age"

From Team Fortress Wiki
Jump to: navigation, search
(Even purtyer)
(Update to use Age module)
Line 5: Line 5:
 
| id-fc    = #fff
 
| id-fc    = #fff
 
| id-s    = 15
 
| id-s    = 15
| info    = <small>''As of {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}},''<br /></small>I have been a [[Main Page|TF2 Wiki member]] for <!--
+
| info    = <small>''As of {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}},''<br /></small>I have been a [[Main Page|TF2 Wiki member]] for {{#invoke:Age|age_ymd|{{{year|2011}}}|{{{month|2}}}|{{{day|12}}}}}.
//-->{{#expr:{{CURRENTYEAR}}-{{{year|2011}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month|03}}}
 
  |0
 
  |{{#ifexpr:{{CURRENTMONTH}}<{{{month|02}}}
 
  |1
 
  |{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
    |0
 
    |1
 
  }}
 
  }}
 
}}}} {{#ifexpr: {{#expr: {{CURRENTYEAR}}-{{{year|2011}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month|03}}}
 
  |0
 
  |{{#ifexpr:{{CURRENTMONTH}}<{{{month|02}}}
 
  |1
 
  |{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
    |0
 
    |1
 
  }}
 
  }}
 
}}}} != 1 | years | year}}, <!--
 
//-->{{#expr:{{CURRENTMONTH}}-{{{month|2}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
  |{{#ifexpr:{{CURRENTMONTH}}>={{{month|2}}}
 
  |0
 
  |12
 
  }}
 
  |{{#ifexpr:{{CURRENTMONTH}}>{{{month|2}}}
 
  |-1
 
  |11
 
  }}
 
}}}} <!--
 
//-->{{#ifexpr: {{#expr:{{CURRENTMONTH}}-{{{month|2}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
  |{{#ifexpr:{{CURRENTMONTH}}>={{{month|2}}}
 
  |0
 
  |12
 
  }}
 
  |{{#ifexpr:{{CURRENTMONTH}}>{{{month|2}}}
 
  |-1
 
  |11
 
  }}
 
}}}} != 1 | months | month}}, <!--
 
//-->and {{#expr:{{CURRENTDAY}}-{{{day|12}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
  |0
 
  |{{#switch:{{CURRENTMONTH}}
 
  |5|7|10|12=30
 
  |1|2|4|6|8|9|11=31
 
  |3={{#ifexpr:{{CURRENTYEAR}} mod 4=0
 
    |29
 
    |28
 
  }}
 
  }}
 
}}}} {{#ifexpr: {{#expr:{{CURRENTDAY}}-{{{day|12}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|12}}}
 
  |0
 
  |{{#switch:{{CURRENTMONTH}}
 
  |5|7|10|12=30
 
  |1|2|4|6|8|9|11=31
 
  |3={{#ifexpr:{{CURRENTYEAR}} mod 4=0
 
    |29
 
    |28
 
  }}
 
  }}
 
}}}} != 1 | days | day}}.
 
 
| info-c  = #EECFA1
 
| info-c  = #EECFA1
 
| info-p  = 2px 4px
 
| info-p  = 2px 4px
Line 71: Line 11:
  
 
<noinclude>
 
<noinclude>
 +
{{Lua|Age}}
 
{{doc begin}}
 
{{doc begin}}
 
__TOC__
 
__TOC__

Revision as of 04:25, 21 November 2013

Dead Heat Icon.png As of May 1, 2024,
I have been a TF2 Wiki member for 13 years, 2 months, 17 days.


Documentation for User Wiki age

Usage

Sample code Resulting infobox
{{User Wiki age|day=12|month=02|year=2011}}
Dead Heat Icon.png As of 1 May, 2024,
I have been a Team Fortress Wiki member for 13 years, 2 months, 17 days (since 12 February, 2011).


{{User Wiki age|year=2011|month=02|day=12}}
Dead Heat Icon.png As of 1 May, 2024,
I have been a Team Fortress Wiki member for 13 years, 2 months, 17 days (since 12 February, 2011).


{{User Wiki age|year=2011|month=02|day=12|link=true}}
Dead Heat Icon.png As of 1 May, 2024,
I have been a Team Fortress Wiki member for 13 years, 2 months, 17 days (since 12 February, 2011).


{{User Wiki age|day=12|month=02|year=2011|link=true}}
Dead Heat Icon.png As of 1 May, 2024,
I have been a Team Fortress Wiki member for 13 years, 2 months, 17 days (since 12 February, 2011).