====== YouTube plugin ====== ---- plugin ---- description: Plugin that creates a link or an embed object of YouTube movie. author : Ikuo Obataya email : I.Obataya@gmail.com type : syntax lastupdate : 2008-04-05 compatible : 2006-11-06 or later depends : conflicts : similar : flowplay, youtubev2, google_video, flashplayer, video, dailymotion tags : youtube, movie, flash, video, embed ---- [[http://wiki.symplus.co.jp/computer/en/youtube_plugin|Details and Download]] ^ ZIP File ^ |{{http://wiki.symplus.co.jp/lib/exe/fetch.php/computer/source/youtube.zip?cache=nocache}}| =====Summary===== This DokuWiki plugin creates a link and embed a YouTube movie in an Wiki page. User can embed movies just input the movie ID with simple syntax as same as [[syntax#images_and_other_files]]. Check also the Jason's YouTube plugin ver.2 -> [[youtubev2]] \\ =====How to use===== You can display a YouTube movie by setting the '**command**' and the '**ID**' code. You can align the movie object by using whitespaces before/after brackets. **%%{{youtube>(command):(ID code)|(title)}}%%** \\ \\ ---- **Commands**\\ ^ link | Displays a link icon only. | ^ small | Displays a small YouTube movie.| ^ large | Displays a large YouTube movie.| **ID code**\\ You can find the ID code in the YouTube site.\\ **Title**\\ You can define a title of movie by putting on a pipe '|' after ID. It's optional. **Alignment**\\ Use white spaces for alignment of YouTube movie object. Syntax is same as [[http://www.dokuwiki.org/wiki:syntax?#images_and_other_files|images]]. ^ default |%%{{youtube>small:XXXXXX}}%% | ^ right | %%{{ youtube>small:XXXXXX}}%%| ^ left |%%{{youtube>small:XXXXXX }}%% | ^ center | %%{{ youtube>small:XXXXXX }}%% | =====Example===== Wiki syntax {{youtube>link:MJj5XWQHUFE}} -> Creates a link to YouTube {{youtube>small:MJj5XWQHUFE}} -> Creates a small movie object. {{youtube>large:MJj5XWQHUFE}} -> Creates a large movie object. Alignments (same as image alignment) {{youtube>small:MJj5XWQHUFE }} -> Align to left ^ {{ youtube>link:MJj5XWQHUFE}} -> Align to right ^ {{ youtube>link:MJj5XWQHUFE }} -> Centering ^ ^ =====History===== *2008.4.5 *Enable to set a title of movie. *2008.4.4 *Alignment of object was implemented. (Thanks, Aleksej!) *2008-3-21 *Vulnerability(XSS) was fixed. *An icon image was included. =====Discussion===== Good plugin, thanks! Whether it is possible to add an opportunity to do signatures and to place window on page on the right, at the left or on the center? Something like: %%{{youtube>small?right:xxxxxxxxx|Comment}}%% --- //[[ka2pink@gmail.com|Aleksej KUZNECOV]] 2008/03/30 22:53// Thanks, Aleksej. The plugin was upgraded. Right/left alignment can be written like this. %%{{ youtube>small:xxxxxxxxx}}%% %%{{youtube>small:xxxxxxxxx }}%% --- //[[I.Obataya@gmail.com|Ikuo Obataya]] 2008/04/04 05:47// By the way, do you want to display Comments as a text ?? --- //[[I.Obataya@gmail.com|Ikuo Obataya]] 2008/04/04 05:54// Ver.2008-4-5 can display a title text for 'link', while a title for 'small'/'large' movie on mouse-hover. --- //[[I.Obataya@gmail.com|Ikuo Obataya]] 2008/04/05 06:45// >Yes, on my wiki I need comments always as a text. I think for movie comments are more convenient, they are always necessary not only on mouse-hover. Whether it is possible to hope, that such opportunity will appear in the following version? Thanks for ver. 2008-4-4,5! --- //[[ka2pink@gmail.com|Aleksej KUZNECOV]] 2008/04/10 21:52// Good to see this plugin is actively maintained. I use Dokuwiki also as a blog. I would like to have the either the movie or a thumbnail in the rss feed. Since my blog is announced on some planets, I always have to alert to visit the site in order to see the movie. --- //[[thadeu.penna@gmail.com|Thadeu Penna]] 2008/04/05 09:28// Hello, centering does not work for me. It seens to create a link to a image or something, wick is not found. Any clues? Thank you, --- //[[felipe.uderman@gmail.com|Uderman]]//