Module:Birthday:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第65行: | 第65行: | ||
if currentMonth < birthMonth or (currentMonth == birthMonth and currentDay < birthDay) then | if currentMonth < birthMonth or (currentMonth == birthMonth and currentDay < birthDay) then | ||
age = age - 1 | age = age - 1 | ||
end | end | ||
return string.format("%s (% | return string.format("%s (%d岁)", dateString, age) | ||
else | else | ||
-- 如果月份是英文,且缺失年份或日期 | -- 如果月份是英文,且缺失年份或日期 | ||
第75行: | 第74行: | ||
return string.format("%s, %d", birthMonthInput, birthYear) -- 仅年份 | return string.format("%s, %d", birthMonthInput, birthYear) -- 仅年份 | ||
elseif birthDay then | elseif birthDay then | ||
return string.format("%s % | return string.format("%s %d日", birthMonthInput, birthDay) -- 仅日期 | ||
else | else | ||
return string.format("%s", birthMonthInput) -- 仅月份 | return string.format("%s", birthMonthInput) -- 仅月份 |