35 lines
755 B
ReStructuredText
35 lines
755 B
ReStructuredText
Youtube
|
|
-------
|
|
|
|
Youtube wiki macro for Redmine.
|
|
|
|
.. function:: {{youtube(video [, width=WIDTH, height=HEIGHT, autoplay=BOOL])}}
|
|
|
|
Show Youtube embedded video
|
|
|
|
:param string video: Youtube video code, e.g. wvsboPUjrGc. This is the part after https://www.youtube.com/watch?v=
|
|
:param int width: video width
|
|
:param int height: video height
|
|
:param boot autoplay: auto play video, if true
|
|
|
|
Examples
|
|
++++++++
|
|
|
|
Youtube video with video ``wvsboPUjrGc`` (iframe) and default size 640x360
|
|
|
|
.. code-block:: smarty
|
|
|
|
{{youtube(wvsboPUjrGc)}}
|
|
|
|
Youtube video with size 853x480
|
|
|
|
.. code-block:: smarty
|
|
|
|
{{youtube(wvsboPUjrGc, width=853, height=480)}}
|
|
|
|
Youtube video with auto play
|
|
|
|
.. code-block:: smarty
|
|
|
|
{{youtube(wvsboPUjrGc, autoplay=true)}}
|