Summary
Embeds a YouTube video.
- Assembly
- Wyam
.Core .dll - Namespace
- Wyam
.Core .Shortcodes .Html - Interfaces
- Base Types
-
- Object
- Embed
graph BT
Type-->Base0["Embed"]
click Base0 "/api/Wyam.Core.Shortcodes.Html/Embed"
Base0-->Base1["Object"]
Type-.->Interface0["IShortcode"]
click Interface0 "/api/Wyam.Common.Shortcodes/IShortcode"
Type["YouTube"]
class Type type-node
Syntax
public class YouTube : Embed, IShortcode
Examples
<?# YouTube u5ayTqlLWQQ /?>
Remarks
You only need the ID of the video which can be obtained from it's URL after the
?v=
:
https://www.youtube.com/watch?v=u5ayTqlLWQQ
Methods
Name | Value | Summary |
---|---|---|
Execute |
IShortcodeResult |
Executes the shortcode and returns an
Wyam.Common.Shortcodes.IShortcodeResult .
|
Execute |
IShortcodeResult |
Inherited from Embed
|
Execute |
IShortcodeResult |
Inherited from Embed
|