![]() Release status: stable |
|
---|---|
Implementation | Extended syntax |
Description | Controls placement of new sections |
Author(s) | (Nxtalk) |
MediaWiki | 1.35+ |
License | GNU General Public License 2.0 or later |
Download | GitHub: |
Hooks used
|
|
The PlaceNewSection extension introduces two magic words, __ADDNEWSECTIONBELOW__ and __ADDNEWSECTIONABOVE__ that control placement of new talk page sections.
Usage
If __ADDNEWSECTIONBELOW__ is placed on a page, new sections will be added directly below it instead of after the end. Newer sections will be at the top, and older sections at the bottom.
If __ADDNEWSECTIONABOVE__ is used, new sections will be added directly above it, and the order will be reversed (new sections at the bottom, like the MediaWiki default), but anything below this magic word will stay at the bottom.
Installation
- Download the code from GitHub: Download extension
- Edit the file "extension.json" and add
"manifest_version": 2,
in line 12. - Place the file(s) in a directory called
PlaceNewSection
in yourextensions/
folder. - Add the following code to
LocalSettings.php
to enable the extension:
wfLoadExtension( 'PlaceNewSection' );
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.