Extension:LastModified/ru
Статус релиза: стабильно |
|
|---|---|
| LastModified in English | |
| Реализация | Служебная страница |
| Описание | Добавляет дату последнего изменения к вики-страницам |
| Автор(ы) | Jeremy Postlethwaite (Jpostlethwaite обсуждение ) |
| Последняя версия | continuous updates |
| MediaWiki | >= 1.43 |
| Изменения в БД | Нет |
|
$wgLastModifiedRange |
|
| Licence | GNU General Public License 2.0 or later |
| Скачать | |
| Переведите расширение 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".
Namespaces
The $wgLastModifiedNamespaces option can be used to configure the namespaces the last modified text will be shown in.
Example:
$wgLastModifiedNamespaces[] = NS_TEMPLATE;
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
LastModifiedв вашей папкеextensions/.
Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cdextensions/ gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/LastModified - Добавьте следующий код в конце вашего файла LocalSettings.php :
wfLoadExtension( 'LastModified' );
- Yes Готово – Перейдите на страницу
Special:Versionна своей вики, чтобы удостовериться в том, что расширение успешно установлено.
See also
- Extension:WarnNotRecentlyUpdated for a content warning if the page has been modified too long ago