DokuWiki plugin

YouTube plugin

This 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)}}


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

Syntax
**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 ->

Link only

Moving atoms at variuous temp.

Default

← Aligned left



Aligned right →

Installation

  1. Download youtube.zip and extract it.
  2. Upload the extracted 'youtube' folder to /lib/plugins/ directory of your DokuWiki.

Links

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.
 
en/youtube_plugin.txt · Last modified: 2010/12/12 09:27 by obataya
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
2010 I.Obataya