MediaWiki 1.31/fr

MediaWiki 1.31 est la dernière version de MediaWiki. Consultez le fichier pour la liste complète des changements. Cette version a été déployée sur les wikis de la Fondation Wikimedia à travers des branches incrémentales « wmf » à partir du 26 septembre 2017. La version stable 1.31.0 devrait sortir courant juin 2018. Téléchargez le ou cliquez sur la branche   dans Git pour suivre cette version.

Plus d'extensions groupées
L'ensemble des extensions regroupées dans l'archive MediaWiki a augmenté. Les nouveaux ajouts sont:


 * fournit un éditeur plus convivial lors de l'édition des fichiers CSS et JavaScript sur wiki.
 * fournit un visualiseur de visionneuse pour les images et les galeries.
 * fournit une authentification à deux facteurs pour les comptes wiki.
 * fournit un formulaire pour que les administrateurs puissent faire des substitutions de chaînes sur l'ensemble du wiki, à la fois dans les pages de contenu et sur le titre des pages.
 * fournit un formulaire pour que les administrateurs puissent faire des substitutions de chaînes sur l'ensemble du wiki, à la fois dans les pages de contenu et sur le titre des pages.

L' extension Nuke ne figure pas par erreur dans l'archive MediaWiki 1.31.0. Si vous voulez utiliser cette extension, veuillez la télécharger séparément. Ceci sera corrigé dans la prochaine version de MediaWiki.

Habillage Timeless
Timeless est un habillage nouveau, interactif pour MediaWiki, et qui fait partie maintenant des paquetages.

CologneBlue et Modern
Les habillages CologneBlue et Modern ne font plus partie des paquetages, bien qu'ils soient encore compatibles avec MediaWiki. Si vous faites une mise à jour et que cet habillage est installé, assurez-vous de le télécharger séparément.

Tidy remplacé par l'algorithme d'analyse HTML 5

 * Voir la Foire aux questions pour plus de détails

La bibliothèque Tidy basée sur HTML 4 a été remplacée par un analyseur pure-PHP-HTML 5 pour nettoyer un wikitex incorrect d'une manière moderne et conforme aux normes. Si votre contenu est basé sur certains des correctifs qui ne sont pas poursuivis, ils devront être corrigés. [Quelque chose à propos de comment, à long terme, tout ira mieux. Pointeurs vers Linter et ParserMigration].


 * Voir les questions posées fréquemment pour les détails

La bibliothèque Tidy basée sur HTML 4 a été remplacée par un analyseur HTML 5 pur PHP appelé RemexHtml afin de nettoyer le wikitext impropre d'une manière moderne et conforme aux standards. Si votre contenu reposait sur certaines corrections de Tidy qui n'ont plus cours, il faut le reprendre.

You can use the Linter extension in conjunction with Parsoid to identify pages with problems that cause differences in rendering with the RemexHtml parser. The ParserMigration extension shows editors a side-by-side comparison of rendering with tidy and RemexHtml.

Noms d'utilisateurs interwiki
MediaWiki now supports "interwiki" usernames in a format like " " in revisions, log entries, and so on. This allows for properly recording imports and events from foreign wikis (as generated by Wikibase, for example) without confusion with a local account that exists now or may be created in the future.


 * Imports will now record unknown (and, optionally, known) usernames in a format like " ".
 * (used on history pages, log pages, and so on) will display usernames formed like " Example" as interwiki links, as if by wikitext like.

Standardisation successive de l'interface utilisateur

 * As a first pass in standardizing dialog boxes across the MediaWiki product, Html class now provides helper methods for messageBox, successBox, errorBox and warningBox generation.

Autres modifications des fonctionalités

 * Add default edit rate limit of 90 edits/minute for all users. This can be changed by setting.
 * only affects  actions.
 * User sub-pages named  are now protected in the same way that   and   pages are, so that configuration options can safely be placed there.
 * The info page for File pages now displays the file's base-16 SHA1 hash value in the table of basic information.
 * The pingback feature will now send a monthly heartbeat ping to identify active wikis.
 * Tabs which link to pages that don't exist (like those to uncreated discussion pages) now have a tooltip to indicate state, not just colour.

Mises à jour des langues en 1.31
MediaWiki supporte plus de 350 langues. Plusieurs localisations sont mises à jour régulièrement. Ci-dessous vous ne trouverez que les nouvelles langues et les langues supprimées, ainsi que les langues modifiées à cause des rapports de Phabricator.


 * Mirandese (mwl) now supports gendered /.
 * New language support: Nyungar (nys).
 * New language support: Siberian Tatar [cебертатар] (sty).
 * New language support: Guianan Creole (gcr).
 * New language support: Kumyk [къумукъ] (kum).
 * New language support: Spanish formal address (es-formal).
 * New language support: Hungarian formal address (hu-formal).
 * New language support: Gorontalo (gor).

