1A20.1 Demo test 2 : Différence entre versions

De PhyLab
Sauter à la navigation Sauter à la recherche
 
Ligne 1 : Ligne 1 :
<noinclude>
+
{{Widget
This widget allows you to add YouTube video player to your wiki page.
+
|author=Yaron Koren
 +
|provider=YouTube
 +
|providerurl=http://code.google.com/apis/youtube/player_parameters.html
 +
|addedon=May 16, 2008
 +
}}
 +
This widget allows you to add [http://www.youtube.com/ YouTube] video player to your wiki page.
  
It was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
+
It was created by [[User:Yaron Koren|Yaron Koren]].
  
== Using this widget ==
+
To insert this widget, use the following code:
For information on how to use this widget, see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
 
  
== Copy to your site ==
+
  <nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki>
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
+
 
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'425'}-->" height="<!--{$height|escape:'html'|default:355}-->" src="http://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></includeonly>
+
== Parameters ==
 +
* '''id''' - video id (from the URL)
 +
* '''height''' and '''width''' define view dimensions, 420x350 is default
 +
 
 +
== Sample result ==
 +
{{#widget:YouTube|id=Ukytqe9pwDM}}
 +
 
 +
[[Category:Video Widget]]
 +
{{Comments}}

Version actuelle datée du 2 mars 2012 à 18:51

Modèle:Widget This widget allows you to add YouTube video player to your wiki page.

It was created by Yaron Koren.

To insert this widget, use the following code:

 {{#widget:YouTube|id=DWef69ItVrU}}

Parameters

  • id - video id (from the URL)
  • height and width define view dimensions, 420x350 is default

Sample result

Modèle:Comments