Extension:LastModified/lt

Category:GPL licensed extensions/lt
MediaWiki extensions manual
LastModified
Release status: stableCategory:Stable extensions/lt
LastModified in English
Implementation Special page Category:Special page extensions/lt
Description Provides a Last modified date for wiki articles
Author(s) Jeremy Postlethwaite (Jpostlethwaiteaptarimas)
Latest version continuous updates
MediaWiki >= 1.29.0
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control/lt
$wgLastModifiedRange
Quarterly downloads 4 (Ranked 94th)
Translate the LastModified extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions/lt

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
0years YesYesYesYesYesYes
1months NoYesYesYesYesYes
2days NoNoYesYesYesYes
3hours NoNoNoYesYesYes
4minutes NoNoNoNoYesYes
5seconds NoNoNoNoNoYes

The default used by the extension is "0".

Įdiegimas

  • Download and move the extracted LastModified folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LastModified
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LastModified' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also

Category:All extensions/lt Category:BeforePageDisplay extensions/lt Category:Extensions in Wikimedia version control/lt Category:Extensions included in Miraheze/lt Category:Extensions included in WikiForge/lt Category:GPL licensed extensions/lt Category:Special page extensions/lt Category:Stable extensions/lt