Template:Video youtube/doc
DCCWiki, a community DCC encyclopedia.
This is a template documentation subpage for Template:Video youtube (see that page for the template itself). It contains usage information and other content that is not part of the original template page. |
This template is used to create pages within the 'Videos' namespace and is a helper/shortcut to the video template.
See also: Help:Videos
See also: Template:Video
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
|
id=ohPPU2SnII0 |
article="[wiki text]"
|
Required: yes
|
article=[[Decoder_Tester|Decoder Tester]] |
seealso="[wiki text]"
|
Required: No
|
seealso= * [[Decoders]] * [[Boosters]] |
description="[wiki text]"
|
Required: yes
|
description=A video on using the Digitrax decoder tester. More details at Decoder Tester. |
summary="[wiki text]"
|
Required: no, but STRONGLY encouraged
|
summary=A video on using the Digitrax decoder tester, from the DCCWiki article on decoder testers. |
category="[wiki text]"
|
Required: no
|
category=Decoder |
keywords="[wiki text]"
|
Required: no, Default: none
|
|
urlargs="modestbranding=1&version=3"
|
Required: no, Default: none
|