Extension:NativeSvgHandler/fr

From Linux Web Expert

Manuel des extensions MediaWiki
NativeSvgHandler
État de la version : stable
Implémentation Média
Description Serves SVG images directly to clients
Auteur(s) alistair3149talk
Dernière version 1.4.0
Politique de compatibilité Le master conserve la compatibilité arrière.
MediaWiki 1.35+
Modifie la base
de données
Non
Licence Licence publique générale GNU v3.0
Téléchargement
Téléchargements trimestriels Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Utilisé par les wikis publics Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Traduire l’extension NativeSvgHandler sur translatewiki.net si elle y est disponible

The NativeSvgHandler extension allows SVG files to be served directly to clients for client-side rendering.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/NativeSvgHandler/fr</tvar>|Download]] and move the extracted <tvar name=name>NativeSvgHandler/fr</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NativeSvgHandler%2Ffr
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'NativeSvgHandler/fr' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Security

NativeSvgHandler serves SVG directly to clients through image tags, which is not vulnerable to XSS attack. XSS attacks are only relevant when it is accessed directly through original file on the file page, which is neither in the scope nor in control of this extension.

See also