Extension:PlaceNewSection

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
PlaceNewSection
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

Check usage and version matrix.

The PlaceNewSection extension introduces two magic words, __ADDNEWSECTIONBELOW__ and __ADDNEWSECTIONABOVE__ that control placement of new talk page sections.

UsageEdit

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.

InstallationEdit

  1. Download the code from GitHub: Download extension
  2. Edit the file "extension.json" and add "manifest_version": 2, in line 12.
  3. Place the file(s) in a directory called PlaceNewSection in your extensions/ folder.
  4. Add the following code to LocalSettings.php to enable the extension:
wfLoadExtension( 'PlaceNewSection' );