Example page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
example code for | ==example code for embedding videos from YouTube and Vimeo== | ||
'''Youtube:''' | ==='''Youtube:'''=== | ||
{{#ev:youtube|d8OexIJVhNc}} | {{#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 as such: | |||
{{#ev:service|id|width|alignment|description}} | {{#ev:service|id|width|alignment|description}} | ||
in this case, the service = youtube | |||
id = URL address | |||
width is in pixels | |||
alignment could be left, center or right. | |||
decriotoin could be a video caption. | |||
</syntaxhighlight> | |||
Revision as of 19:48, 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 as such:
{{#ev:service|id|width|alignment|description}}
in this case, the service = youtube
id = URL address
width is in pixels
alignment could be left, center or right.
decriotoin could be a video caption.