Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 2: Line 2:
<div style="border-left: solid 1px green;  border-bottom: solid 1px green; padding: 10px; margin-left: 50px; overflow: auto;">
<div style="border-left: solid 1px green;  border-bottom: solid 1px green; padding: 10px; margin-left: 50px; overflow: auto;">
{{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|4Kdi_n5QAzY}}} }} }}
{{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|4Kdi_n5QAzY}}} }} }}
{{#ifeq: {{{type|youtube}}}|mp3|<mp3player>File:{{{src|File:AskAIDS 7 preparing to consult.mp3}}}</mp3player>}}
{{#ifeq: {{{type|youtube}}}|mp3|<mp3player>File:{{{src|AskAIDS 7 preparing to consult.mp3}}}</mp3player>}}


'''{{{title|Some title}}}'''
'''{{{title|Some title}}}'''

Revision as of 15:14, 28 November 2012

{{video
|src= youtube id
|name= local file name
|title=Title to be displayed
|duration=duration of video mm:ss
|series=series (optional)
|episode=01, 02, ... (optional)
|acknowledgement= ... (possibly use template)
<noinclude>|semantics=yes|no</noinclude>
}}

Also see

Template:Videosemantics

  • 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, {{:</nowiki> Video/{{{name}}} | style=1 <nowiki>}} or similar. Need to include a style switch above