Forskel mellem versioner af "Hjælp:Video"

Fra Holstebro HTX Wiki
Skift til: navigering, søgning
(Oprettede siden med '== Brug == (kommer på dansk) The EmbedVideo parser function expects to be called in any of the following ways: * <tt><nowiki>{{#ev:service|id}}</nowiki></tt> * <tt><nowiki>{{#...')
 
 
Linje 1: Linje 1:
 
== Brug ==
 
== Brug ==
 
(kommer på dansk)
 
(kommer på dansk)
 +
 
The EmbedVideo parser function expects to be called in any of the following ways:
 
The EmbedVideo parser function expects to be called in any of the following ways:
 
* <tt><nowiki>{{#ev:service|id}}</nowiki></tt>
 
* <tt><nowiki>{{#ev:service|id}}</nowiki></tt>

Nuværende version fra 6. jan 2011, 11:48

Brug

(kommer på dansk)

The EmbedVideo parser function expects to be called in any of the following ways:

  • {{#ev:service|id}}
  • {{#ev:service|id|width}}
  • {{#ev:service|id|width|align}}
  • {{#ev:service|id|width|align|desc}}
  • {{#evp:service|id|desc}}
  • {{#evp:service|id|desc|align}}
  • {{#evp:service|id|desc|align|width}}

Where:

  • service is the name of a video sharing service (See "service name" in the list below)
  • id is the id of the video to include
  • width (optional) is the width in pixels of the viewing area (height will be determined automatically)
  • align (optional) is an alignment (float) attribute. May be "left" or "right".
  • desc (optional) is a short description to display beneath the video when it is aligned

For example, to include the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|dMH0bHeiRNg}}

And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:

{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}