Extension:TocTree/pl

This page is a translated version of the page Extension:TocTree and the translation is 18% complete.
Podręcznik rozszerzeń MediaWiki
OOjs UI icon advanced-invert.svg
TocTree
Status wydania: stabilne
Realizacja Interfejs użytkownika
Opis Allows for expansion and collapsing of the table of contents
Ostatnia wersja 1.12.0
MediaWiki >= 1.35.0
Licencja GNU General Public License 2.0 or later
Pobieranie
Przetłumacz rozszerzenie TocTree jeżeli jest dostępne na translatewiki.net

Sprawdź wykorzystywanie i matrycę wersji.

Problemy Otwarte zadania · Zgłoś błąd

The TocTree extension allows for initial expansion and collapsing of the table of contents.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie TocTree w folderze extensions/.
  • Dodaj poniższy kod na dole swojego pliku LocalSettings.php :
    wfLoadExtension( 'TocTree' );
    
  •   Zrobione – Przejdź do Special:Version na swojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Dostosowywanie

The PHP script will add two new options to the user preferences. They were added to the Misc section:

  • Floated table of contents
  • Expand table of contents

Defaults are collapsed but not floated tocs. You can overwrite the default values by setting true in your LocalSettings.php file:

$wgDefaultUserOptions['toc-floated'] = false;
$wgDefaultUserOptions['toc-expand'] = false;

Prevention of TOC floating

The author has the opportunity to prevent floating of the TOC set by the user(s) by using a div tag with the style class noFloat enclosing the TOC.

<div class="noFloat">__TOC__</div>

Znane problemy

There are the well-known problems of floated boxes like:

  • Missing list bullets
  • Design problems of narrow TOCs and positioning problems with text and wide right-floated boxes.

Additional:

  • Bidi support (right-to-left writing direction) implemented but not yet tested (for instance needed for Hebrew and Arabic).
  • Support of only the MonoBook and Vector skins.