Diferencia entre revisiones de «Widget:YouTube»
(No se muestra una edición intermedia del mismo usuario) | |||
Línea 13: | Línea 13: | ||
<nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki> | <nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki> | ||
− | Parameters | + | ===Parameters=== |
id - video ID (from the URL) | id - video ID (from the URL) | ||
Línea 23: | Línea 23: | ||
height and width define view dimensions, 420x350 is default | height and width define view dimensions, 420x350 is default | ||
− | Single clip | + | ===Single clip=== |
Syntax | Syntax | ||
Línea 29: | Línea 29: | ||
<nowiki>{{#widget:YouTube|id=Ukytqe9pwDM}}</nowiki> | <nowiki>{{#widget:YouTube|id=Ukytqe9pwDM}}</nowiki> | ||
− | Single clip starting at 300 seconds | + | ===Single clip starting at 300 seconds=== |
Syntax | Syntax | ||
Línea 35: | Línea 35: | ||
<nowiki>{{#widget:YouTube|id=Ukytqe9pwDM|start=300}}</nowiki> | <nowiki>{{#widget:YouTube|id=Ukytqe9pwDM|start=300}}</nowiki> | ||
− | Playlist | + | ===Playlist=== |
Syntax | Syntax | ||
Línea 41: | Línea 41: | ||
<nowiki>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}</nowiki> | <nowiki>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}</nowiki> | ||
− | Playlist with different dimensions | + | ===Playlist with different dimensions=== |
Syntax | Syntax | ||
− | <nowiki>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F|height= | + | <nowiki>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F|height=360|width=630}}</nowiki> |
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''. | To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''. | ||
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}--><!--{if isset($cc)}-->?cc_load_policy=1<!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly> | </noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="https://www.youtube.com/embed/<!--{if isset($playlist)}-->?listType=playlist&list=<!--{$playlist|escape:'urlpathinfo'}--><!--{else}--><!--{$id|escape:'urlpathinfo'}--><!--{/if}--><!--{if isset($cc)}-->?cc_load_policy=1<!--{/if}-->" frameborder="0" allowfullscreen></iframe></includeonly> |
Revisión actual del 11:26 18 sep 2021
This widget allows you to add a YouTube video player to your wiki page.
Using this widget
For information on how to use this widget, see the widget description page on MediaWikiWidgets.org.
This widget allows you to add a YouTube video player to your wiki page.
It was created by Yaron Koren and extended by Karsten Hoffmeyer.
To insert this widget, use the following code:
{{#widget:YouTube|id=DWef69ItVrU}}
Parameters
id - video ID (from the URL)
start - timestamp of starting point within the video in seconds
playlist - playlist name (starts with PL) - first clip is played (id and start are ignored)
height and width define view dimensions, 420x350 is default
Single clip
Syntax
{{#widget:YouTube|id=Ukytqe9pwDM}}
Single clip starting at 300 seconds
Syntax
{{#widget:YouTube|id=Ukytqe9pwDM|start=300}}
Playlist
Syntax
{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}
Playlist with different dimensions
Syntax
{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F|height=360|width=630}}
Copy to your site
To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:YouTube.