Extension:TocTree/pl
Appearance
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.47.0 |
| Licence | Licencja GNU General Public License 2.0 lub nowsza |
| Pobieranie | |
| 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
TocTreew folderzeextensions/.
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' );
Zrobione – Przejdź do Special:Versionna 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.
| To rozszerzenie jest wykorzystywane przez jeden lub więcej projektów Wikimedia. Oznacza to prawdopodobnie, że to rozszerzenie jest stabilne i działa wystarczająco dobrze, aby wykorzystywać je na stronach o dużym natężeniu ruchu. Odnajdź nazwę tego rozszerzenia w plikach konfiguracyjnych Wikimedia CommonSettings.php oraz InitialiseSettings.php, aby zobaczyć gdzie są zainstalowane. Pełną listę rozszerzeń zainstalowanych na określonej wiki można znaleźć na stronie Special:Version na danej wiki. |
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: |
Categories:
- Stable extensions/pl
- User interface extensions/pl
- ApiParseMakeOutputPage extensions/pl
- BeforePageDisplay extensions/pl
- GetPreferences extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/pl
- All extensions/pl
- Extensions used on Wikimedia/pl
- Extensions included in Miraheze/pl
- Extensions included in MyWikis/pl
- TOC extensions/pl
