YouTubeShortcode Class
Embeds a YouTube video.
Namespace
Statiq.Web.Shortcodes
Interfaces
Base Types
graph BT Type-->Base0["EmbedShortcode"] click Base0 "/api/Statiq.Web.Shortcodes/EmbedShortcode" Base0-->Base1["Shortcode"] click Base1 "/api/Statiq.Common/Shortcode" Base1-->Base2["object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Statiq.Common/IShortcode" Type["YouTubeShortcode"] class Type type-node

Syntax

public class YouTubeShortcode : EmbedShortcode, 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

Fields

Name Field Type Constant Value Summary
Endpoint string Endpoint
Inherited from EmbedShortcode
static
Format string Format
Inherited from EmbedShortcode
static
MaxHeight string MaxHeight
Inherited from EmbedShortcode
static
MaxWidth string MaxWidth
Inherited from EmbedShortcode
static
Url string Url
Inherited from EmbedShortcode
static

Methods

Extension Methods