Help:Video

From Saintapedia
Jump to navigation Jump to search
Shortcut:
H:V
Help
Getting Started
Picking a UsernameTeach Yourself Wiki
Policies and guidelines
Saintapedia:Copyrights
The Saintapedia Interface
Left NavigationToolbox Discussion/Talk PageEdit & HistorySearchLog in & Create an Account
Editing Saintapedia
Creating a new pageCreating your user page • Editors (Visual/Enhanced) • Editing toolbarCheat SheetMagic wordsTable of Contents
Links
Internal linkExternal linkInterWiki linkCategory link Reference links
Images and Media
File Upload Guidelines for SaintapediaHow to upload new versions of filesImage mapNaming Conventions for FilesUpload documents
Tracking Changes
Recent Edits on SaintapediaArticle historyReverting to an earlier versionWatchlistHow to add a page to your watchlist
Asking Questions
Using talk pagesHelp:CommentStreams
Resources and Lists
Categories InfoboxHelp:Templates
Account settings and maintenance
Change your preferences Confirm your email address
Technical information
The MediaWiki softwareParser functions
All topics
view · talk · edit

Videos can be shown on Saintapedia from two sources:

  1. Streamed from the web (see YouTube videos) below
  2. Videos uploaded directly to Saintapedia (see File Sizes and Process and Mediaplayer)

