Extension:YouTube

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:YouTube and the translation is 6% complete.
Other languages:
English • ‎Esperanto • ‎Tiếng Việt • ‎Türkçe • ‎ייִדיש • ‎中文 • ‎日本語 • ‎한국어
MediaWiki manüel uzantıları
OOjs UI icon advanced.svg
YouTube
Sürüm durumu: kararlı
Uygulama Etiket , Medya
Açıklama YouTube ve Google Videolar filmlerini, Archive.org ses ve video, WeGame ve Gametrailers videosunu, Tangler forumunu ve GoGreenTube videosunu gömme olanağı sağlar
Yazar(lar) Przemek Piotrowski
En son sürüm 1.9.3 (2018-10-13)
MediaWiki 1.34+
Veritabanı değişiklikleri Hayır
Lisans GNU Genel Kamu Lisansı 2.0 veya üstü
İndir
Örnek Any ShoutWiki site
Translatewiki.net adresinde mevcutsa, YouTube uzantısını çevirin
Kullanım ve sürüm matrisini kontrol edin.
Vagrant rolü youtube

YouTube uzantısı, kullanıcıların YouTube ve Google Videolar filmlerini, Archive.org ses ve videolarını, WeGame ve Gametrailers videosunu, Tangler forumunu ve GoGreenTube videosunu gömmelerine olanak tanır.

Originally made by and for Fandom , though Fandom no longer uses this video extension.

Installation

  • İndir ve dosyaları extensions/ klasörünüzdeki YouTube adlı bir dizine yerleştirin.
  • LocalSettings.php'inizin altına aşağıdaki kodu ekleyin:
    wfLoadExtension( 'YouTube' );
    
  • Yes Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için wikinizde Special:Version seçeneğine gidin.

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", 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.

See Fandom's old help page about this extension. It explains further details. Here is a link to the last version of it before it was blanked and redirected to the new video embed tool page on Fandom.

Old Fandom help page

See the Fandom help page on April 11, 2018 before it was redirected to the new video embed tool on Fandom.

That Fandom help page is not on Archive.org, so it is copied below in case Fandom deletes the old page altogether. Fandom licenses their material under CC BY-SA. See Fandom licensing page.

Old Fandom help page. -

This page documents how to use the YouTube video extension, an older video extension. Videos added using the YouTube tag are automatically converted to file pages so as to help reduce page load time and improve video data tracking. A few exceptions exist and are listed below.

Step-by-step

Using the YouTube extension

To add a video using the YouTube extension, you need the ID code for the video. The string of letters and numbers after "v=" in the URL is the ID code. So for the URL: https://www.youtube.com/watch?v=CCz1kmfqL7g the ID code would be CCz1kmfqL7g.

YouTube videos are embedded using two tags, with the ID code for the video you want to show between them:

<youtube>ID code</youtube>

"ID code" is the code from the YouTube URL. So in this example, you would use:

<youtube>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.

So the example from above could be:

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

Conversion

Once the page with the YouTube tag is saved the tag will be converted to a file page, pulling the name from the YouTube video name. Only the width is converted, except if the height is designed for use in an audio player. Attribution on the file page is attributed to the user who added the YouTube tag.

This happens in all circumstances except when the video play bar is smaller than 30 pixels in height. This will render a usable audio player on mobile devices and some desktop browsers (excluding Google Chrome).