Template: Video

DCCWiki, a community DCC encyclopedia.
Jump to: navigation, search
[edit] Template documentation

This template implements the video embedding for use on the Videos namespace. This template formats the entire page for display.

Other templates

The templates below are meant for the Video namespace. For placing videos within an article, use the Template:Video inline and it's matching Template:Video demo.

Helper Templates

Use {{Video demo}} at the top of the page to link to the video section.

There are some helper templates for videos for various service providers. They all mostly use the same syntax below. If possible, please use one of the following templates:

Using video service specific templates helps with better Help:SEO such as automatically fetching the correct thumbnail image for the page.

Examples

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
}}

To use this template to get nearly the same results, use the example below. This example looks vary similar, but some SEO attributes will be missing.

{{video
|service=youtube
|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
}}

Arguments

List of arguments:

Attribute Description Example
service="(See Supported Services below.)" Required: yes
The video service to call.
service=youtube
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.
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.
category=Decoder
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.

Supported services

As of version 2.x, EmbedVideo supports embedding video content from the following services:

Site Service name(s) ID example URL example(s) Notes
Archive.org Videos archiveorg electricsheep-flock-244-80000-6 https://archive.org/embed/electricsheep-flock-244-80000-6
Bambuser bambuser 5262334 http://bambuser.com/v/5262334 Broadcasts
bambuser_channel Channels
Beam beam RocketBear https://beam.pro/RocketBear Streams
Bing bing 31ncp9r7l http://www.bing.com/videos/watch/video/adorable-cats-attempt-to-eat-invisible-tuna/31ncp9r7l
Blip.tv blip http://blip.tv/vinylrewind/review-6864612 Blip requires the full URL to the video page and does not accept the raw ID.
C3TV mediacccde 32c3-7305-quantum_cryptography https://media.ccc.de/v/32c3-7305-quantum_cryptography
CollegeHumor collegehumor 6875289 http://www.collegehumor.com/video/6875289/batman-says-his-goodbyes
Dailymotion dailymotion x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms http://www.dailymotion.com/video/x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms
Daum TVPot tvpot - Obtain the URL or ID from the share menu URL. s9011HdLzYwpLwBodQzCHRB http://tvpot.daum.net/v/s9011HdLzYwpLwBodQzCHRB
Div Share divshare
Edutopia Edutopia content moved to YouTube. Please use the YouTube service selector below.
FunnyOrDie funnyordie c61fb67ac9 http://www.funnyordie.com/videos/c61fb67ac9/to-catch-a-predator-elastic-heart-edition
Gfycat gfycat BruisedSilentAntarcticfurseal http://www.gfycat.com/BruisedSilentAntarcticfurseal
Hitbox hitbox Washuu http://www.hitbox.tv/Washuu
JW Player jwplayer cr5d8nbu-8ZpoNmmJ https://content.jwplatform.com/players/cr5d8nbu-8ZpoNmmJ.html
Kickstarter kickstarter elanlee/exploding-kittens https://www.kickstarter.com/projects/elanlee/exploding-kittens
Metacafe metacafe 11404579 http://www.metacafe.com/watch/11404579/lan_party_far_cry_4/
Nico Nico Video nico sm24394325 http://www.nicovideo.jp/watch/sm24394325
RuTube rutube b698163ccb67498db74d50cb0f22e556 http://rutube.ru/video/b698163ccb67498db74d50cb0f22e556/
SoundCloud soundcloud https://soundcloud.com/skrillex/skrillex-rick-ross-purple-lamborghini SoundCloud requires the full URL.
TeacherTube teachertube 370511 http://www.teachertube.com/video/thats-a-noun-sing-along-hd-version-370511
TED Talks ted bruce_aylward_humanity_vs_ebola_the_winning_strategies_in_a_terrifying_war http://www.ted.com/talks/bruce_aylward_humanity_vs_ebola_the_winning_strategies_in_a_terrifying_war
Tubi TV tubitv 318409 http://tubitv.com/video/318409
Tudou tudou mfQXfumwiew http://www.tudou.com/listplay/mfQXfumwiew.html
Twitch twitch twitchplayspokemon http://www.twitch.tv/twitchplayspokemon Live Streams
twitchvod Archived Videos on Demand
Videomaten videomaten
Vimeo vimeo 105035718 http://vimeo.com/105035718
Vine vine h2B7WMtuX2t https://vine.co/v/h2B7WMtuX2t
Yahoo Screen yahoo katy-perry-dances-sharks-2015-024409668 https://screen.yahoo.com/videos-for-you/katy-perry-dances-sharks-2015-024409668.html
YouTube youtube pSsYTj9kCHE https://www.youtube.com/watch?v=pSsYTj9kCHE Single videos
youtubeplaylist https://www.youtube.com/watch?v=CW_PbErQ_c8&list=PL76E80C7F756A2047 Playlists
youtubevideolist https://www.youtube.com/watch?v=CW_PbErQ_c8&playlist=CW_PbErQ_c8,CW_PbErQ_c8 Video list
Youku youku XODc3NDgzMTY4 http://v.youku.com/v_show/id_XODc3NDgzMTY4.html