User:DoubleYou/testpack/Video: Difference between revisions
From Step Mods | Change The Game
< User:DoubleYou | testpack
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
There are two methods Youtube videos can be displayed via this template: highslide link and embedded video.<br> | There are two methods Youtube videos can be displayed via this template: highslide link and embedded video.<br> | ||
*''parameter 1'' is the Youtube id | *''parameter 1'' is the Youtube id | ||
*''parameter 2'' is the title | *''parameter 2'' (optional) is the title | ||
*''parameter 3'' (optional) is the caption | *''parameter 3'' (optional) is the caption | ||
*parameter ''embed'' (optional) if set to true will embed the video instead of link to it with highslide. Please note that embedded videos will not display your specified title currently. | *parameter ''embed'' (optional) if set to true will embed the video instead of link to it with highslide. Please note that embedded videos will not display your specified title currently. | ||
*parameter ''width'' (optional), by default is set to 360, is in pixels how wide it should display (embed video only). | *parameter ''width'' (optional), by default is set to 360, is in pixels how wide it should display (embed video only). | ||
*parameter ''align'' (optional), by default left, allows you to set it to align to the right, left, or center of the page (embed video only). | *parameter ''align'' (optional), by default left, allows you to set it to align to the right, left, or center of the page (embed video only). | ||
'''Code:''' | |||
<pre>{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE}}</pre> | |||
'''Result:'''<br> | |||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE}} | |||
'''Code:''' | |||
<pre>{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}}</pre> | |||
'''Result:'''<br> | |||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}} | |||
'''Code:''' | '''Code:''' | ||
<pre> | <pre> | ||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE| | {{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|embed=true}}</pre> | ||
'''Result:'''<br> | '''Result:'''<br> | ||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE| | {{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|embed=true}} | ||
'''Code:''' | '''Code:''' | ||
<pre> | <pre> |
Revision as of 04:36, August 23, 2014
{{{2}}}
Usage
There are two methods Youtube videos can be displayed via this template: highslide link and embedded video.
- parameter 1 is the Youtube id
- parameter 2 (optional) is the title
- parameter 3 (optional) is the caption
- parameter embed (optional) if set to true will embed the video instead of link to it with highslide. Please note that embedded videos will not display your specified title currently.
- parameter width (optional), by default is set to 360, is in pixels how wide it should display (embed video only).
- parameter align (optional), by default left, allows you to set it to align to the right, left, or center of the page (embed video only).
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE}}
Result:
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}}
Result:
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|embed=true}}
Result:
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the caption|embed=true|width=480|align=center}}
Result: