Template:Video/ 3.3 audio.mp3: Difference between revisions

From OER in Education
(created audio template (I think))
 
m (trying this template)
 
Line 1: Line 1:
{{video
{{#ifeq: {{{semantics|}}}|yes|{{ResourcePageGroupMenu|Video/{{{series|Other}}} }} }}
|name= 3.3_audio.mp3
<div style="border-left: solid 1px green;  border-bottom: solid 1px green; padding: 10px; margin-left: 50px; overflow: auto;"><span class="printonly">'''VIDEO'''</span><div  class="noprint">
|title=discussion of pace groups
{{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|4Kdi_n5QAzY}}} }} }}
|duration=duration of video 07:01
{{#ifeq: {{{type|youtube}}}|mp3|{{#widget:Html5media
|series=series (optional)
|url={{filepath:{{{src|AskAIDS 7 preparing to consult.mp3}}} }}
|episode=01, 02, ... (optional)
|width=640
|acknowledgement= ... (possibly use template)
|height=30
<noinclude>|semantics=yes|no</noinclude>
}}}}
</div>
'''{{{title|Some title}}}'''
 
{{#ifeq: {{{type|youtube}}}|youtube|
[[Video/{{{name|Some name}}}|{{{name|Some name}}}]], {{{duration|1:23}}}, [http://www.youtube.com/watch?v={{{src}}} link to YouTube] ([[CBS]]: [http://192.168.128.1/oer4schools/PLAY.php?video={{urlencode:{{{name}}}}} local copy / playback],{{#vardefine:downloadlist|{{#var:downloadlist}}
*  [http://orbit.educ.cam.ac.uk/oer4schools/{{urlencode:{{{name}}}}} {{{name}}}] }}  [http://192.168.128.1/oer4schools/{{urlencode:{{{name}}}}} local download]) {{{acknowledgement|}}}
}}{{#ifeq: {{{type|}}}|mp3|
[[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}}}]])}}
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]]
=Embed code =
To use this video, you can simply cut and paste this text into a new wiki page:
<nowiki>{{:</nowiki> Video/{{{name}}} <nowiki>}}</nowiki>
 
= This video is used on the following pages =
{{#ask: [[Uses video::Videos/{{{name}}}]] }}
 
= Background on this video =
 
{{#ifexist: {{FULLPAGENAME}}/background|Background on this video is available [[{{FULLPAGENAME}}/background|here]]:
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/background }}
</div>|There is no background on this video available. You can add some [[{{FULLPAGENAME}}/background|here]].}}
 
= Questions for reflection =
 
{{#ifexist: {{FULLPAGENAME}}/reflection|Questions for reflection are available [[{{FULLPAGENAME}}/reflection|here]]:
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/reflection }}
</div>|There are no questions for reflection available. You can add them [[{{FULLPAGENAME}}/reflection|here]].}}
 
= Transcript =
 
{{#ifexist: {{FULLPAGENAME}}/transcript|A transcript is available [[{{FULLPAGENAME}}/transcript|here]]:
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/transcript }}
</div>|There is no transcript available. You can add one [[{{FULLPAGENAME}}/transcript|here]].}}
 
}}
}}
<includeonly>[[Uses video::Videos/{{{name}}}| ]]</includeonly><noinclude>
<nowiki>{{</nowiki>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)
&lt;noinclude>|semantics=yes|no&lt;/noinclude>
}}
Also see
[[Template:Videosemantics]]
* Should add check: If {{BASEPAGENAME}} != {{SUBPAGENAME}} then if {{SUBPAGENAME}} != {{{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
</noinclude>

Latest revision as of 16:11, 22 March 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 != 3.3 audio.mp3 then if 3.3 audio.mp3 != {{{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