NICE GIRL Project! Wiki
Advertisement

Given input of {{Age|BirthYear|BirthMonth|BirthDay}} This age template does a pretty simple calculation that goes something like...

(Current Year - Birth year) - 1 if current month is before birth month or it's the birth month and current day is before birth day

Two things of note:

  1. Rather than using the standard CURRENTDAY, CURRENTMONTH, and CURRENTYEAR magic words, it uses Template:CURRENTDAYJST, Template:CURRENTMONTHJST, and Template:CURRENTYEARJST to get the proper figures in Japan time.
  2. If you don't want the current age but age at a predetermined target point, give input in the form of {{Age|BirthYear|BirthMonth|BirthDay|TargetYear|TargetMonth|TargetDay}}
Advertisement