Difference between revisions of "Template:YouTube Video"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 21: Line 21:
  
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#evt:
+
</noinclude><includeonly><!--
service=youtube
 
|id={{{VideoID|}}}
 
|urlargs=start={{{VideoStartAt|}}}
 
|description={{{VideoDescription|}}}
 
}}<!--
 
 
--><!-- store as a subobject
 
--><!-- store as a subobject
 
-->{{#subobject:<!--  
 
-->{{#subobject:<!--  

Revision as of 13:38, 1 June 2020

This is the "YouTube Video" template. This template is used from within other templates such as Theory or Topic to create subobjects for all individual videos embedded in the page.

It should be called in the following format:

{{YouTube Video
|VideoID=
|VideoStartAt=
|VideoDescription=
|VideoEmbedSection=
}}

The template creates a subobject with the following properties:

  • SubObjectCategory = "YouTube Video".
  • Page - the full page name of the page on which the video is embedded.
  • VideoID - the YouTube video ID.
  • StartAt - the start time of the video in seconds.
  • Description - the description that will appear under the embedded video.
  • Section - the section of the page where the video should be embedded.

Edit the page to see the template text.