Extension:Header Footer/pl

Category:Extensions with invalid or missing type/plCategory:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
HeaderFooter
Status wydania: stabilneCategory:Stable extensions/pl
Opis Allows content to be included at the top and bottom of the wiki's page content section
Autor(zy) Jean-Lou Dupont, James Montalvo, Douglas Mason, Hallo Welt! GmbH
Ostatnia wersja 4.0
Polityka zgodności Dla każdego wydania MediaWiki, które jest wydaniem wsparcia długoterminowego, istnieje odpowiednia gałąź w rozszerzeniu.
MediaWiki 1.39+Category:Extensions with manual MediaWiki version/pl
Zmiany w bazie danych Nie
Composer mediawiki/header-footer Category:Extensions supporting Composer/pl
Licencja Licencja GNU General Public License 2.0 lub późniejsza
Pobieranie Category:Extensions in Wikimedia version control/pl
  • $egHeaderFooterEnableAsyncHeader
  • $egHeaderFooterEnableAsyncFooter
Przetłumacz rozszerzenie Header Footer jeżeli jest dostępne na translatewiki.net
Category:All extensions/plCategory:Extensions not in ExtensionJson/pl

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

  • Speed - 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

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie HeaderFooter w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HeaderFooter
    
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'HeaderFooter' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Użycie

Edit the pages:

  • MediaWiki:Hf-nsheader-namespace name
  • MediaWiki: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-

Edit the pages:

  • MediaWiki:Hf-header-page name
  • MediaWiki: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">

Przykłady

  1. 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.
  2. 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.

Zobacz też

  • 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).
Category:View page extensions/pl Category:Headers and footers extensions/pl
Category:All extensions/pl Category:Extensions in Wikimedia version control/pl Category:Extensions included in BlueSpice/pl Category:Extensions included in Canasta/pl Category:Extensions included in ProWiki/pl Category:Extensions included in wiki.gg/pl Category:Extensions not in ExtensionJson/pl Category:Extensions supporting Composer/pl Category:Extensions with invalid or missing type/pl Category:Extensions with manual MediaWiki version/pl Category:GPL licensed extensions/pl Category:Headers and footers extensions/pl Category:OutputPageParserOutput extensions/pl Category:ResourceLoaderGetConfigVars extensions/pl Category:Stable extensions/pl Category:View page extensions/pl