Example page: Difference between revisions
Jump to navigation
Jump to search
(Created page with " {{#ev:youtube|d8OexIJVhNc?si=fx2y4jzRloTO3wnt}} <embedvideo service="youtube">d8OexIJVhNc</embedvideo> {{#ev:youtube|d8OexIJVhNc|640|left|My video caption}} {{#ev:service|id|width|alignment|description}} vimeo: {{#ev:vimeo|916350262}}") |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==example code for embedding videos from YouTube and Vimeo== | |||
==='''Youtube:'''=== | |||
{{#ev:youtube|d8OexIJVhNc}} | |||
==='''Vimeo:'''=== | |||
{{#ev:vimeo|916350262}} | |||
=== code explanation === | |||
{{#ev:youtube|d8OexIJVhNc|640|center|My video caption}} | |||
<syntaxhighlight lang="wikitext"> | |||
the video above is use the code: | |||
{{#ev:youtube|d8OexIJVhNc|640|center|My video caption}} | |||
the embedding video code follow the structure: | |||
{{#ev:service|id|width|alignment|description}} | {{#ev:service|id|width|alignment|description}} | ||
in this case, the service = youtube | |||
id = URL address because the URL is | |||
https://www.youtube.com/watch?v=d8OexIJVhNc&ab_channel=beyondthebeyond | |||
if you go to share--> embed and copy the code, it will be like: | |||
https://youtu.be/d8OexIJVhNc?si=69biyPrPpUVuCHlX | |||
and the id is: d8OexIJVhNc | |||
width is in pixels | |||
alignment could be left, center or right. | |||
description could be a video caption or leave it empty. | |||
</syntaxhighlight> | |||
Latest revision as of 19:55, 11 May 2025
example code for embedding videos from YouTube and Vimeo
Youtube:
Vimeo:
code explanation
the video above is use the code:
{{#ev:youtube|d8OexIJVhNc|640|center|My video caption}}
the embedding video code follow the structure:
{{#ev:service|id|width|alignment|description}}
in this case, the service = youtube
id = URL address because the URL is
https://www.youtube.com/watch?v=d8OexIJVhNc&ab_channel=beyondthebeyond
if you go to share--> embed and copy the code, it will be like:
https://youtu.be/d8OexIJVhNc?si=69biyPrPpUVuCHlX
and the id is: d8OexIJVhNc
width is in pixels
alignment could be left, center or right.
description could be a video caption or leave it empty.