Добро пожаловать на "Красненький" - в первую, почти_Свободную энциклопедию мира "В тылу врага"

Аааасьминоги!!!! А ты вырос, чтобы сюда заходить?! ВАЖНО: Многие материалы данного проекта являются артефактом жизни сообщества «В тылу врага» периода до 2009-2010 года. Некоторые размещенные здесь материалы могут показаться обидными, субъективными или оскорбительными, но… это было и это сохранено для истории. Проект отражает лишь мнение определенной группы людей об определенных событиях. Просим отнестись с уважением! Вы можете самостоятельно дополнить любые разделы, однако к ИЗМЕНЕНИЮ уже размещенной информации следует подходить с осторожностью. Перед использованием внимательно изучите цели, задачи, принципы функционирования и правила использования "Красного Уголка" и потренируйтесь в написании Синтаксиса в Песочнице.

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
wiki:syntax [2016/03/04 16:06]
warlordstrateg [Дискуссии]
wiki:syntax [2017/08/30 12:34] (текущий)
warlordstrateg
Строка 435: Строка 435:
 ===== 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&​parameter2//​|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 optionalYou 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 title (look for right space!):
-Wiki syntax +
-<​code>​ +
-{{youtube>​link:​MJj5XWQHUFE}} ​    -> Creates ​link to YouTube +
-{{youtube>​small:​MJj5XWQHUFE}} ​   -> Creates ​small movie object. +
-{{youtube>​large:MJj5XWQHUFE}} ​   -> Creates a large movie object. +
-</​code>​+
  
-Alignments (same as image alignment) +  {{ youtube>L-WM8YxwqEU?​small |Some funny video}}
-<​code>​ +
-{{youtube>​small:​MJj5XWQHUFE }}   ​-> Align to left +
-                           ^ +
-{{ youtube>link:​MJj5XWQHUFE}} ​   ​-> Align to right +
-  ^ +
-{{ youtube>​link:​MJj5XWQHUFE ​}}   -> Centering +
-  ^                        ^ +
-</​code>​+
  
 +Some other additional parameters are supported (depending on video service) as well:
  
-=====Discussion===== +  ​{{youtube>​L-WM8YxwqEU?​small&​start=30&​end=45|A random segment of 15 seconds}} 
-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. +
-  ​%%{{ youtube>​small:​xxxxxxxxx}}%% +
-  %%{{youtube>​small:​xxxxxxxxx }}%% +
 ===== Redirect ===== ===== Redirect =====
  

QR Code
QR Code wiki:syntax (generated for current page)