Extension:YouTube

From mediawiki.org
This page is a translated version of the page Extension:YouTube and the translation is 27% complete.
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
Dernière version 1.9.3
MediaWiki >= 1.34.0
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
  • $wgYouTubeEnableLazyLoad
Téléchargements trimestriels 261 (Ranked 26th)
Utilisé par les wikis publics 1,691 (Ranked 204th)
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

  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé YouTube dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'YouTube' );
    
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

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:

<youtube>VyBSS48E4xI</youtube>

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:

<youtube width="200" height="120">CCz1kmfqL7g</youtube>

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.