Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
wiki:syntax [2009/10/14 01:07] diabllo |
wiki:syntax [2017/08/30 12:34] (текущий) warlordstrateg |
||
---|---|---|---|
Строка 423: | Строка 423: | ||
- | ===== Дискуссии ===== | + | ==== Ключевые слова и описания ==== |
+ | Чтобы вашу статью нашли поисковики, рекомендуем указывать краткое описание (которое увидят поисковики) и ключевые слова. | ||
- | Для управление дискуссией, необходимо вставить следующие коды внизу страницы: | ||
<code> | <code> | ||
- | ~~DISCUSSION~~ | + | {{keywords>art in the park,Sheffield,urban,street,creative}} |
- | ~~DISCUSSION:off~~ | + | |
- | ~~DISCUSSION:closed~~ | + | |
- | ~~DISCUSSION|Custom Title String~~ | + | |
- | ~~DISCUSSION:closed|Custom Title String~~ | + | |
</code> | </code> | ||
+ | <code> | ||
+ | {{description>Place the page description here}} | ||
+ | </code> | ||
===== YouTube ===== | ===== YouTube ===== | ||
- | =====Summary===== | + | ===== Usage/Syntax ===== |
- | 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 [[:syntax#images_and_other_files]]. | + | |
- | Check also the Jason's YouTube plugin ver.2 -> [[youtubev2]] \\ | + | The basic syntax looks like this: ''%%{{%%//videosite//>//videoid//?//parameter1¶meter2//|title%%}}%%'' |
+ | * Where ''//videosite//'' is one of the identifiers listed in [[#Supported Services]] chapter | ||
+ | * and ''//videoid//'' is the identifier of the video at the respective site | ||
+ | * The ''//parameters//'' are optional. You start these with a ''?'' and separate more of them by a ''&''. Look in [[#Parameters]] chapter | ||
+ | * The title is optional as well. Look in [[#Examples]] chapter | ||
+ | * The video can be aligned by adding spaces on the left or right inside the curly brackets (like in the image syntax). Look in [[#Examples]] chapter | ||
- | =====How to use===== | + | A toolbar button pops up a prompt where you can simply paste the full URL to the page of the video you want to embed. The plugin will then try to figure out the video ID by itself |
- | 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. | + | === Parameters === |
+ | * The ''//size//'' parameter is the best supported parameter. You can either give it in the form: | ||
+ | * ''//width//x//height//'' like ''500x300'' | ||
+ | * or use the keywords ''small'', ''medium'' or ''large'' | ||
+ | * Some other additional parameters are supported (depending on video service) as well: | ||
+ | * Start point of video: ''&start=<seconds>'' (YouTube, DailyMotion) or ''&initial_time=<seconds>'' (TwitchTV) | ||
+ | * End point of video segment: ''&end=<seconds>'' (YouTube) | ||
+ | * Auto play: ''&autoplay=1'' (Vimeo, YouTube, DailyMotion, Bambuser) or ''&ap=1''(MetaCafe) | ||
+ | * Do not show related videos when playback ends: ''&rel=0'' (YouTube) | ||
+ | * Start slide: ''&startSlide=5'' (SlideShare) | ||
- | **%%{{youtube>(command):(ID code)|(title)}}%%** | + | ==== Examples ==== |
- | \\ \\ | + | |
- | ---- | + | Display a YouTube Video: |
- | **Commands**\\ | + | {{youtube>L-WM8YxwqEU}} |
- | ^ 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.\\ | + | Show a larger player: |
- | **Title**\\ | + | {{youtube>L-WM8YxwqEU?large}} |
- | You can define a title of movie by putting on a pipe '|' after ID. It's optional. | + | |
- | **Alignment**\\ | + | Right-align the player: |
- | Use white spaces for alignment of YouTube movie object. Syntax is same as [[http://www.dokuwiki.org/wiki:syntax?#images_and_other_files|images]]. | + | |
- | ^ default |%%{{youtube>small:XXXXXX}}%% | | + | {{ youtube>L-WM8YxwqEU}} |
- | ^ right | %%{{ youtube>small:XXXXXX}}%%| | + | |
- | ^ left |%%{{youtube>small:XXXXXX }}%% | | + | |
- | ^ center | %%{{ youtube>small:XXXXXX }}%% | | + | |
+ | Show a small, centered player: | ||
+ | {{ youtube>L-WM8YxwqEU?small }} | ||
- | =====Example===== | + | Show a small, centered player with a title (look for right space!): |
- | Wiki syntax | + | |
- | <code> | + | |
- | {{youtube>link:MJj5XWQHUFE}} -> Creates a link to YouTube | + | |
- | {{youtube>small:MJj5XWQHUFE}} -> Creates a small movie object. | + | |
- | {{youtube>large:MJj5XWQHUFE}} -> Creates a large movie object. | + | |
- | </code> | + | |
- | + | ||
- | Alignments (same as image alignment) | + | |
- | <code> | + | |
- | {{youtube>small:MJj5XWQHUFE }} -> Align to left | + | |
- | ^ | + | |
- | {{ youtube>link:MJj5XWQHUFE}} -> Align to right | + | |
- | ^ | + | |
- | {{ youtube>link:MJj5XWQHUFE }} -> Centering | + | |
- | ^ ^ | + | |
- | </code> | + | |
- | =====Discussion===== | + | {{ youtube>L-WM8YxwqEU?small |Some funny video}} |
- | 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}}%% | + | |
- | --- //[[ka2pink@gmail.com|Aleksej KUZNECOV]] 2008/03/30 22:53// | + | |
- | Thanks, Aleksej. The plugin was upgraded. Right/left alignment can be written like this. | + | Some other additional parameters are supported (depending on video service) as well: |
- | %%{{ youtube>small:xxxxxxxxx}}%% | + | |
- | %%{{youtube>small:xxxxxxxxx }}%% | + | |
+ | {{youtube>L-WM8YxwqEU?small&start=30&end=45|A random segment of 15 seconds}} | ||
+ | | ||
===== Redirect ===== | ===== Redirect ===== | ||
Строка 537: | Строка 521: | ||
http://www.dokuwiki.org/plugin:pagelist | http://www.dokuwiki.org/plugin:pagelist | ||
- | |||
- | <side>This is my centered note </side> | ||