Module:Date Stuff: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 51: Line 51:
   birthDate = frame.args[1]
   birthDate = frame.args[1]
   currentDate = frame.args[2]
   currentDate = frame.args[2]
  status = frame.args[3]


   --Converts the first given date to a long date
   --Converts the first given date to a long date
Line 87: Line 88:


   --Takes the first date and adds the age to the end
   --Takes the first date and adds the age to the end
   dateAge = convertedDate.." (age "..age..")"
   if status == "alive" then
    dateAge = convertedDate.." (age "..age..")"
  elseif status == "dead" then
    dateAge = convertedDate.." (age "..aged..")"
  else
    error("Invalid Status")
  end
   return dateAge
   return dateAge
end
end


return p
return p