Template:Flash/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

This template allows embedding of Flash objects in articles. Javascript is required. The Flash object will appear as a disabled placeholder with a control menu. CURRENTLY, ONLY .SWF FILES HOSTED ON UNCYCLOPEDIA (and a few other default sites) ARE ALLOWED.

280
Embedded Flash object (requires Javascript)
Flashembed-playbutton.png
  • Disable
  • Enable all
  • Disable all
  • Always enable
  • Always disable

A note on security

Flash objects are files with the .swf extension which may contain animations, video, audio, and interactive components. Browsers have long since dropped official support for Adobe Flash, and you will have to use a browser plugin like Ruffle for the embedded objects to actually render with Flash. Please note that Flash objects can still theoretically pose a security risk, even with Ruffle's sandboxing, so if you're unsure, don't enable Flash embedding.

Usage

{{Flash/doc|MyMovie.swf|800|600}}

This produces an embedded flash object, with a width of 800 pixels and height of 600 pixels. You can also explicitly pass named arguments, like so:

{{Flash/doc|url=MyMovie.swf|width=800|height=600}}

Flash objects embedded with this template default to a mobile-friendly 280 by 200 pixels.

Float

To float the Flash object so that text wraps around it, use either float=left or float=right. Example:

{{Flash/doc|MyMovie.swf|390|270|float=left}}

Setting variables

If your flash object requires variables to be passed to it, use the flashvars parameter. Example:

{{Flash/doc|MyMovie.swf|800|600|flashvars=txt_name=Me&num_score=100}}

Placeholder image

You can include a default placeholder image with the image parameter. Example:

{{Flash/doc|MyMovie.swf|image=Black_cat.jpg}}

Gadget

This template uses the FlashEmbed gadget, which is enabled by default for all users. To turn it off completely, go to your preferences and untick the "Allow Flash object embedding" box.

The gadget displays a placeholder for each Flash object, letting you click to load it rather than having Flash content run automatically. This gives you control over what runs in your browser while still allowing Flash-based content like games or the deprecated Flash-based UnTunes player to work when you want it to.

Within MediaWiki:Gadget-FlashEmbed.js, you can manage Flash content at three levels: individually, per page, or site-wide. The gadget only allows Flash from trusted sources (primarily Uncyclomedia's own servers and Classic Games Arcade), so content from unknown external sites won't load. Your site-wide preference is saved in a cookie for 180 days.