Template:Video: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
}}{{#ifeq: {{{type|}}}|mp3| | }}{{#ifeq: {{{type|}}}|mp3| | ||
[[Video/{{{name|Some name}}}|{{{name|Some name}}}]], {{{duration|1:23}}}, | [[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}}}]])}} | }}{{#ifeq:{{{series|}}}||[[series::No series| ]][[Category:No series]][[no series for::Video/{{{name|no name}}}]]|(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}{{#ifeq: {{{transcript|}}}|yes|(Transcript available.)}} | ||
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]] | </div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|}}}| ]][[project::{{{project|}}}| ]] | ||
=Embed code = | =Embed code = |
Revision as of 14:24, 4 November 2013
VIDEO
Some title
Some name, 1:23, link to YouTube (local play / download options / download from dropbox)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 != 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