You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

64 lines
2.2 KiB

  1. ====== oEmbed Plugin ======
  2. ---- plugin ----
  3. description: Easily embed media from OEmbed providers.
  4. author : Dwayne Bent, nik gaffney
  5. email : nik@fo.am
  6. type : syntax
  7. lastupdate : 2019-09-01
  8. compatible : Greebo
  9. depends :
  10. conflicts :
  11. similar :
  12. tags : media, images, video, music, embed
  13. downloadurl: https://github.com/zzkt/dokuwiki-oembed/zipball/master
  14. sourcerepo : https://github.com/zzkt/dokuwiki-oembed/
  15. bugtracker : https://github.com/zzkt/dokuwiki-oembed/issues
  16. donationurl: https://www.sarcoma.org.au/donations
  17. ----
  18. The oEmbed plugin allows you to easily embed media from any provider that supports the [[https://oembed.com/|oEmbed]] format.
  19. ===== Install =====
  20. Search for and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to :Plugins on how to install plugins manually.
  21. ===== Syntax =====
  22. The simplest way to embed media is with its url. e.g. ''%%{{>http://example.com/}}%%''
  23. Some providers can be given extra options in the form ''%%{{>url?options}}%%'' such as ''%%maxwidth%%'' or ''%%maxheight%%''
  24. An oembed provider will specify a URL scheme and API endpoint pairs. If you know the endpoint you can also use the ''%%!direct%%'' keyword to send paramaters to the API endpoint
  25. ===== Examples =====
  26. Embed a single image from Flickr
  27. ''%%{{>http://www.flickr.com/photos/foam/41018347952}}~%%''
  28. embed an image with a maximum width of 800px
  29. ''%%{{>http://www.flickr.com/photos/foam/41018347952?maxwidth=800}}~%%''
  30. embed a gallery
  31. ''%%{{>http://www.flickr.com/photos/flickr/galleries/72157667259442778/}}~%%''
  32. use the API endpoint directly
  33. ''%%{{>http://www.flickr.com/services/oembed/ !direct ?url=http://www.flickr.com/photos/sdasmarchives/5018415361/}}%%''
  34. ===== Further =====
  35. A list of oembed providers can be found on the [[https://oembed.com/|oEmbed website]] and [[https://noembed.com/|Noembed]] can provide a consitent inferface for supported and unsupoprted site.
  36. ===== Known issues =====
  37. The current plugin (as of 2019) has been updated from an old unmaintained version but doesn't use the new plugin skeleton and may not be fully compatible with current/future versions of dokuwiki.
  38. * can't resolve https urls for some providers