模板:Age

出自Terraria Wiki
跳至導覽 跳至搜尋
Important.svg
CAUTION: Terraria code is complex!!!

If you want to use this code on your wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!

Remember, content on a wiki is more important than fancy formatting.
Template-info.svg 文檔 以下文檔來自Template:Age/doc。(編輯 | 歷史

Description

This template provides automatically generated age. This template used in {{User infobox}} at Age section. The template can be used for the difference between two dates in years.

Usage

All parametres is important. Template can be written as {{age|YYYY|MM|DD}}. It also can be written as {{age|YYYY|M|D}} if month of day of birth less than 10.

First unnamed parameter

YYYY (where YYYY is year of birth)

Second unnamed parameter

MM (where MM is month of birth)

Thirt unnamed parameter

DD (where DD is day of birth)

Examples

  • {{age|1900|04|23}} --> 125 (125 years between 23 April, 1900 and 14 7月, 2025)
  • {{age|1997|12|15}} --> 27
  • {{age|67|1|3}} --> 1958 (3rd of March, 67 AD)
  • {{age|2016|09|31}} --> 8 (if date is'nt began that template generate a negative number)