Difference between revisions of "Template:YouTube Video"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> 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 embe...")
 
Line 16: Line 16:
 
* <code><nowiki>Page</nowiki></code> - the full page name of the page on which the video is embedded.
 
* <code><nowiki>Page</nowiki></code> - the full page name of the page on which the video is embedded.
 
* <code><nowiki>VideoID</nowiki></code> - the YouTube video ID.
 
* <code><nowiki>VideoID</nowiki></code> - the YouTube video ID.
* <code><nowiki>VideoStartAt</nowiki></code> - the start time of the video in ''seconds''.
+
* <code><nowiki>StartAt</nowiki></code> - the start time of the video in ''seconds''.
* <code><nowiki>VideoDescription</nowiki></code> - the description that will appear under the embedded video.
+
* <code><nowiki>Description</nowiki></code> - the description that will appear under the embedded video.
* <code><nowiki>VideoEmbedSection</nowiki></code> - the section of the page where the video should be embedded.  
+
* <code><nowiki>Section</nowiki></code> - the section of the page where the video should be embedded.  
  
 
Edit the page to see the template text.
 
Edit the page to see the template text.
Line 27: Line 27:
 
  -->|Page={{FULLPAGENAME}}<!--  
 
  -->|Page={{FULLPAGENAME}}<!--  
 
  -->|VideoID={{{VideoID|}}}<!--  
 
  -->|VideoID={{{VideoID|}}}<!--  
  -->|VideoStartAt={{{VideoStartAt|}}}<!--  
+
  -->|StartAt={{{VideoStartAt|}}}<!--  
  -->|VideoDescription={{{VideoDescription|}}}<!--  
+
  -->|Description={{{VideoDescription|}}}<!--  
  -->|VideoEmbedSection={{{VideoEmbedSection|}}}<!--  
+
  -->|Section={{{VideoEmbedSection|}}}<!--  
 
-->}}<!--
 
-->}}<!--
 
--><!--  
 
--><!--  
 
--><!-- nothing to print  
 
--><!-- nothing to print  
 
--></includeonly>
 
--></includeonly>

Revision as of 20:09, 14 March 2018

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.