Review https://www.mediawiki.org/wiki/Extension:LastModified.
This one is actually for Meta. Currently we have a few pages (like some in the Tech namespace) where it says "Last modified" and it has to be updated manually. This would make it easier.
Note: the code is JS.