Nuevo plugin Additionals 2.0.20
This commit is contained in:
parent
a2a901b71b
commit
93e1e28683
354 changed files with 40514 additions and 0 deletions
39
plugins/additionals/docs/macros/youtube.rst
Executable file
39
plugins/additionals/docs/macros/youtube.rst
Executable file
|
@ -0,0 +1,39 @@
|
|||
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 bool autoplay: auto play video, if true
|
||||
|
||||
Scope
|
||||
+++++
|
||||
|
||||
This macro works in all text fields with formatting support.
|
||||
|
||||
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)}}
|
Loading…
Add table
Add a link
Reference in a new issue