User:DoubleYou/testpack/Video: Difference between revisions
From Step Mods | Change The Game
< User:DoubleYou | testpack
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#tag:hsyoutube|http://www.youtube.com/watch?v={{{1}}}|title={{{2}}}|caption={{{3}}}}} | <includeonly>{{#if: {{{4|}}} | {{#tag:hsyoutube|http://www.youtube.com/watch?v={{{1}}}|title={{{2}}}|caption={{{3}}}}} | {{#ev:youtube|{{{1}}}|200|left|{{{3}}}}} }}</includeonly> | ||
<noinclude> | <noinclude> | ||
==Usage Examples== | ==Usage Examples== | ||
Line 11: | Line 11: | ||
'''Result:'''<br> | '''Result:'''<br> | ||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}} | {{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}} | ||
<br> | |||
'''Code:''' | |||
<pre> | |||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption|1}}</pre> | |||
'''Result:'''<br> | |||
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption|1}} | |||
</noinclude> | </noinclude> |
Revision as of 09:16, August 19, 2014
Usage Examples
This template displays a Youtube video link using the Highslide plugin.
parameter 1 is the Youtube id
parameter 2 is the title
parameter 3 is the caption
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption}}
Result:
Code:
{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption|1}}
Result: