DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:youtube

YouTube plugin

Compatible with DokuWiki

  • 2013-12-08 "Binky" yes
  • 2013-05-10 "Weatherwax" yes
  • 2012-10-13 "Adora Belle" unknown
  • 2012-01-25 "Angua" unknown

plugin Plugin that creates a link or an embed object of YouTube movie.

Last updated on
2008-04-05
Provides
Syntax

Details and Download

:!: This old code won't be maintained anymore. Please use vshare or youtubev2.

iobatayaiobataya

Japan
2010/12/07 00:02

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.
medium Displays a medium 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

Nice plugin! I just wanna say thank you.

Yutaka Moromizato 2010/02/23 13:21

Thanks for this - works right out of the tin in Lemming. Our first tube is “Wikis in Plain English” ,lol — Darryl, Cape Town

Not working anymore? My page shows a white empty rectange only but no movie either in Chrome or IE.

plugin/youtube.txt · Last modified: 2014/04/18 18:37 by 2001:4dd0:ff00:8eb9:481e:9d4b:3369:88c