Extension: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 (2018-10-13) |
MediaWiki | 1.39+ |
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 | 322 (Ranked 33rd) |
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 dossierextensions/
. - Ajoutez le code suivant à la fin de votre fichier
LocalSettings.php
:wfLoadExtension( 'YouTube' );
Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.
Usage
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>
Other supported video services
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>
|
Setting width and height
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"
, wherexxx
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.
Cette extension est incluse dans les paquets et / ou les fermes de wikis suivants : Cette liste ne fait pas autorité. Certaine fermes de wikis ou d'hébergeurs peuvent contenir ce extension même s'ils ne figurent pas ici. Vérifiez toujours cela dans votre environement avant de confirmer. |