- EmbedVideo拡張機能などをご利用ください。
- このヘルプには更新、または翻訳されていないコンテンツがあります。どなたでも翻訳にご協力いただくことができます。
- 原文 : w:Help:YouTube extension。
| ヘルプ:YouTube拡張機能 | |
|---|---|
| |
| 区分 | パーサーフック |
| 対象 | 全利用者 |
| 実装状況 | 全プロジェクト |
| Fandom |
|---|
| ヘルプ |
| 拡張機能 |
| ブログ (ブログリスト) 動画埋め込みツール Inputbox RandomSelection YouTube ニコニコ動画 Tab View RandomImage RSS イメージマップ SyntaxHighlight WikiaStats |
| 編集 |
| 管理者向けガイド |
| 方針 |
| コミュニケーション |
Fandomでは、簡単なコードを使うことでYouTube動画を記事中に表示させることができます。
The easiest way to embed video from several online video hosting services is to use the video embed tool. This tool supports a number of different video types from several popular sources, including YouTube.
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.
概要[]
<youtube width="横幅" height="縦">ID</youtube>
IDのみ必須で、横幅及び縦の指定は任意です。
ID(必須)[]
http://www.youtube.com/watch?v=MAIpBSKJWXM
「v=」に続く文字(灰色)をIDとして指定してください。この場合だと、
- <youtube>MAIpBSKJWXM</youtube>
となり、
こんな風になります。どの動画を表示するかというパラメータになるので、未指定であったり間違ったIDを指定するときちんと表示されませんので注意。
Youtu.beの場合[]
https://youtu.be/MAIpBSKJWXM
最後の「/」以降の文字(灰色)がIDです。
横幅・縦(任意)[]
表示される際の動画の横幅及び縦を指定します。単位はpx。指定するかどうかは任意で、指定しなかった場合には横425px・縦350pxがデフォルトとして適用されます。比率は縦5横4の固定で、指定された値の比がそれに合わない場合は小さいほうに合わせて表示され余った部分は余白となります。
- 例1 [<youtube width="150" height="120">MAIpBSKJWXM</youtube>]縦横5対4
-
- 例2 [<youtube width="200" height="120">MAIpBSKJWXM</youtube>]横を大きく
-
- 例3 [<youtube height="120">MAIpBSKJWXM</youtube>]縦のみ指定
-
注意点[]
<youtube width="{{{1}}}" height="{{{2}}}">{{{3}}}</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).
外部リンク[]
その他のヘルプとフィードバック[]
- ヘルプ:コンテンツでは、他のヘルプページを閲覧、検索することができます。
- 最新の情報やヘルプについては、コミュニティセントラルをご覧ください。
- この記事で不明確な点や、曖昧な点がございましたら、Fandomとの連絡方法をご確認ください。
- このヘルプはコミュニティセントラル内にて管理されています。
