Extension:LastModified/de-formal
![]() Release status: stable |
|
---|---|
![]() |
|
Implementation | Special page |
Description | Provides a Last modified date for wiki articles |
Author(s) | Jeremy Postlethwaite (JpostlethwaiteDiskussion) |
Latest version | continuous updates |
MediaWiki | >= 1.29.0 |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
$wgLastModifiedRange |
|
Quarterly downloads | 27 (Ranked 136th) |
Translate the LastModified extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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.
Customization
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:
Value | Display | ||||||
---|---|---|---|---|---|---|---|
years | months | days | hours | minutes | seconds | ||
0 | years | Yes | Yes | Yes | Yes | Yes | Yes |
1 | months | No | Yes | Yes | Yes | Yes | Yes |
2 | days | No | No | Yes | Yes | Yes | Yes |
3 | hours | No | No | No | Yes | Yes | Yes |
4 | minutes | No | No | No | No | Yes | Yes |
5 | seconds | No | No | No | No | No | Yes |
The default used by the extension is "0".
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
LastModified
im Ordnerextensions/
ablegen. - Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
wfLoadExtension( 'LastModified' );
- Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
See also
- Extension:WarnNotRecentlyUpdated for a content warning if the page has been modified too long ago
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |