KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

KernelNewbies:
  • 帮助-宏
  • EmbedObject

Contents

  1. EmbedObject
    1. 语法
      1. 支持的 mime 类型
    2. 参数
    3. 关键词参数
    4. 示例

EmbedObject

这个宏可以在维基网页内嵌入对象。对象大小可以调整。而其他关键词参数取决于应用对象的类型。

如果附件还没有上传,则显示上传附件的提示信息。

语法

<<EmbedObject(attachment[,width=width][,height=heigt])>>

支持的 mime 类型

  • application/x-shockwave-flash
  • image/svg+xml
  • application/pdf
  • audio/mpeg
  • application/vision

参数

attachment: image name of attachment

关键词参数

width: 内嵌图片的宽度,默认为 100% 
height: 内嵌图片的高度,默认为 100%
    application/x-shockwave-flash:
        play: 默认为 true
        loop: 默认为 true
        quality: 默认为 high (medium,low)

示例

<<EmbedObject>>
<<EmbedObject(example.swf)>>
<<EmbedObject(example.swf,width=637,height=392)>>
<<EmbedObject(SlideShow/example.swf,width=637,height=392)>>
<<EmbedObject(SlideShow/example.swf,width=637,height=392,play=false)>>
<<EmbedObject(SlideShow/example.swf,width=637,height=392,play=false,loop=false)>>
<<EmbedObject(SlideShow/example.swf,width=637,height=392,play=false,quality=low)>>
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01