Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 34: Line 34:
{{#ifexist: {{FULLPAGENAME}}/transcript|A transcript is available [[{{FULLPAGENAME}}/transcript|here]]:
{{#ifexist: {{FULLPAGENAME}}/transcript|A transcript is available [[{{FULLPAGENAME}}/transcript|here]]:
<div style="padding:10px; background: lightgrey;">
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/reflection }}
{{: {{FULLPAGENAME}}/transcript }}
</div>|There is no transcript available. You can add one [[{{FULLPAGENAME}}/transcript|here]].}}
</div>|There is no transcript available. You can add one [[{{FULLPAGENAME}}/transcript|here]].}}



Revision as of 19:01, 10 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