Dokuwiki for science

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

youtube_plugin [2016/10/30 23:20] (現在)
ライン 1: ライン 1:
 +======YouTube plugin======
 +This [[http://​wiki.splitbrain.org/​wiki:​plugins|DokuWiki plugin]] creates a link and embed a YouTube movie in an Wiki page. User can embed movies by just inputing a movie ID with a simple syntax.
 +
 +
 +:!: This old code won't be maintained anymore. Use other plugins '​**vshare**'​ or '​**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)}}%%**
 +
 +
 +----
 +
 +{{ youtube>​small:​MJj5XWQHUFE}}
 +**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://​wiki.splitbrain.org/​wiki:​syntax?#​images_and_other_files|images]].
 +
 +^  default ​ |%%{{youtube>​small:​XXXXXX}}%% ​   |
 +^  right    |  %%{{ youtube>​small:​XXXXXX}}%%|
 +^  left     ​|%%{{youtube>​small:​XXXXXX }}%%   |
 +^  center ​  ​| ​ %%{{ youtube>​small:​XXXXXX }}%%  |
 +<​clear/>​
 +
 +======Example======
 +<float right300>​
 +**Syntax**
 +<​code>​
 +**Link only**\\ ​
 +{{youtube>​link:​MJj5XWQHUFE}}
 +{{youtube>​link:​MJj5XWQHUFE|Moving atoms at variuous temp.}}
 +
 +**Default**\\ ​
 +{{youtube>​small:​MJj5XWQHUFE}}
 +
 +{{youtube>​small:​MJj5XWQHUFE }}
 +{{ youtube>​small:​MJj5XWQHUFE|This movie is aligned to right.}}
 +
 +<- Aligned left\\ ​
 +\\ \\ \\ 
 +Aligned right ->
 +</​code>​
 +</​float>​
 +
 +**Link only**\\ ​
 +{{youtube>​link:​MJj5XWQHUFE}}
 +{{youtube>​link:​MJj5XWQHUFE|Moving atoms at variuous temp.}}
 +
 +**Default**\\ ​
 +{{youtube>​small:​MJj5XWQHUFE}}
 +
 +{{youtube>​small:​MJj5XWQHUFE }}
 +{{ youtube>​small:​MJj5XWQHUFE|This movie is aligned to right.}}
 +
 +<- Aligned left\\ ​
 +\\ \\ \\ 
 +Aligned right ->
 +
 +<​clear/>​
 +
 +======Installation======
 +  -Download {{computer:​source:​youtube.zip?​cache=nocache}} and extract it.
 +  -Upload the extracted '​youtube'​ folder to /​lib/​plugins/​ directory of your DokuWiki.
 +
 +  *{{computer:​source:​youtube.zip?​cache=nocache}}
 +
 +
 +
 +======Links======
 +<float icon(compass)>​
 +  *[[http://​wiki.splitbrain.org/​plugin:​youtubev2]]\\ ​ -> Jason T's plugin with/​without thumbnails
 +</​float>​
 +<​clear/>​
 +
 +
 +
 +======History======
 +  *2008.4.5
 +    *Enable to set a title of movie
 +  *2008.4.4
 +    *Alignment of object was implemented. (Thanks, Aleksej!)
 +  *2008.3.21
 +    *Vulnerablity(XSS) was fixed.
 +    *Icon image was included.