Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 11: Line 11:
--><div  class="noprint">
--><div  class="noprint">
{{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|-dITjCrgqYY}}} }} }}
{{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|-dITjCrgqYY}}} }} }}
{{#ifeq: {{{type|youtube}}}|mp3|{{#widget:Html5media
{{#ifeq: {{{type|youtube}}}|mp3| {{filepath:{{{src|AskAIDS 7 preparing to consult.mp3}}} }}
<!-- {{#widget:Html5media
|url={{filepath:{{{src|AskAIDS 7 preparing to consult.mp3}}} }}
|url={{filepath:{{{src|AskAIDS 7 preparing to consult.mp3}}} }}
|width=640
|width=640
|height=30
|height=30
}}}}
}}}} -->
</div><!-- (end display youtube video)
</div><!-- (end display youtube video)



Revision as of 22:00, 10 February 2015

VIDEO

src= youtube id (ideally should not be changed once it's in use)

You can then place the video onto the wiki by using:

{{: Video/My video.mp4 }}

Other notes

The template also populates {{#var:downloadlist}} (similar to Template:File), which you can then use to show a summary of all videos needed for a particular wiki page, e.g.


Also see

Category:Video Templates for other video-related templates.

To do

  • Should add check: If Video != Video then if Video != {{{name}}} then warning!
  • Also check whether Video/name/text exits, and include it if it does .... should have a switch really, {{: Video/{{{name}}} | style=1 }} or similar. Need to include a style switch above.