YouTube plugin

youtube plugin by Ikuo Obataya
Plugin that creates a link or an embed object of YouTube movie.

Last updated on 2008-04-05. Provides Syntax.
Compatible with DokuWiki 2006-11-06 or later.

Conflicts with vshare!
Similar to dailymotion, dailymotion_videozap, flashplayer, flowplay, flowplay2, google_video, video, vshare, youtubev2.

Tagged with embed, flash, media, video.

    Details and Download

    Downloadyoutube.zip

    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 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 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}} — 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 }}%%

    Ikuo Obataya 2008/04/04 05:47

    By the way, do you want to display Comments as a text ?? — 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. — 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 version 2008-4-4,5!

    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 2008/04/05 09:28

    Hello, centering does not work for me. It seems to create a link to a image or something, wick is not found. Any clues?

    Thank you,

    Uderman

     
    plugin/youtube.txt · Last modified: 2010/01/06 07:13 by iobataya
     
    Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
    Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
    WikiForumIRCBugsGitXRefTranslate