YouTube Macro
Includes a YouTube video in an iFrame |
Type | XAR |
Category | |
Developed by | xwiki:XWiki.JorisDirks, Vincent Massol |
Rating | |
License | GNU General Public License 3 |
Description
Includes a YouTube video in an iFrame, based on video ID.
Usage
Get the URL for a YouTube video, of the type: http://www.youtube.com/watch?v=####
Copy the video ID number (following v= in the example above, indicated with hashes) and copy it in the following code:
Example
The video http://www.youtube.com/watch?v=1brKauo2HM8 has vID: 1brKauo2HM8, so the code would become:
If you wish to center the video on the page you'd use for example:
{{youtube vID="1brKauo2HM8" /}}
)))
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
Navigate to the Macro.YouTubeMacro page to verify if the Macro has been correctly installed.
Release Notes
v1.1
Fixed a lot of small details:
- Moved Macro to the Macro space
- Remove attached gif that had nothing to do with the macro
- Translated macro parameter description that was in Dutch
- Removed empty extra XObjects
- Removed tag
- Set Macro to have wiki visibility by default instead of Global
- Improved description of macro and example