Extension:Header Footer/ru
Appearance
Статус релиза: стабильно |
|
|---|---|
| Описание | Allows content to be included at the top and bottom of the wiki's page content section |
| Автор(ы) | Jean-Lou Dupont, James Montalvo, Douglas Mason, Hallo Welt! GmbH |
| Последняя версия | 4.0 |
| Политика совместимости | В расширении есть соответствуюшая ветвь для каждого релиза MediaWiki, который является релизом долгосрочной поддержки (Long Term Support release). |
| MediaWiki | 1.39+ |
| Изменения в БД | Нет |
| Composer | mediawiki/header-footer |
| Лицензия | GNU General Public License 2.0 или позднее |
| Скачать | |
|
|
|
| Переведите расширение Header Footer, если оно доступно на translatewiki.net | |
The Header Footer extension allows content to be included at the top and bottom of the wiki's page content section per namespace and per page.
Features
- Скорость - integrated with parser caching
- Secure - header and footer articles are located in the NS_MEDIAWIKI namespace
- Controllable - headers and/or footers can be disabled on pages which are edit protected
- Customizable - headers and footers are wrapped in
<div>elements
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
HeaderFooterв вашей папкеextensions/.
Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HeaderFooter
- Добавьте следующий код в конце вашего файла LocalSettings.php:
wfLoadExtension( 'HeaderFooter' );
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Использование
Per-Namespace Header and Footer
Edit the pages:
MediaWiki:Hf-nsheader-namespace nameMediaWiki:Hf-nsfooter-namespace name
namespace name must be in the language of the wiki (see Manual:$wgLanguageCode)
For the 'main' namespace, just use blank i.e. no string, but with the hyphen:
MediaWiki:Hf-nsheader-MediaWiki:Hf-nsfooter-
Per-Page Header and Footer
Edit the pages:
MediaWiki:Hf-header-page nameMediaWiki:Hf-footer-page name
Disable commands
On edit protected pages, one can add
__NOHEADER__to suppress the page level header__NOFOOTER__to suppress the page level footer__NONSHEADER__to suppress the namespace level header__NONSFOOTER__to suppress the namespace level footer
CSS
- Page Level Header: <div class="hf-header">
- Namespace Level Header: <div class="hf-nsheader">
- Page Level Footer: <div class="hf-footer">
- Namespace Level Footer: <div class="hf-nsfooter">
Примеры
- Page MediaWiki:hf-nsheader-Extension would contain the wikitext to be included as header for all pages of the Extension namespace.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NONSHEADER__in it.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
- Page MediaWiki:hf-footer-Extension:HeaderFooter would contain the wikitext to be included as footer for the page Extension:HeaderFooter.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NOFOOTER__in it.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
См. также
- PageNotice extension – provides a way for you to define fixed notice messages for the top or the bottom of a page (by individual page name), or entire namespaces (by namespace number).
| Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: |
Categories:
- Stable extensions/ru
- Extensions with invalid or missing type/ru
- Extensions supporting Composer/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- OutputPageParserOutput extensions/ru
- ResourceLoaderGetConfigVars extensions/ru
- All extensions/ru
- Extensions included in BlueSpice/ru
- Extensions included in Canasta/ru
- Extensions included in ProWiki/ru
- Extensions included in wiki.gg/ru
- View page extensions/ru
- Headers and footers extensions/ru
