Extension:YouTube/fr

From Linux Web Expert

Revision as of 05:44, 16 January 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Manuel des extensions MediaWiki
YouTube
État de la version : stable
Implémentation Balise , Média
Description
Allows to embed YouTube and Google Videos movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video
Auteur(s) Przemek Piotrowski
MediaWiki
Modifie la base
de données
Non
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement
Exemple Any ShoutWiki site
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 YouTube sur translatewiki.net si elle y est disponible
Rôle Vagrant youtube

The YouTube extension allows users to embed YouTube and Google Videos movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video.

Fait au départ par et pour Fandom , bien que Fandom n'utilise plus cette extension vidéo.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/YouTube/fr</tvar>|Download]] and move the extracted <tvar name=name>YouTube/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/YouTube%2Ffr
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'YouTube/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>

Utilisation

To embed a YouTube video:

‎<youtube>foo‎</youtube>

where foo is the video ID from the URL. i.e. if the video's URL is https://www.youtube.com/watch?v=VyBSS48E4xI, then the embed code would be:

Autres services vidéo pris en charge

See ShoutWiki's help page on using the YouTube extension for more information, such as using alternate, non-YouTube providers to embed content.

The YouTube extension allows also to embed videos from these services:

Google Videos ‎<gvideo>
Archive.org video ‎<aovideo>
WeGame ‎<wegame>
Tangler forum ‎<tangler>
Gametrailers ‎<gtrailer>
Nicovideo ‎<nicovideo>
GoGreenTube ‎<ggtube>

Définir la largeur et la hauteur

Example:

You can change the width and height of the video box

  • Width is controlled with width="xxx", where xxx is the number of pixels.

The default is 640 pixels.

  • Height is controlled in the same way with height="xxx".

The default is 385 pixels.