Extension:YouTube/vi
YouTube Trạng thái phát hành: ổn định |
|
---|---|
Cài đặt | Tag , Truyền thông |
Mô tả | Cho phép gắn vào các Videos của YouTube và Goolge, Audio và video của Archive.org, video của WeGame và Gametrailers, diễn đàn Tangler, và GoGreenTube |
Tác giả | Przemek Piotrowski |
Phiên bản | 1.9.3 |
MediaWiki | >= 1.34.0 |
Database changes | Không |
Giấy phép | GNU General Public License 2.0 or later |
Tải xuống | |
Ví dụ | Any ShoutWiki site |
|
|
Quarterly downloads | 256 (Ranked 28th) |
Wiki công khai | 1,691 (Ranked 204th) |
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.
Cài đặt
- Download and move the extracted
YouTube
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube - Thêm mã sau vào dưới cùng tệp $LocalSettings của bạn:
wfLoadExtension( 'YouTube' );
- Xong – Chuyển tới Special:Version trên wiki của bạn để xác nhận phần mở rộng được cài đặt thành công.
Cách sử dụng
Để gắn một video của YouTube:
<youtube>foo</youtube>
Nếu URL của videos là https://www.youtube.com/watch?v=VyBSS48E4xI, thì có thể chèn như sau:
<youtube>VyBSS48E4xI</youtube>
Các video từ các nhà cung cấp khác cũng được hỗ trợ
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.
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |