Extension:LogoFunctions/ru

From mediawiki.org
This page is a translated version of the page Extension:LogoFunctions and the translation is 33% complete.
Справка по расширениям MediaWiki
LogoFunctions
Статус релиза: стабильно
Реализация Функция парсера
Описание Добавляет функции парсера, связанные с логотипом вики.
Автор(ы) JuneHyeon Bae (*devuntобсуждение)
Последняя версия 2.0 (2019-09-15)
MediaWiki 1.31+
PHP 7.0+
Изменения в БД Нет
Лицензия GNU General Public License 2.0 или позднее
Скачать
  • $wgNamespaceLogos
Ежеквартальные загрузки 6 (Ranked 132nd)
Переведите расширение LogoFunctions, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

The LogoFunctions extension adds parser functions to override or add stamps to the wiki's logo.

Использование

#setlogo
{{#setlogo:ExampleLogo.png}}

Это устанавливает файл [[File:ExampleLogo.png]] как логотип

#stamplogo
{{#stamplogo:Featured.png|190px|top|-1em|-1em}}

This adds a featured article stamp to the logo ([[File:Featured.png]]), 190px wide, -1em from the left, -1em from the top, as seen on uncyclopedia:Page title.

top or bottom options can be used, for up to two stamps applied to the logo on a page.

Установка

This extension was broken for several years. Use master or respectively the versions for MediaWiki 1.34 and later once available to install it.
  • Скачайте и распакуйте файл(ы) в папку с названием LogoFunctions в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'LogoFunctions' );
    
  • Configure as required.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Настройка

This extension can be used to set per-namespace logos via configuration by mapping a namespace number to a file available on the wiki:

$wgNamespaceLogos = [
	6 => 'Uncyclomedia Commons.png',
	7 => 'Uncyclomedia Commons.png',
];

The above code added to your "LocalSettings.php" file will set the specified files as logos for the "File" and "File talk" namespace. For these in particular, do remember to protect the files and also to mark them as used to prevent them from being deleted.

Do not use namespace constants but namespace numbers for configuration since the former will not work. See задача T232952 for further information.