Extension:YouTube/en
From Linux Web Expert
YouTube Release status: stable |
|
---|---|
Implementation | Tag , Media |
Description | Allows to embed YouTube and Google Videos movies, Archive.org audio and video, WeGame and Gametrailers video, Tangler forum, and GoGreenTube video |
Author(s) | Przemek Piotrowski |
MediaWiki | |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
Example | Any ShoutWiki site |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the YouTube extension if it is available at translatewiki.net | |
Vagrant role | 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.
Originally made by and for Fandom , though Fandom no longer uses this extension.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/YouTube/en</tvar>|Download]] and move the extracted <tvar name=name>
YouTube/en
</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%2Fen - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'YouTube/en' );
- 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>
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:
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:
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.
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions/en
- Tag extensions/en
- Media handling extensions/en
- Extensions without MediaWiki version
- GPL licensed extensions/en
- Extensions in Wikimedia version control/en
- All extensions/en
- Extensions not in ExtensionJson
- YouTube extensions/en
- Video player extensions/en
- Extensions by Fandom/en