Template:Ytplaylist: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#Widget:YouTube|playlist={{{1|PL827432C8560941C6}}} }}[[ytplaylist::{{{1|PL827432C8560941C6}}}| ]]
{{#Widget:YouTube|playlist={{{1|PL827432C8560941C6}}}}}[[ytplaylist::{{#ifeq:1|1| {{{1|PL827432C8560941C6}}} }}| ]]
 
Use the "playlist" button in the top right or the "|<" and ">|" to skip through the playlist.<noinclude><!-- Note: The "ifeq" above is just for trimming whitespace... -->


Use the "playlist" button in the top right or the "|<" and ">|" to skip through the playlist.<noinclude>
= How to use this =
= How to use this =


The above is generated by  
The above is generated by  
  <nowiki>{{ytplaylist|PL827432C8560941C6}}</nowiki>
  <nowiki>{{ytplaylist|PL827432C8560941C6}}</nowiki>
It also creates a property
It also creates a property, that allows retrieval of the playlist, e.g.
{{#ask: [[Template:ytplaylist]] | ?playlist | link=none | format=list | mainlabel=- }}
<nowiki>{{Video/get_series| Video/Abel_Clip_2.m4v}}</nowiki>
{{#ask: [[Video/Abel rectangles]] | ?playlist | link=none | format=list }}
gives: {{Video/get_series| Video/Abel_Clip_2.m4v}} and then
 
<nowiki>{{Video/get_playlist | Video/Abel_Clip_2.m4v }}</nowiki>
gives: {{Video/get_playlist | Video/Abel_Clip_2.m4v }}.


</noinclude>
</noinclude>

Latest revision as of 14:34, 11 November 2013

Use the "playlist" button in the top right or the "|<" and ">|" to skip through the playlist.

How to use this

The above is generated by

{{ytplaylist|PL827432C8560941C6}}

It also creates a property, that allows retrieval of the playlist, e.g.

{{Video/get_series| Video/Abel_Clip_2.m4v}}

gives: and then

{{Video/get_playlist | Video/Abel_Clip_2.m4v }}

gives: Some use of "" in your query was not closed by a matching ""..