Difference between revisions of "Template:YouTube"

From GRASS-Wiki
Jump to navigation Jump to search
m (link to GRASS GIS videos on Youtube)
m (update template)
Line 1: Line 1:
<noinclude>This templates is used for embedded YouTube videos, e.g.
<noinclude>This templates is used for embedded YouTube videos, e.g.


<nowiki>{{YouTube|lYrH3mioY7U}}</nowiki>
Basic example:


optional parameters:
<nowiki>{{YouTube|LsTdYpEcP1M|wxGUI Protocol}}</nowiki>


* width (default: 478)
{{YouTube|LsTdYpEcP1M|wxGUI Protocol}}
* height (default: 330)
* desc


<nowiki>{{YouTube|lYrH3mioY7U|width=250|height=200|desc=Creating simple model}}</nowiki>
Optional parameters:


{{YouTube|lYrH3mioY7U|width=250|height=200|desc=Creating simple model}}
* size (default: 478)
* center (default: yes)


Advanced example:


The overall goal is to have many as possible '''[http://www.youtube.com/results?search_query=grass+gis GRASS GIS videos on YouTube]'''
<nowiki>{{youtube|LsTdYpEcP1M|wxGUI Protocol|size=200|center=no}}</nowiki>
</noinclude>
<center>
{{#widget:YouTube|id={{{1}}}|width={{{width|478}}}|height={{{height|330}}}}}


{{{desc|}}}
{{youtube|LsTdYpEcP1M|wxGUI Protocol|size=200|center=no}}
 
The overall goal is to have many as possible '''[http://www.youtube.com/results?search_query=grass+gis GRASS GIS videos on YouTube]'''</noinclude><includeonly>
{{#ifeq: {{{center|yes}}} | yes | <center> |}}{{#ev:youtube|{{{1}}}|{{{size|550}}}|center|{{{desc|{{{2}}}}}}}}{{#ifeq: {{{center|yes}}} | yes | </center> |}}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Videos]]
[[Category:Videos]]</includeonly>
</center>

Revision as of 18:42, 7 March 2013

This templates is used for embedded YouTube videos, e.g.

Basic example:

{{YouTube|LsTdYpEcP1M|wxGUI Protocol}}


wxGUI Protocol

Optional parameters:

  • size (default: 478)
  • center (default: yes)

Advanced example:

{{youtube|LsTdYpEcP1M|wxGUI Protocol|size=200|center=no}}

Template:Youtube

The overall goal is to have many as possible GRASS GIS videos on YouTube