Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 26: Line 26:
}}{{#ifeq: {{{type|}}}|mp3|
}}{{#ifeq: {{{type|}}}|mp3|
[[Video/{{{name|Some name}}}|{{{name|Some name}}}]], {{{duration|1:23}}},  
[[Video/{{{name|Some name}}}|{{{name|Some name}}}]], {{{duration|1:23}}},  
}}{{#ifeq:{{{series|}}}||[[series::No series| ]][[Category:No series]][[no series for::Video/{{{name|no name}}}]]|(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}{{#ifeq: {{{transcript|}}}|yes|(Transcript available [[Video/{{{name|Some name}}}/transcript|here]] or via YouTube captions.)}}
}}{{#ifeq:{{{series|}}}||[[series::No series| ]][[Category:No series]][[no series for::Video/{{{name|no series for this video}}}]]|(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}{{#ifeq: {{{transcript|}}}|yes|(Transcript available [[Video/{{{name|Some name}}}/transcript|here]] or via YouTube captions.)}}
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]]
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]]
=Embed code =
=Embed code =

Revision as of 10:33, 11 November 2013

{{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