Fandom Developers Wiki
Advertisement

Esta página, o partes de ella, siguen sin traducir. Por favor traduzcala al lenguaje apropriado (español).

Este artículo es sobre un sistema o característica que ya no está en uso.

La página es conservada por razones históricas.

Razón: Now natively supported by the EmbedVideo extension.

YoutubePlayer le permite incrustar vídeos de YouTube en páginas.

Migration[]

If you have used this script in the past, here is how you can change the parameters to work with EmbedVideo:

  • Instead of using a template ({{YoutubePlayer|...}}) you can use a parser tag (<youtube>).
  • The ID of the video goes into the parser tag contents (<youtube>HqURNITAxcE</youtube>). You can also use the full URL (<youtube>https://www.youtube.com/watch?v=HqURNITAxcE</youtube>).
  • The width and height go into the dimensions parameter. For example, a 640x480 video would be <youtube dimensions="640x480px">HqURNITAxcE</youtube>.
  • If you want the video to loop, you can use urlargs="loop=1&playlist=<video id>". For example, if you wanted the above example to loop, it would be <youtube urlargs="loop=1&playlist=HqURNITAxcE">HqURNITAxcE</youtube>.
  • If you want the video to start from a certain point, you would use urlargs="start=<time>". For example, if you wanted the above video to start from the fifth second, you would use <youtube urlargs="start=5">HqURNITAxcE</youtube>.
    • Similarly, there is an end URL parameter. If you want the above example to start at 5s and end at 10s, you would use <youtube urlargs="start=5&end=10">HqURNITAxcE</youtube>.
  • If you want to display a playlist next to the video, you can use urlargs="list=<playlist ID>". For example, <youtube urlargs="list=PLaKZBiOLJSdaU_ylcfHjgZ_QjDt3ukV3F">HqURNITAxcE</youtube>.

Examples[]

With dimensions[]

<youtube dimensions="640x480px">HqURNITAxcE</youtube>

muestra...

With looping[]

<youtube urlargs="loop=1&playlist=XY55rmPzd4M">XY55rmPzd4M</youtube>

muestra...

With start and end time[]

<youtube urlargs="start=5&end=10">HqURNITAxcE</youtube>

muestra...

With playlist[]

<youtube urlargs="list=PLaKZBiOLJSdaU_ylcfHjgZ_QjDt3ukV3F">HqURNITAxcE</youtube>

muestra...

Advertisement