Below is the general wiki text you need to use for each type.

  1. {{#ev:service|id|frame}} - Example: The famous "evolution of dance" YouTube video - {{#ev:youtube|dMH0bHeiRNg|frame}})
  2. <mediaplayer>URL</mediaplayer> - Example: Adding Saintapedia badges to user page - <mediaplayer>File:Adding badges to user page.flv</mediaplayer>

File Sizes and Process

Saintapedia's file upload limit is set to 3MB, which accommodates the vast majority of files on Saintapedia. Research shows that videos of 2-3 minutes in length are optimal for today's attention spans and the 15MB limit should be sufficient for most videos of that length.

Categories

  • Please add Category:Videos to your uploaded video.
  • Please add Category:Pages with videos to any page that has a video embedded on it. Note: Adding this category is particularly important because the way videos are embedded does not allow Saintapedia to track those links via the What Links Here tool.

YouTube videos

EmbedVideo

The EmbedVideo Extension adds a way embedding video clips from popular video sharing services.

Adding a video

Any publicly available YouTube video can be streamed on Saintapedia.

Form based method

Simple version
  • In VisualEditor use the add a template
  • In the search bar, type "YouTube video"
  • Add a description of the video in the first field
  • Add the video's URL into the 2nd field
  • Click the blue "Insert" button on the top right of the popup screen
  • Click the blue "Save change" button on the top right of the screen
  • Click the blue "Save change" button on the top right of the popup screen
More options and more steps

This method will allow you, once you add the template, to modify the video using a form in VisualEditor)

  1. Add the YouTube template to your page
    • Option 1 - Use VisualEditor to add a template, add subst:YouTube template in the template search box and click the blue "Insert" button
    • Option 2 - Copy the video template text in the bullet below.
      • {{#ev:YouTube|https://www.youtube.com/watch?v=kRphNpnQGNc|400|right|The Pontificate of John Paul II begins}}
    • By default the video will be aligned to the right, 400 pixels in size, show the Pontificate of John Paul II begins
  2. Go to the page in which you want to add the video
  3. Click on "Edit Source" to open the page using Enhanced editor and paste the template text where you want to video to appear
  4. Save the page
  5. Using "Edit," open the page using Help:Visual editor, look for the video to become a block that begins with "<iframe," and double click on it to open up the form.
  6. Add the YouTube URL in the "id" field and appropriate text in the "description" field, such as the video title (plus any other changes to the dimensions and alignment)
  7. Click on the blue "Apply change" in the upper right hand corner of the form
  8. Click on the blue "Save change" in the upper right hand corner of the page
  9. Add an edit summary in the window and click on the blue "Save change" in the upper right hand corner of the window
  10. Add the category "Pages with YouTube videos"

Basic method

  1. go to the youtube video you wish to use
  2. copy the video's url
  3. go to the article topic you wish to add the video
  4. edit the page
  5. paste the YouTube url
  6. Open a new tab and go to Saintapedia's YouTube page
  7. Copy the video text - {{#ev:youtube|kRphNpnQGNc|frame}}
  8. Replace the video ID (dMH0bHeiRNg) or the full URL (depending on the version you use)
  9. add an edit summary
  10. save the page

Usage

The EmbedVideo parser function expects to be called in any of the following ways:

  • {{#ev:service|id}}
  • {{#ev:service|id|dimensions}}
  • {{#ev:service|id|dimensions|alignment}}
  • {{#ev:service|id|dimensions|alignment|description}}
  • {{#ev:service|id|dimensions|alignment|description|container}}
  • {{#ev:service|id|dimensions|alignment|description|container|urlargs}}
  • {{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize}}
  • {{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize|valignment}}

Playlist

A playlist is a collection of videos. Anybody can make playlists, share them, and friends can add videos to your playlist.

Template

The YouTube playlist template allows you to add a playlist easily, however it does not allow you to adjust some of the settings.

Manual

For all the options, below can be copied and pasted into Enhanced editor.

{{#evt:
service=youtube
|id=https://www.youtube.com/watch?v=X_PiYTMbZvM
|alignment=right
|dimensions=400
|description=Regina Coeli and Holy Rosary
|urlargs=list=PLC9tK3J1RlaYPGhmt_dz5cyFBbDoBOEKB
}}

See also - Help:Video#Playlist example

Attributes for Parser Tags

Attribute Description
service="(See Supported Services below.)" Required: yes
The video service to call.
id="[id|url]" Required: yes
The raw ID of the video or URL from the player page.
dimensions="[WIDTH|WIDTHxHEIGHT|xHEIGHT]" Required: no, Default: 640
Dimensions in pixels to size the embed container. The standard format is width x height where either can be omitted, but the x must proceed height to indicate it as the height.
Examples: 480, 480x320, x320. If the height is not provided it will be calculated automatically from the width and service default ratio.
Some services such as Gfycat do not have standard heights and should be specified for each embed. $wgEmbedVideoDefaultWidth can be set in LocalSettings.php to override the default width.
alignment="[left|center|right|inline]" Required: no, Default: none
Align the placement of the video either to the left, centered, or to the right. Inline will allow multiple videos to display side by side without forced line breaks.
description="[wiki text]" Required: no, Default: none
Display a description under the embed container.
container="[frame]" Required: no, Default: none
Specifies the container type to use for the embed.
frame: Wrap the video player in a Mediawiki thumbnail box.
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.
autoresize="false" Required: no, Default: true
Automatically resize videos when their size will cause them to break outside of their container element.
valignment="[top|middle|bottom|baseline]" Required: no, Default: none
Align the vertical placement of the video either to the top, middle, bottom, or baseline of the parent element. Using this parameter forces the alignment parameter to be inline.

Examples

For example, to include the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|X_PiYTMbZvM|frame}}

And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:

{{#ev:youtube|X_PiYTMbZvM|400|right|This is an embedded video!|frame}}
Note: See the Project Homepage for more examples.

Supported Services

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

Site Service Name(s)
Archive.org Videos archiveorg
Bambuser bambuser - Broadcasts bambuser_channel - Channels
Bing/MSN bing msn
Blip.tv blip - Blip requires the full URL to the video page and does not accept the raw ID.
CollegeHumor collegehumor
Dailymotion dailymotion
Div Share divshare
Edutopia Edutopia content moved to YouTube. Please use the youtube service selector below.
FunnyOrDie funnyordie
Gfycat gfycat
Kickstarter kickstarter
Metacafe metacafe
Nico Nico Video nico
RuTube rutube
TeacherTube teachertube
TED Talks ted
Twitch twitch - Live Streams twitchvod - Archived Videos on Demand
Videomaten videomaten
Yahoo Screen yahoo
YouTube youtube - Single Videos youtubeplaylist - Playlists
Vimeo vimeo
Vine vine

Simple Example

{{#ev:youtube|X_PiYTMbZvM}}

Within a table for formatting and alignment

{|class="wikitable" align=right
!Video of Secretary Chu's speech about a "[[Sputnik Moment]]"
|-
|{{#ev:youtube|DNrOxRpP1PM}}
|}
Regina Coeli and Holy Rosary

Video examples

All of these examples will use the YouTube service.

Basic - Option 1

<youtube>https://www.youtube.com/watch?v=X_PiYTMbZvM</youtube>

Align right

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM
|alignment=right
}}

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM |alignment=right }}

With description

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM
|alignment=right
|description=Regina Coeli and Holy Rosary
}}

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM |alignment=right |description=Regina Coeli and Holy Rosary }}

With dimensions

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM
|alignment=right
|description=Regina Coeli and Holy Rosary
|dimensions=400
}}

{{#evu:https://www.youtube.com/watch?v=X_PiYTMbZvM |alignment=right |description=Regina Coeli and Holy Rosary |dimensions=400 }}

Starting at a specific time

{{#evt: service=youtube |id=https://www.youtube.com/watch?v=vxozFjojpTY |alignment=left |dimensions=400 |description=Regina Coeli and Holy Rosary |urlargs=start=2298 }}

{{#evt: service=youtube |id=https://www.youtube.com/watch?v=vxozFjojpTY |alignment=left |dimensions=400 |description=Regina Coeli and Holy Rosary |urlargs=start=2298 }}

Playlist example

{{#evt: service=youtube |id=https://www.youtube.com/watch?v=X_PiYTMbZvM |alignment=left |dimensions=400 |description=Regina Coeli and Holy Rosary |urlargs=list=PLC9tK3J1RlaYPGhmt_dz5cyFBbDoBOEKB }}

{{#evt: service=youtube |id=https://www.youtube.com/watch?v=X_PiYTMbZvM |alignment=left |dimensions=400 |description=Regina Coeli and Holy Rosary |urlargs=list=PLC9tK3J1RlaYPGhmt_dz5cyFBbDoBOEKB }}

Mediaplayer

Content moved to Hep:Video/Archive

Accessibility

See Accessibility#Video.

Finding videos in Saintapedia

If a video has not yet been added to an appropriate category, you can search the upload log for .mp4 or .flv.

Click Purge to reload the dynamic lists below.

Pages with embedded videos uploaded videos large videos/files

<dynamicpagelist> category=Pages with videos </dynamicpagelist>

<dynamicpagelist> category=Videos </dynamicpagelist>

<dynamicpagelist> category=Large files </dynamicpagelist>

Related

  • TBD

External links

Template:Saintapedia