Extension:HideSection/zh
Appearance
From mediawiki.org
This page is a translated version of the page Extension:HideSection and the translation is 8% complete.
发行状态: 稳定版 |
|
|---|---|
| 实现 | 用户界面, 皮肤 |
| 描述 | A MediaWiki extension that adds links on each header to hide/show the section. |
| 作者 | Brent Laabs (BrentLaabs 留言 ) |
| 最新版本 | 2 (2022年10月03日) |
| MediaWiki | 1.25+ |
| PHP | 5.5+ |
| 数据库更改 | 否 |
|
$wgHideSectionImages, $wgHideSectionHideText, $wgHideSectionTitleLink |
|
| 许可证 | MIT License |
| 下載 | GitHub:
注意: |
| 示例 | allthetropes.org |
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.
Installation
- 下载文件,并将其放置在您
extensions/文件夹中的HideSection目录内。 - 請新增下列代码到您的LocalSettings.php 文件的底部:
wfLoadExtension( 'HideSection' );
- Yes 完成 – 請导航至您的wiki上的
Special:Version,以验证此扩展已成功安装。
Configuration
- $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 allbutton to the right of the page title.
Known issues
- Strange interaction with disabled VisualEditor:
- Prevents hiding of sections with Skin:Minerva, which is actually a default feature of that skin.
See also
此扩展在以下wiki农场/托管网站和/或软件包中提供: