Template:Flash2
Note: This documentation is incomplete, as it lacks documentation for the gadget required for its functionality.
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.
A note on security
Flash objects are files with the .swf
extension which may contain animations, video, audio, and interactive components. The Adobe Flash plugin, which comes pre-installed on many computers, and comes by default with Google Chrome, is required to view such content in your browser. However, Flash objects may present a security risk, as they can contain malicious code.[1] Be sure to keep your version of the Flash player up-to-date, and if you are unsure, never enable flash objects on en.uncyclopedia.co by default. "Like, duhhhh!"
Usage
{{Flash2|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:
{{Flash2|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:
{{Flash2|MyMovie.swf|390|270|float=left}}
Setting variables
If your flash object requires variables to be passed to it, use the flashvars
parameter. Example:
{{Flash2|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:
{{Flash2|MyMovie.swf|image=Black_cat.jpg}}
About
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.
- ↑ In light of this, Flash objects are disabled by default in Chrome, and the Firefox Flash plugin has been disabled by default several times by Mozilla.