Template:Video youtube/doc

DCCWiki, a community DCC encyclopedia.
Jump to: navigation, search

This template is used to create pages within the 'Videos' namespace and is a helper/shortcut to the video template.

Differences in this template

This template is specific to the YouTube service and adds the thumbnail for the video automatically.

Other helper templates

There are some helper templates for videos for various service providers. They all mostly use the same syntax, some with minor tweaks.

Example

This links to a video on youtube with id 'pDNnjiRjxp4':

{{video youtube
|id=ohPPU2SnII0
|description=A video on using the Digitrax decoder tester. More details at [[Decoder_Tester|Decoder Tester]].
|summary=A video on using the Digitrax decoder tester, from the DCCWiki article on decoder testers.
|article=[[Decoder_Tester|Decoder Tester]]
|category=Decoder
|keywords=digitax DSC52,digitrax
}}

The ID of the video can be found within the url. In this example, the url was https://www.youtube.com/watch?v=ohPPU2SnII0.

Arguments

List of arguments:

Attribute Description Example
id="[id|url]" Required: yes
The raw ID of the video or URL from the player page.
id=ohPPU2SnII0
article="[wiki text]" Required: yes
Used for the SEO description. Basically the same as description, but without formatting for links.
article=[[Decoder_Tester|Decoder Tester]]
seealso="[wiki text]" Required: No
A formatted list of articles to also see. 'Must have a new line after the = sign.
seealso= * [[Decoders]] * [[Boosters]]
description="[wiki text]" Required: yes
Displays the description around the video. The difference between seodescription and description: Description is display within the video page, while seodescription is used in the HTML meta data so search engines can find the page.
description=A video on using the Digitrax decoder tester. More details at Decoder Tester.
summary="[wiki text]" Required: no, but STRONGLY encouraged
Used for the SEO description. Basically the same as description, but without formatting for links.
summary=A video on using the Digitrax decoder tester, from the DCCWiki article on decoder testers.
category="[wiki text]" Required: no
What category to add the video to. Think of this as the primary keyword. This is be used to sort videos into primary topics.
category=Decoder
keywords="[wiki text]" Required: no, Default: none
A comma separated list of keywords. This will be used to help users find other related videos.
urlargs="modestbranding=1&version=3" Required: no, Default: none
Allows extra URL arguments to be appended to the generated embed URL. This is useful for obscure options only supported on one service.