Template:MC/YouTube playlist
More actions
Template:Documentation header Template:Lua Template:Shortcut
This template should be used to embed YouTube playlists.
Usage
{{playlist
| 1 = Playlist ID
| 2 = Width (defaults to 425)
| 3 = Height (defaults to width ÷ (16÷9) rounded to the nearest integer)
| align = Alignment
| caption = Caption
| nocat = Prevents category to be added
}}
- Using this template on a page categorizes the page into Category:Pages with YouTube videos unless
|nocat=is used.
Parameters
<templatedata> { "params": { "1": { "label": "Video ID", "description": "The video ID that must be added.", "type": "string",
"suggested": true
}, "2": { "label": "Video width", "description": "Changes the width of the video. Defaults to 425", "type": "string" }, "3": { "label": "Video height", "description": "Changes the height of the video. Defaults to width ÷ (16÷9) rounded to the nearest integer", "type": "string" }, "align": { "label": "Video alignment", "description": "Changes the alignment of the video.", "type": "string" }, "caption": { "label": "Video caption", "description": "Adds an optional caption for the video.", "type": "string" }, "nocat": { "label": "Category supressor", "description": "Prevents Category:Pages with YouTube videos to be added to a page using this template.", "type": "string" } }, "description": "This template adds a video that can be embedded on a page directly instead on needing to upload it directly to the wiki.", "format": "inline" } </templatedata>
Examples
- Default usage
{{YouTube playlist|PLZHdY_46KnYtVpQLh8DrmgO4g6311mWPF}}
See also
- {{YouTubeLink}} – to link to a video, rather than embed it
- {{YouTube}} – for an individual video
- {{CollapsedVideo}} – to put an embedded video in a collapsed table that links to YouTube
- {{Vimeo}} – to post a video from Vimeo
it:Template:Playlist di YouTube pt:Predefinição:Playlist do YouTube
uk:Шаблон:Список відтворення YouTubeIf you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/YouTube playlist/doc. (View all subpages of this page.)