This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Template:Flash2

From Nocyclopedia
[edit] [purge] Template-info.svg Template documentation


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.

400
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. 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 nocyclopedia.miraheze.org 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 400 by 300 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.


  1. 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.

zh-tw:範本:Flash