Template:Video/ 3.3 audio.mp3: Difference between revisions
From OER in Education
JanetBlair (talk | contribs) (created audio template (I think)) |
JanetBlair (talk | contribs) m (trying this template) |
||
Line 1: | Line 1: | ||
{{ | {{#ifeq: {{{semantics|}}}|yes|{{ResourcePageGroupMenu|Video/{{{series|Other}}} }} }} | ||
| | <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 | {{#ifeq: {{{type|youtube}}}|youtube|{{#widget:YouTube|id={{{src|4Kdi_n5QAzY}}} }} }} | ||
|duration=duration | {{#ifeq: {{{type|youtube}}}|mp3|{{#widget:Html5media | ||
|series | |url={{filepath:{{{src|AskAIDS 7 preparing to consult.mp3}}} }} | ||
|episode= | |width=640 | ||
| | |height=30 | ||
< | }}}} | ||
</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) | |||
<noinclude>|semantics=yes|no</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
Some title
Some name, 1:23, link to YouTube (CBS: local copy / playback, local download)Video/no name
{{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
- 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