This page is a translated version of the page Extension:LastModified and the translation is 58% complete.
OOjs UI icon advanced-invert.svg
发布状态: 稳定版
LastModified in English
实现 特殊页面
描述 Provides a Last modified date for wiki articles
作者 Jeremy Postlethwaite (Jpostlethwaite讨论)
最新版本 continuous updates
MediaWiki >= 1.29.0
许可协议 GNU通用公眾授權條款2.0或更新版本


问题 尚未完成的工作 · 回報錯誤

The LastModified extension displays text on the page showing the last modified page time. See also Timestamp position modification . This extension was created during Tech Days 2011 at the San Francisco Wikimedia office.


Using the $wgLastModifiedRange configuration parameter, you can change the display range (or timelimit) used by the extension. For example, if you only want to display the message for articles that were updated less than 30 days ago, set this value to 2. This will display a message like: "Last updated 20 days ago." You will not see this message for articles that were modified more than 30 days ago. The parameter only accepts an integer value. Here are the options available:

0 Yes Yes Yes Yes Yes Yes
1 No Yes Yes Yes Yes Yes
2 No No Yes Yes Yes Yes
3 小时 No No No Yes Yes Yes
4 分钟 No No No No Yes Yes
5 No No No No No Yes

The default used by the extension is "0".


  • 下载文件,并将其放置在您extensions/文件夹中的LastModified目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'LastModified' );
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。