Extension:LastModified/de
![]() Freigabestatus: stabil |
|
---|---|
![]() |
|
Einbindung | Spezialseite |
Beschreibung | Provides a Last modified date for wiki articles |
Autor(en) | Jeremy Postlethwaite (JpostlethwaiteDiskussion) |
Letzte Version | continuous updates |
MediaWiki | >= 1.29.0 |
Datenbankänderungen | Nein |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | |
$wgLastModifiedRange |
|
Übersetze die LastModified-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
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 | Ja | Ja | Ja | Ja | Ja | Ja |
1 | months | Nein | Ja | Ja | Ja | Ja | Ja |
2 | days | Nein | Nein | Ja | Ja | Ja | Ja |
3 | hours | Nein | Nein | Nein | Ja | Ja | Ja |
4 | minutes | Nein | Nein | Nein | Nein | Ja | Ja |
5 | seconds | Nein | Nein | Nein | Nein | Nein | Ja |
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 der LocalSettings.php hinzufügen:
wfLoadExtension( 'LastModified' );
Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.