Template:VideoGallery/doc

This template uses the embed video plugin to randomly select 3 videos from a predefined list and show them as thumbnails. The rest of the videos are returned as plain text links (throught the call of a variable).

Usage
The video gallery template should be called in the following way:

where
 * should be the number of video entries. N also should be always equal to this parameter.
 * is the ID of the video that you are embedding (like the bold part in this URL: http://www.youtube.com/watch?v= VqNcksMfAjM).
 * (optional) is the caption for the video. If no caption is entered or if the parameter is omitted, the template will return the video URL as title.
 * (optional) can be used to override the host site for that video, the default is YouTube.

Examples

 * We have 12 videos and their corresponding IDs and title. So,  should be 12. Then, every video ID and the corresponding title goes in one line:

The above example produces this: Please note that the remaining videos that haven't been chosen aren't here. Part of the functionality of this script is adding a list with links to the other videos that are available, and this list can be "embedded" in any part of the page by using the command. In the place that you call the videolinks variable you get this: