wikimedia / mediawiki-extensions-MsInsert

Github mirror of MediaWiki extension MsInsert - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MsInsert

The MsInsert extension adds a dropdown menu to the edit toolbar, that allows you to insert into the textarea the content of any wiki page listed in the dropdown menu.

Installation

To install MsInsert, add the following to your LocalSettings.php:

wfLoadExtension( 'MsInsert' );

Configuration

To add a page to the dropdown menu, add it to the $wgTemplates array in your LocalSettings.php, like so:

$wgTemplates = [ 'Template:Test', 'Main Page', 'Talk:Main Page' ];

If the page does not exist yet, then it will not be added to the dropdown menu, even if it's listed in the $wgTemplates array. By default, the array is empty.

Credits

About

Github mirror of MediaWiki extension MsInsert - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing


Languages

Language:JavaScript 88.3%Language:PHP 11.7%