Template:Video: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
}}{{#ifeq:{{{series|}}}||[[series::No series| ]][[Category:No series]][[no series for::Video/{{{name|no series for this video}}}]]|(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}{{#ifeq: {{{transcript|}}}|yes|(Transcript available [[Video/{{{name|Some name}}}/transcript|here]] or via YouTube captions.)}} | }}{{#ifeq:{{{series|}}}||[[series::No series| ]][[Category:No series]][[no series for::Video/{{{name|no series for this video}}}]]|(Series: [[Video/{{{series|Other}}}|{{{series|Other}}}]])}}{{#ifeq: {{{transcript|}}}|yes|(Transcript available [[Video/{{{name|Some name}}}/transcript|here]] or via YouTube captions.)}} | ||
</div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|N/A}}}| ]][[project::{{{project|}}}| ]] | </div>{{#ifeq: {{{semantics|}}}|yes|[[assettype::{{{type|youtube}}}| ]][[src::{{{src|}}}| ]][[name::{{{name|}}}| ]][[title::{{{title|}}}| ]][[duration::{{{duration|}}}| ]][[series::{{{series|Other}}}| ]][[episode::{{{episode|N/A}}}| ]][[project::{{{project|}}}| ]] | ||
[[realtitle::{{{realtitle|{{{ | [[realtitle::{{{realtitle|{{{name|{{#sub:{{{title}}}|0|30}}}}}}}}| ]] | ||
=Embed code = | =Embed code = | ||
To use this video, you can simply cut and paste this text into a new wiki page: | To use this video, you can simply cut and paste this text into a new wiki page: | ||
Revision as of 23:15, 11 November 2013
VIDEO
The title of the video
The description of the video
The file name or wiki page name for video, 12:34, Some use of "" in your query was not closed by a matching "". link to YouTube (local play / download options / download from dropbox)Video/no series for this video
{{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
