Template:Video: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 26: Line 26:


{{#ifexist: {{FULLPAGENAME}}/reflection|Questions for reflection are available [[{{FULLPAGENAME}}/reflection|here]]:
{{#ifexist: {{FULLPAGENAME}}/reflection|Questions for reflection are available [[{{FULLPAGENAME}}/reflection|here]]:
<div style="padding:10px; background: grey;">
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/reflection }}
{{: {{FULLPAGENAME}}/reflection }}
</div>|There are no questions for reflection available. You can add them here [[{{FULLPAGENAME}}/reflection|here]].}}
</div>|There are no questions for reflection available. You can add them here [[{{FULLPAGENAME}}/reflection|here]].}}
Line 33: Line 33:


{{#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: grey;">
<div style="padding:10px; background: lightgrey;">
{{: {{FULLPAGENAME}}/reflection }}
{{: {{FULLPAGENAME}}/reflection }}
</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 18:22, 9 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