PHP7 ou HHVM sont maintenant requis
MediaWiki 1.31 requires PHP 7.0.0 or later. Although HHVM 3.18.5 or later is supported, it is generally advised to use PHP 7.0.0 or later for long term support.

Modifications de base de données
1.31 a reçu plusieurs modifications des bases de données depuis 1.30, et ne fonctionnera pas sans les mises à jour du schema. Les utilisateurs de PostgreSQL ont besoin maintenant de la version 9.2 ou ultérieure.

Table des révisions
Notez que à cause de modifications sur quelques tables très grandes comme la table des révisions, la mise à jour du schema peut prendre beaucoup de temps (des minutes pour un site de taille moyenne, plusieurs heures pour un très grand site). N'oubliez pas de toujours faire une copie de secours de votre base de données avant de procéder à la mise à jour!

Table des archives
If you're using MySQL, SQLite, or MSSQL, are not using update.php to apply schema changes, and cannot have downtime to run  and apply   manually, you'll have to apply a default value to the   and   columns of the   table or make those columns nullable before upgrading to MediaWiki 1.31. shows how to do this for MySQL.

Table des acteurs
The identity of the logged-in or IP "actor" for logged actions is being moved into a new  table, with the rows in tables such as revision and logging referring to the actor ID instead of storing the user ID and name/IP in every row.


 * Ceci est actuellement sous le controôle de l'. La plupart des wikis peuvent initialiser cela à  et exécuter   dès que les extensions nécessaires sont mises à jour.
 * Most code accessing rows for logged actions from the database should use the relevant  methods to get the information needed to build the SQL query. The   class may also be used to get feature-flagged information needed to access actor-related fields during the migration period.

Modifcations de configuration

 * and are now deprecated and will be removed in a future version. The API is now considered to be stable, secure and essential.
 * was removed, as it is now the default. This was documented as a temporary variable during the migration period, deprecated since 1.29.
 * a été mis à jour pour supporter les images SVG et utilise lorsqu'il peut pour le repli, pour les images telles que PNG.
 * will no longer ignore ' ' when user does not have the right to mark things patrolled.
 * Wikis that contain imported revisions or CentralAuth global blocks should run.
 * The configuration settings and, deprecated since 1.27, were removed.
 * now supports having fallbacks for browsers that are not using the latest version of the Referrer Policy specification.
 * is now set to  by default. This is a first step of migration to human-readable section IDs that will later result in ' ' being the default mode.
 * now only supports APC(u) or WinCache. XCache support was removed as upstream is inactive and has no plans to move to PHP 7.
 * The old  feature, including its related configuration option, has been removed.
 * The ' ' value for is no longer supported for performance reasons, and installations with this setting will now work as if it was configured with ' '.
 * MediaWiki now defaults to using  to tidy up user input, rather than being off by default. If you wish to disable HTML tidying entirely, set  to  ; if you wish to use the old, deprecated Tidy external binary, both set  to   and  to.
 * now defaults to  instead of.
 * was removed and will be ignored.
 * , deprecated and ignored since 1.25, was removed. See the 1.25 release notes for more information.
 * is now marked as deprecated, just like the deprecated AJAX framework that it enables. Some extensions mistakenly used this to check whether any AJAX functionality at all should be enabled, further making this problematic to retain.
 * is now deprecated, and will be removed in a future version. It has been marked as experimental ever since it was introduced.
 * now affects all database types. Old MediaWiki versions were setting this to 'mediawiki' during the installer, which may cause errors during the upgrade when your database is not PostgreSQL or MSSQL. In that case, remove this setting from LocalSettings.php.

Modifications depuis MediaWiki 1.31.0-rc.2

 * Initialize PSR-4 namespaces at same stage as normal autoloader.
 * Hide MySQL binary/utf-8 charset option in the installer.
 * Don't allow setting in the installer.
 * php-memcached 3.0 (provided with PHP 7.0) is now supported.
 * now works on PHP 7.1+
 * Fix exception from  deref on HHVM in the   hook.
 * The  of   files is now able to be zero.
 * Validate  in  /  parser functions.

