Jump to content

Template:YoutubeEmbed: Difference between revisions

From TWM Redoubt
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 3: Line 3:


<noinclude>
<noinclude>
 
<templatedata>
{
"params": {
"YoutubeID": {
"description": "The content ID of the Youtube Video. A series of alphanumerical character that follow the standard URl. In the example. The ID follows the v after the question mark. So for this video ID it will be \"=ow-N0d1QTS8\"",
"example": "https://www.youtube.com/watch?v=ow-N0d1QTS8",
"type": "string",
"required": true,
"autovalue": "=NpEaa2P7qZI"
},
"Start": {
"description": "This is the time stamp you wish the video to begin at. How to get this information is simple. Copy the url of the Youtube video at the current time stamp. Or you can simply convert the time stamp into seconds and input the number there.",
"example": "67",
"type": "number",
"default": "0",
"required": true
},
"End": {
"description": "Just like the Start variable. Insert the time stamp in seconds into the field to designate the stop location. The example shows that this would have the video stop Two minutes into the video. Leaving the value blank might cause issues.",
"example": "120",
"type": "number"
}
},
"description": "Allows the ability to embed YouTube videos with specified start and stop points."
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 20:00, 21 June 2025


Allows the ability to embed YouTube videos with specified start and stop points.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
YoutubeIDYoutubeID

The content ID of the Youtube Video. A series of alphanumerical character that follow the standard URl. In the example. The ID follows the v after the question mark. So for this video ID it will be "=ow-N0d1QTS8"

Example
https://www.youtube.com/watch?v=ow-N0d1QTS8
Auto value
=NpEaa2P7qZI
Stringrequired
StartStart

This is the time stamp you wish the video to begin at. How to get this information is simple. Copy the url of the Youtube video at the current time stamp. Or you can simply convert the time stamp into seconds and input the number there.

Default
0
Example
67
Numberrequired
EndEnd

Just like the Start variable. Insert the time stamp in seconds into the field to designate the stop location. The example shows that this would have the video stop Two minutes into the video. Leaving the value blank might cause issues.

Example
120
Numberoptional