Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 10: Line 10:
}}  
}}  
{{#ifeq:{{{series|}}}|||(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}
{{#ifeq:{{{series|}}}|||(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]]{{#ifeq: {{{series|}}}||[[series::No series]]}}
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]]{{#ifeq: {{{series|}}}||[[series::No series]][[Category:No series]]}}
=Embed code =
=Embed code =
To use this video, you can simply cut and paste this text into a new wiki page:
To use this video, you can simply cut and paste this text into a new wiki page:

Revision as of 11:03, 3 December 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