Extension:LastModified/ru
![]() Статус релиза: стабильно |
|
---|---|
![]() |
|
Реализация | Служебная страница |
Описание | Добавляет дату последнего изменения к вики-страницам |
Автор(ы) | Jeremy Postlethwaite (Jpostlethwaiteобсуждение) |
Последняя версия | continuous updates |
MediaWiki | >= 1.29.0 |
Изменения в БД | Нет |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
$wgLastModifiedRange |
|
Quarterly downloads | 25 (Ranked 145th) |
Переведите расширение LastModified, если оно доступно на translatewiki.net | |
Проблемы | Открытые задачи · Сообщить об ошибке |
Расширение LastModified отображает текст на странице, указывающий на время последнего изменения страницы. См. также 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:
Значение | Display | ||||||
---|---|---|---|---|---|---|---|
годы | месяцы | дни | часы | минуты | секунды | ||
0 | годы | Да | Да | Да | Да | Да | Да |
1 | месяцы | Нет | Да | Да | Да | Да | Да |
2 | дни | Нет | Нет | Да | Да | Да | Да |
3 | часы | Нет | Нет | Нет | Да | Да | Да |
4 | минуты | Нет | Нет | Нет | Нет | Да | Да |
5 | секунды | Нет | Нет | Нет | Нет | Нет | Да |
Значение, используемое расширением по умолчанию, — "0".
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
LastModified
в вашей папкеextensions/
. - Добавьте следующий код внизу вашего
LocalSettings.php
:wfLoadExtension( 'LastModified' );
- Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Это расширение включено в следующие пакеты и/или вики-фермы: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |