Module:Panopto/doc: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
* [[Widget:Panopto]] — embeds a Panopto video using a UUID returned by this module | * [[Widget:Panopto]] — embeds a Panopto video using a UUID returned by this module | ||
* < | * <code>Extension:Scribunto</code> — required for Lua modules | ||
<includeonly>[[Category:Panopto modules]]</includeonly> | <includeonly>[[Category:Panopto modules]]</includeonly> | ||
Revision as of 17:41, 21 May 2026
Module:Panopto provides utility functions for parsing Panopto URLs and extracting video UUIDs. It accepts any Panopto URL containing a UUID in the standard 8-4-4-4-12 hexadecimal format.
Usage
{{#invoke:Panopto|extractUUID|URL}}
Example
{{#invoke:Panopto|extractUUID|https://swarthmore.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=12345678-abcd-efgh-ijkl-mnopqrstuvwx}}
Returns: 12345678-abcd-efgh-ijkl-mnopqrstuvwx
If no UUID is found in the provided input, the module returns No UUID found.
Notes
- The module is case-insensitive — UUIDs in uppercase or mixed case will be normalised to lowercase
- The URL parameter can be passed as a named parameter (
url=) or as the first unnamed parameter
See also
- Widget:Panopto — embeds a Panopto video using a UUID returned by this module
Extension:Scribunto— required for Lua modules