Jump to content

使用者:SkyEye FAST/Template/Age/doc

這個模板可以計算一個人的較精確年齡。

鑑於本人能力有限,且由於閏年等原因導致的計算誤差,會導致四捨五入的結果出現偏差。關於這一點而產生的結果錯誤請勿在意。

如果你有能力且希望能夠使結果更加精確,可以變更這個模板。

{{{m}}}或{{{mode}}} 模式,可設定為123
{{{1}}}或{{{year1}}} 出生年份。
{{{2}}}或{{{month1}}} 出生月份。
{{{3}}}或{{{day1}}} 出生日。

用法

設定mode=3時,需要填入年、月、日,將會精確至小數點後兩位。

設定mode=2時,需要填入年、月,將會精確至小數點後一位。

設定mode=1時,需要填入年,將會精確至個位。

示例

{{User:SkyEye FAST/Template/Age|mode=3|2007|1|5}}會顯示為~16.92歲。

{{User:SkyEye FAST/Template/Age|mode=2|2001|2}}會顯示為~22.8歲。

Cookies help us deliver our services. By using our services, you agree to our use of cookies.