Extension:HideSection/pl

Category:MIT licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
HideSection
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Interfejs użytkownikaCategory:User interface extensions/pl, Skórka Category:Skin extensions/pl
Opis A MediaWiki extension that adds links on each header to hide/show the section.
Autor(zy) Brent Laabs (BrentLaabsdyskusja)
Ostatnia wersja 2 (2022-10-03)
MediaWiki 1.25+Category:Extensions with manual MediaWiki version/pl
PHP 5.5+
Zmiany w bazie danych Nie
Licencja Licencja MIT
Pobieranie Category:Extensions in GitHub version control/pl
Przykład allthetropes.org
$wgHideSectionImages, $wgHideSectionHideText, $wgHideSectionTitleLink
Category:All extensions/plCategory:Extensions not in ExtensionJson/pl

HideSection is a MediaWiki extension that adds links on each header to collapse and expand the section. This allows users to easily wade through long wiki pages and jump to the section they want to read.

This extension hides sections hierarchically. That means if you hide a top level header, any headers below it are automatically hidden. Typically, the header will display a "show" or "hide" link next to the edit link, though this can be configured to display an image instead. Additionally, there is a "show all"/"hide all" button, either on the first header or next to the page title.

For reporting an issue or a bug, please use Miraheze Phabricator.

Instalacja

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

Konfiguracja

$wgHideSectionImages
Use these images as hide/show links. Default is null. If this array is set, images will be added according the place marked in location. Location "begin" is before the first text of the header, while "end" places it at the very end of the header.
$wgHideSectionImages = [
	"show" => "https://upload.wikimedia.org/wikipedia/commons/b/bc/Vector_right_arrow_link.png",
	"hide" => "https://upload.wikimedia.org/wikipedia/commons/2/27/Vector_down_arrow_link.png",
	"location" => "begin" # or "end"
];
$wgHideSectionHideText
If set to a true value, text show/hide links are disabled. Useful when only images are wanted.
$wgHideSectionTitleLink
If set to a true value, adds a show all/hide all button to the right of the page title.

Znane problemy

  • Strange interaction with disabled VisualEditor:

T146564

  • Prevents hiding of sections with Skin:Minerva, which is actually a default feature of that skin.

Zobacz też

Category:Extensions by Miraheze/pl
Category:All extensions/pl Category:BeforePageDisplay extensions/pl Category:Extensions by Miraheze/pl Category:Extensions in GitHub version control/pl Category:Extensions included in Miraheze/pl Category:Extensions included in WikiForge/pl Category:Extensions not in ExtensionJson/pl Category:Extensions with manual MediaWiki version/pl Category:MIT licensed extensions/pl Category:SkinEditSectionLinks extensions/pl Category:Skin extensions/pl Category:Stable extensions/pl Category:User interface extensions/pl