Modifications depuis MediaWiki 1.31.0-rc.0

 * Drop  and.
 * Use codepoint as tiebreaker when getting first-letters in.
 * Don't shell during the installer if shelling out is disabled.
 * Improve duplicate config setting exception as part of extension registration.
 * Don't require trailing slash in PSR-4 autoloader directory.
 * Fix PHP Notice from ` ` in ` `.
 * Do not incorrectly hide namespace input field in the installer.
 * Refactor checks looking for PEAR maik libraries to be clearer.

Nouvelles fonctionnalités pour les développeurs en 1.31

 * and similar methods now support joins with parentheses for grouping.
 * As a first pass in standardizing dialog boxes across the MediaWiki product, Html class now provides helper methods for,  ,   and   generation.
 * The ' ' hook allows extensions to auto-create users during an import.
 * Added a hook,, to allow extensions to affect the   post-cache transformations.
 * Added a hook,, to allow extensions to alter the initial page text for file uploads.
 * Style tags with a ' ' attribute will be deduplicated as a  post-cache transformation. This may be disabled by passing   to that method.
 * Added, to roll back an atomic section without having to roll back the whole transaction.
 * , non-native, and non-MySQL   and   no longer roll back the whole transaction on failure.
 * The CLI installer learned to detect and include extensions. Pass   to enable that feature.
 * now has three states: " " for, " " for manually patrolled, and " " for autopatrolled actions.
 * Extensions can now set their type to " " if they provide an editor or enhance the editing experience.
 * Extensions can use a PSR-4 autoloader by setting an " " property in . See the documentation for more details and an example.

Modifications des bibliothèques externes en 1.31

 * ,  and   have been moved from   to  . These packages now must be installed via composer and not via PEAR itself.

Bibliothèques externes mises à jour

 * Mise à jour de  de v0.9.14 en v1.8.2.
 * Mise à jour de  de 1.1.4 en 1.3.0 (dépendance du développement).
 * Mise à jour de  de 2.1.0 en 3.1.3 (dépendance du développement).
 * Mise à jour de  de 1.1.0 en 1.2.0.
 * Mise à jour de   de 2.0.0 en 2.1.1.
 * Mise à jour de  de 1.1.0 en 1.2.0.
 * Mise à jour de   de 2.2.0 en 2.3.0.
 * Mise à jour de  de 1.1.0 en 1.2.0.
 * Mise à jour de  de 1.0.4 en 1.0.6.
 * UMise à jour de  de 1.0.2 en 1.0.3.
 * Mise à jour de  de 1.0.1 en 1.0.2.

Nouvelles bibliothèques externes

 * Added  1.0.0

Bibliothèques externes supprimées ou remplacées

 * The deprecated ' ' module was removed.
 * The deprecated ' ' module was removed. Use the CSS  property instead.
 * The deprecated ' ' module was removed.
 * The deprecated ' ' module was removed. Use the ' ' module instead.


 * was replaced with.

Corrections de bogues en 1.31

 * Non-breaking space in header ID breaks anchor.
 * CSSMin now allows quoted urls in ` ` syntax to start with a space.
 * : Whitespace created by category and language links is now stripped rather than leaving blank lines in odd places.
 * Uploads with UTF-8 names now work on PHP7.1+ on Windows servers.
 * now works on PHP 7.1+

Modifications de l'API Action en 1.31

 * The ' ' value to  for   has been removed. It has never made a difference in the output, the name was always returned regardless.
 * The ' ' and ' ' parameters for  have been removed. They were deprecated and also accidentally nonfunctional since 1.17 in 2010. Use ' ' instead.

Modifications internes de l'API Action en 1.31

 * , obsolète depuis 1.25, a été supprimé.
 * , obsolète depuis 1.25, a été supprimé.
 * , obsolète depuis 1.25, a été supprimé.

Modification rompant la compatibilité en 1.31

 * , obsolète depuis 1.27, a été supprimé.
 * The  class constructor now requires a   parameter. Instantiating without context was deprecated in 1.18.
 * Le singleton JavaScript  obsolète en 1.30, a été supprimé.
 * ,, et les constantes   associées, obsolète en 1.29, ont été supprimés.
 * The,  ,  , and   methods, deprecated in 1.24, were removed.
 * and  were removed. Use   instead.
 * The deprecated  constant was removed.   should be used instead.
 * Due to significant refactoring, method  that had no access restriction has been removed.
 * The  class will no longer accept usable-but-missing usernames for   or  . Callers should either ensure the blocker exists locally or use a new interwiki-format username like " ".
 * The following methods and constants from the  class, which were deprecated in 1.27, have been removed:
 * The  parameter of   was removed., the corresponding configuration variable, has been deprecated since 1.27 and was removed as well.
 * The  parameter of   was removed., the corresponding configuration variable, has been deprecated since 1.27 and was removed as well.
 * The  class, deprecated in 1.27, was removed. The namespaced   class should be used instead.
 * The driver ' ' for MySQL, deprecated in MediaWiki 1.30, has been removed. The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The default driver for MySQL has been ' ' since MediaWiki 1.22.
 * The following properties of  were deprecated in 1.21 and have been removed:
 * objects which are generated using a non-default value for  can no longer be added to the parser cache.
 * The following deprecated methods from the  class have been removed:
 * ; deprecated in 1.27
 * ; deprecated in 1.27
 * ; deprecated in 1.28 (obsolete no-op)
 * ; deprecated in 1.27
 * ; deprecated in 1.25
 * ; deprecated in 1.25
 * *Additionally, the protected  array, only accessed through the above and with no known uses, was removed.
 * La méthode no-op, qui était obsolète en 1.27, a été supprimée.
 * The following variables and methods in, deprecated in MediaWiki 1.30, were removed:
 * — use
 * — use
 * — use
 * – use
 * – use
 * – use
 * – use  or
 * – use  or
 * , deprecated in 1.29, has been removed.
 * In, the cookie-related methods which were wrappers for the functions on the response object, and were deprecated in 1.27, have been removed:
 * *Note that  remains, and is not deprecated.
 * Also in, some auth-related methods which were deprecated in 1.27 have been removed:
 * – use
 * – create a  directly
 * The global functions  and , deprecated in 1.25, have been removed.
 * , deprecated in 1.24, has been removed. You can use  instead.
 * , deprecated in 1.25, has been removed. You can use  instead.
 * The global function, deprecated in 1.27, has been removed. Use   directly.
 * Calling  explicitly during an implicit transaction or when   is set results in an exception. Calling   explicitly for an implicit transaction also results in an exception. Previously these were logged as errors. The   and   methods, or , should be used instead.
 * The global function  was removed; use the its replacement   instead. The global function was only sometimes defined. Its replacement is always available via the autoloader.
 * and, deprecated in 1.28, have been removed. Use   and   instead.
 * , deprecated in 1.25, has been removed. You can use  instead.
 * &, deprecated in 1.25, have been removed.
 * The  class, deprecated in 1.25 and unused, has been removed.
 * The  hook, deprecated in 1.30, has been removed. Use   to expose local variables instead of global ones.
 * As part of work to modernise user-generated content clean-up, a config option and some methods related to HTML validity were removed without deprecation. The public methods  and the path through which it was called, , are removed, as are the testing methods   and  . The $  configuration option is removed and will be ignored.
 * Execution of external programs using  now applies the   Firejail restriction by default.
 * The  and   methods, deprecated in 1.26, were removed.
 * The deprecated ' ' module alias was removed. Use the ' ' module directly.
 * The global functions  and , deprecated in 1.25, have been removed.
 * , deprecated in 1.24, has been removed. You can use  instead.
 * , deprecated in 1.25, has been removed. You can use  instead.
 * The global function, deprecated in 1.27, has been removed. Use   directly.
 * Calling  explicitly during an implicit transaction or when   is set results in an exception. Calling   explicitly for an implicit transaction also results in an exception. Previously these were logged as errors. The   and   methods, or , should be used instead.
 * The global function  was removed; use the its replacement   instead. The global function was only sometimes defined. Its replacement is always available via the autoloader.
 * and, deprecated in 1.28, have been removed. Use   and   instead.
 * , deprecated in 1.25, has been removed. You can use  instead.
 * &, deprecated in 1.25, have been removed.
 * The  class, deprecated in 1.25 and unused, has been removed.
 * The  hook, deprecated in 1.30, has been removed. Use   to expose local variables instead of global ones.
 * As part of work to modernise user-generated content clean-up, a config option and some methods related to HTML validity were removed without deprecation. The public methods  and the path through which it was called, , are removed, as are the testing methods   and  . The $  configuration option is removed and will be ignored.
 * Execution of external programs using  now applies the   Firejail restriction by default.
 * The  and   methods, deprecated in 1.26, were removed.
 * The deprecated ' ' module alias was removed. Use the ' ' module directly.
 * The deprecated ' ' module alias was removed. Use the ' ' module directly.

Obsolètes en 1.31

 * The  class was deprecated in favor of ,  , and   and its subclasses.
 * The global function  is deprecated in favour of
 * The global function  is now deprecated in favor of
 * Several methods for returning lists of fields to select from the database have been deprecated in favor of similar methods that also return the tables to select from and the join conditions for those tables.
 * with a prefix no longer works
 * with a prefix no longer works
 * was deprecated.
 * Access to  class properties was deprecated, the relevant getters should be used instead.
 * is deprecated. Subclasses should override  instead.
 * Use of  to exit a script was deprecated. Use   instead.
 * Passing a  object to   is deprecated.
 * The  hook is now deprecated; use instead the hook  .   is still called, but the second and third parameter will always be  . Hard deprecation is scheduled for 1.32.
 * The following methods that get and set  state are deprecated. Callers should use the new stateless   parameter to   instead.
 * *The public  state fields   and   are also deprecated.
 * has been deprecated; use  instead.
 * était obsolète, et remplacé par . Initialiser des variables de modèle avec des références conduit à violer le principe selon lequel les données ne peuvent changer de place une fois ajoutées au modèle de l'habillage. En pratique, cette méthode n'a pas été utilisée pour cela. Plutôt   existait pour l'optimisation mémoire en PHP 4.
 * and  were deprecated in favour of   parameters.
 * était obsolète, remplacer par  ou
 * Passing  to   is deprecated. Use the ' ' transform to   instead.
 * (no namespace) is deprecated, the namespaced class  from the   library should be used instead.
 * is deprecated. Instead, get an instance from.
 * The following  methods have had their signatures changed to introduce a   parameter, usage of the methods on instances retrieved from   will remain unchanged but deprecated:
 * The following methods in  have been renamed, and the old ones are deprecated:
 * – use
 * – use
 * – use
 * – use
 * – use
 * The following methods related to caching of half-parsed HTML were deprecated:
 * The  class is deprecated, use   instead.
 * The type  for the parameter   of   is deprecated.
 * is deprecated.
 * The  constant is deprecated.   should be used instead.
 * The function  has been deprecated, use.
 * In the future, the hooks ' ' and ' ' will be allowed to provide any HTMLForm object rather than.
 * *The public  state fields   and   are also deprecated.
 * has been deprecated; use  instead.
 * était obsolète, et remplacé par . Initialiser des variables de modèle avec des références conduit à violer le principe selon lequel les données ne peuvent changer de place une fois ajoutées au modèle de l'habillage. En pratique, cette méthode n'a pas été utilisée pour cela. Plutôt   existait pour l'optimisation mémoire en PHP 4.
 * and  were deprecated in favour of   parameters.
 * était obsolète, remplacer par  ou
 * Passing  to   is deprecated. Use the ' ' transform to   instead.
 * (no namespace) is deprecated, the namespaced class  from the   library should be used instead.
 * is deprecated. Instead, get an instance from.
 * The following  methods have had their signatures changed to introduce a   parameter, usage of the methods on instances retrieved from   will remain unchanged but deprecated:
 * The following methods in  have been renamed, and the old ones are deprecated:
 * – use
 * – use
 * – use
 * – use
 * – use
 * The following methods related to caching of half-parsed HTML were deprecated:
 * The  class is deprecated, use   instead.
 * The type  for the parameter   of   is deprecated.
 * is deprecated.
 * The  constant is deprecated.   should be used instead.
 * The function  has been deprecated, use.
 * In the future, the hooks ' ' and ' ' will be allowed to provide any HTMLForm object rather than.
 * The following methods related to caching of half-parsed HTML were deprecated:
 * The  class is deprecated, use   instead.
 * The type  for the parameter   of   is deprecated.
 * is deprecated.
 * The  constant is deprecated.   should be used instead.
 * The function  has been deprecated, use.
 * In the future, the hooks ' ' and ' ' will be allowed to provide any HTMLForm object rather than.
 * The type  for the parameter   of   is deprecated.
 * is deprecated.
 * The  constant is deprecated.   should be used instead.
 * The function  has been deprecated, use.
 * In the future, the hooks ' ' and ' ' will be allowed to provide any HTMLForm object rather than.

Autres modifications en 1.31

 * Le support de l'explorateur Internet Explorer 10 a été abaissé du Grade A au Grade C.
 * Le support de l'explorateur Opera 12 ou plus ancien a été abandonné complètement. Opera 15+ reste au Grade A.
 * Multi-content-revision capability was introduced into the storage layer. See .
 * The " " CSS class is now only applied to unbracketed URLs in wikitext. Links written using square brackets will get the class " ", not " ".
 * : Whitespace is trimmed from wikitext headings, wikitext list items, wikitext table captions, wikitext table headings, wikitext table cells. HTML headings, HTML list items, HTML table captions, HTML table headings, HTML table cells will not have this trimming behavior.