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'.
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 }} |
**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
Default
← Aligned left
Aligned right →