
Difference between revisions of "Template:Youtube"
(margins) |
(auto lang cat) |
||
Line 2: | Line 2: | ||
{{#evp:youtube|{{{1|I3yKmjMmo6M}}}|{{{width|500}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}} | {{#evp:youtube|{{{1|I3yKmjMmo6M}}}|{{{width|500}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}} | ||
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div> | | <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div> | ||
− | }}</div><noinclude>{{Doc begin}} | + | }}</div><!-- |
+ | // Auto language tracking | ||
+ | -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{auto lang cat}}|}}<!-- | ||
+ | --><noinclude>{{Doc begin}} | ||
This template will embed a video inside an article. | This template will embed a video inside an article. |
Revision as of 03:31, 10 October 2010
The #evp parser function was deprecated in EmbedVideo 2.0. Please convert your parser function tag to #ev.
Caption here.
Documentation for Youtube
This template will embed a video inside an article.
Syntax
Basic:
{{youtube|YouTube id}}
With a defined thumbnail width:
{{youtube|YouTube id|width=value|align=alignment}}
- YouTube Video Id
- The YouTube video id of the video to include.
- Width
- Width of the video, in pixels. Height is automatically calculated. Default is 500px.
- Align
- Horizontal alignment of video. Default is left.
See also
{{youtube tn}}