User:DoubleYou/testpack/Video: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq: {{{embed}}} | true | <div style="padding-bottom:2em;">{{#ev:youtube|{{{1}}}|{{{width|360}}}|{{{align|left}}}|{{{3|}}} }}</div> | {{#tag:hsyoutube|http://www.youtube.com/watch?v={{{1}}}|title={{{2}}}|caption={{{3|}}} }} }}</includeonly><noinclude>
<includeonly>{{#ifeq: {{{embed}}} | true | {{#ev:youtube|{{{1}}}|{{{width|360}}}|{{{align|left}}}|{{{3|}}} }}<br><br><br><br><br><br><br> | {{#tag:hsyoutube|http://www.youtube.com/watch?v={{{1}}}|title={{{2}}}|caption={{{3|}}} }} }}</includeonly><noinclude>
==Usage Examples==
==Usage Examples==
This template displays a Youtube video link using the Highslide plugin.<br>
This template displays a Youtube video link using the Highslide plugin.<br>

Revision as of 04:28, August 22, 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:

This is the title

This is the caption


Code:

{{User:DoubleYou/testpack/Video|j4ZQpzf_iAE|This is the title|This is the caption|embed=true|width=480|align=right}}

Result:

This is the caption