Manual:$wgFragmentMode/fr

Détermine la manière dont les ID des sections seront encodés.

Détails
Ce tableau contient 1 ou 2 éléments, chacun d'eux pouvant avoir une valeur parmi :


 * - modern HTML5 style encoding with minimal escaping. Displays Unicode characters in many browsers' address bars.
 * - ancien style d'encodage de MediaWiki, par exemple  devient.
 * corresponds to the DEPRECATED mode. DO NOT use it for anything but migration off that mode (see below).

Le premier élément du tableau indique le mode primaire d'échappement des IDs. C'est ce que voient les utilisateurs quand par exemple ils suivent un vers une section de page.

The optional second element defines a fallback mode, useful for migrations. If present, it will direct MediaWiki to add an empty to every section with its id attribute set to the fallback-encoded title so that links using the previous encoding still works.

Example: you want to migrate your wiki from 'legacy' to 'html5'. A la première étape, mettre cette variable à. After a while, when all caches (parser, HTTP, etc.) contain only pages generated with this setting, flip the value to. This will result in all internal links being generated in the new encoding while old links (both external and cached internal) will still work. After a long time, you might want to ditch backwards compatibility and set it to. After all, pages get edited, breaking incoming links no matter which fragment mode is used.

