Manual:Extension registration/Limitations/fr

Extension registration does have known limitations that may make it unsuitable to convert your extension immediately. Some of these are intentional, and others are just waiting for a developer to implement them :) If you find something you can't do, please file a bug for it in the MediaWiki-Configuration Phabricator project.


 * Configuration settings must have a prefix of "wg" resolved, use a magic "_prefix" key : T97186
 * les constantes PHP ne sont pas prises en charge. Such constants can either be used for settings within LocalSettings.php, or simply within the extension's code. If it's the latter, you should use class constants instead; these are superior for the same reason that class variables are better than global variables. If it's the former, you unfortunately cannot use either global constants or class constants: global constants can't be set in extension.json, and class constants will get initialized too late to be used. Instead, you should use raw strings, like 'medium' instead of ANIMATION_SPEED_MEDIUM or AnimationExtension::SPEED_MEDIUM. One advantage to this approach is that, if extensions ever get configured via a configuration database (there is a long-term plan for that to happen), strings will be easier to handle than integer constants.
 * Vous ne pouvez pas utiliser les chemins des fichiers dans extension.json - T100956
 * les espaces de noms conditionnels ne sont pas pris en charge : T141604
 * n'est pas disponible.

La solution de contournement dans la plupart des cas est d'utiliser l'enregistrement personnalisé. Si vous rencontrez un cas que vous ne pouvez pas résoudre, créez une tâche associée dans Phabricator.