## Please edit system and help pages ONLY in the moinmaster wiki! For more
## information, please see MoinMaster:MoinPagesEditorGroup.
##master-page:Unknown-Page
##master-date:Unknown-Date
#acl MoinPagesEditorGroup:read,write,delete,revert All:read
#format wiki
#language en

<<Navigation(siblings)>>
<<BR>><<BR>>
<<TableOfContents>>

= EmbedObject =
This macro is used to Embed an Object into a wiki page. Optional size of the object could be adjusted. Further keywords are dependent on the kind of application.

If the attachment file isn't uploaded yet the attachment line will be shown.

(!) New in 1.6: MoinMoin has new (for some target types rather experimental) transclusion syntax like this: `{{target|desc|params}}`.

== Syntax ==
{{{
<<EmbedObject(attachment[,width=width][,height=height])>>
}}}

=== supported mimetypes ===
 . application/x-shockwave-flash (this has to be explicitly enabled in your configuration)
 . application/x-dvi
 . application/postscript
 . application/pdf
 . application/ogg
 . application/vnd.visio 

 . image/x-ms-bmp
 . image/svg+xml
 . image/tiff
 . image/x-photoshop

 . audio/mpeg
 . audio/midi
 . audio/x-wav
                
 . video/fli
 . video/mpeg
 . video/quicktime
 . video/x-msvideo
                
 . chemical/x-pdb

 . x-world/x-vrml  


== Parameters ==
{{{
attachment: image name of attachment
}}}

== Keyword Parameters ==
{{{
Dependent on the mimetype class a different set of keywords is 
used from the defaults

  width = ""
  height = ""
  play = false
  loop = false
  quality = high
  op = true
  repeat = false
  autostart = false
  menu = true
  hidden = false


All do use width, height

in addition:
  'video' do use  repeat, autostart, menu, op
  'audio' do use   play, repeat, autostart, op, hidden
          the default width is 60 and default height is 20
  'application' do use play, menu, autostart

}}}

== Example ==
{{{
<<EmbedObject]]
<<EmbedObject(example.swf)>>
<<EmbedObject(example.pdf)>>
<<EmbedObject(example.svg)>>
<<EmbedObject(example.mp3)>>
<<EmbedObject(example.vss)>>

<<EmbedObject(example.swf,width=637,height=392)>>
}}}
