Wikia-Youtube integration has been updated from direct embedding into indirect one (shown as still picture).
Below is a sample of old embedding vs new embedding:
Why should we use the new integration method?
- Because the new method conserves bandwidth.
- Because wikia-youtube may drop the old integration (in foreseen future).
- For unknown reason some videos can't be converted (ex: Q4K2atBgv5g, 3lZVjgTIc94, LzhkplFCNg4, E89-nGgvO_8).
Why Do We Need this Page?Since parameter for the new integration is not (too) obvious, this page is created for contributor that want to embed youtube video into this wikia - while using template:Clip. Every time we embed YouTube video using the old method (i.e:
<youtube>WatchParameter</youtube>wikia would automatically convert it into the new one. However, auto-conversion doesn't occur when the embedding is inclosed in template:Clip.
Why Use template:Clip?
Because it would promote consistency in this wikia. When we decide to change the look and feel, we will simply need to change one template rather than editing each page that has video in it.
Parameter Not Obvious?
The new parameter is video title, and on the surface there are (at least) 2 problems with this approach:
- Two (&/ more) different videos may share the same name
- Name may includes one/more wikia's reserved characters (ex: <, >, [, ])
In fact, for the time being I believe this method is the only way (to use the new wikia-youtube integration).
- When I tried to put a title directly I got nothing. Yet after I used this conversion page, I got the exact same parameter (as per title).
- There must be some prerequisite background activities to enable the new integration, ex: creating redirection & creating still picture.
- When I tried to put a working clip from another wikia, I got nothing.
- The new integrated parameter works on single wikia only (instead of working globally).
How to Use this Page
Since you've reach this section, you should have intention to use the new embedding; here's how:
Get watch parameter from a youtube video
Sample - http://www.youtube.com/watch?v=TEPHCUrjcpY
The paramater is the string after watch?v= which is TEPHCUrjcpY
Edit Next Section (i.e. Conversion Section)
- Copy the code: <youtube>WatchParameter</youtube>
- Paste it to your favorite text editor.
- Replace WatchParameter with the actual parameter from previous step (ex: <youtube>TEPHCUrjcpY</youtube>).
- Edit Conversion Section.
- Go to Source mode.
- Paste the new code in (ex: <youtube>TEPHCUrjcpY</youtube>).
- Publish your changes
- Edit it again
- Go to Source mode - notice the code has been changed to [[File:NewParameter|425px]]
- Copy NewParameter and feed it into template:Clip (video parameter).
Edit below to perform conversion