Help:Files: Difference between revisions

→‎Videos: Updated to use the YouTube video widget.
(→‎Videos: Updated to use the YouTube video widget.)
Line 48: Line 48:


==Videos==
==Videos==
All embedded videos are Flash-based; they can be embedded on pages as follows:
YouTube videos can be embedded in a page with: <tt><nowiki>{{#widget:youtube|id=&lt;id&gt;}}</nowiki></tt>.
* <tt><nowiki>{{#ev:service|id}}</nowiki></tt>
* <tt><nowiki>{{#ev:service|id|width}}</nowiki></tt>
* <tt><nowiki>{{#ev:service|id|width|align}}</nowiki></tt>
* <tt><nowiki>{{#ev:service|id|width|align|desc}}</nowiki></tt>


where:
Besides the ID parameter, which points to the YouTube video ID, you can also include any of the following:
* <tt>service</tt> is the name of a video sharing service ([[mw:Extension:EmbedVideo#Supported Services|supported services]])
* <tt>width=&lt;width&gt;</tt>: width in pixels of the viewing area.
* <tt>id</tt> is the id of the video to include
* <tt>height=&lt;height&gt;</tt>: height in pixels of the viewing area. If not present, it is calculated automatically.
* <tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically)
* <tt>playlist=&lt;id&gt;</tt>: embeds the first video in the specified playlist, and shows the rest of the videos after. With this, the <tt>id</tt> parameter is ignored.
* <tt>align</tt> (optional) is an alignment (float) attribute, "left" or "right"
* <tt>start=&lt;time&gt;</tt>: makes the video start at the specified number of seconds.
* <tt>desc</tt> (optional) is a short description to display beneath the video when it is aligned
* <tt>end=&lt;time&gt;</tt>: makes the video end at the specified number of seconds.
* <tt>thumb</tt>: makes the video show up in a thumbnail, like you would with an image.
* <tt>left</tt>: aligns the video to the left of the page.
* <tt>right</tt>: aligns the video to the right of the page.
* <tt>caption=&lt;text&gt;</tt>: a short description of the video. It shows up beneath it.


The number of videos used in articles should be kept to a minimum, and used only where necessary and useful. Examples of this are videos of glitches, which are easier to understand through a video, or pre-release material (though the text should not rely on videos for understanding, to cater for those who cannot watch them).
The number of videos used in articles should be kept to a minimum, and used only where necessary and useful. Examples of this are videos of glitches, which are easier to understand through a video, or prerelease material (though the text should not rely on videos for understanding, to cater for those who cannot watch them).


==Audio==
==Audio==