2017 © Pedro Peláez
 

mediawiki-extension check-page-title

Check if the title's page get an unsual chars and alert users

image

wikifab/check-page-title

Check if the title's page get an unsual chars and alert users

  • Tuesday, February 27, 2018
  • by pyro853
  • Repository
  • 2 Watchers
  • 0 Stars
  • 986 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 26 % Grown

The README.md

Description

This MediaWiki extension controls that the name entered into the Page Form's input title field doesn't contains some specific caracters. If the extension detects a wrong characters, a modal box appears and prevent the user to create the page with the entered title., (*1)

Also if there is a blank space at the end of the entered string, the blank space is removed automactically., (*2)

We have create this extension to avoid people to create pages with weird characters., (*3)

How it works?

The extensions checks the "formInput" class., (*4)

Installation

  1. Clone CheckTitlePage into the 'extensions' directory of your mediawiki installation, (*5)

  2. Add the folling Line to your LocalSettings.php file :, (*6)

    wfLoadExtension('CheckPageTitle');, (*7)

  3. Add this line too to your LocalSettings.php file : (OBSOLETE), (*8)

    $wgLegalTitleChars = " %!\"$'()*,\-.\/0-9@A-Z\^_`a-z~\x80-\xFF+";, (*9)

Warning : this last configuration parameters has been disable du to bugs. the config is now fixed, and use this config : "\"',\-.\/0-9@A-Z_`a-z~\xC0-\xFF+", (*10)

Dependencies

This extension works with the Extension:PageForms., (*11)

MediaWiki Versions

This extension has been tested on MediaWiki version 1.27.1, (*12)

The Versions

27/02 2018

dev-master

9999999-dev

Check if the title's page get an unsual chars and alert users

  Sources   Download

27/02 2018

1.1.0

1.1.0.0

Check if the title's page get an unsual chars and alert users

  Sources   Download

15/11 2017

dev-solene

dev-solene

Check if the title's page get an unsual chars and alert users

  Sources   Download

15/11 2017

1.0.1

1.0.1.0

Check if the title's page get an unsual chars and alert users

  Sources   Download

06/11 2017

1.0.0

1.0.0.0

Check if the title's page get an unsual chars and alert users

  Sources   Download