Jump to content

Extension:TocTree/pl

From mediawiki.org
This page is a translated version of the page Extension:TocTree and the translation is 18% complete.
Podręcznik rozszerzeń MediaWiki
TocTree
Status wydania: stabilne
Realizacja Interfejs użytkownika
Opis Allows for expansion and collapsing of the table of contents
Autor(zy) Roland Unger, Matthias Mullie
Ostatnia wersja 1.12.0
MediaWiki >= 1.43
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie
Quarterly downloads 13 (Ranked 118th)
Przetłumacz rozszerzenie TocTree jeżeli jest dostępne na translatewiki.net
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/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TocTree
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'TocTree' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej 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.