Extension:CopyToClipboard

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語 • ‎polski
MediaWiki extensions manual
Crystal Clear action run.png
CopyToClipboard

Release status: beta

Implementation Tag
Description Lets you insert a button to copy text to clipboard
Author(s) Nischay Nahata (Nischayn22talk)
Latest version 0.2.0 (2014-03-31)
MediaWiki 1.18+
PHP 5.3+
Database changes No
License GNU General Public License 3.0
Download
Example snapshot.png
Parameters
  • $wgClippy
Tags
* <clippy>
Hooks used
ParserFirstCallInit

Translate the CopyToClipboard extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The CopyToClipboard extension lets you put a button to copy text to clipboard.

Note Note: This extension uses Flash 9 and above.

Usage[edit | edit source]

<clippy show="true">TextToCopy</clippy>

Here "TextToCopy" denotes the text to be copied and displayed.

The attribute show is optional. Set it to true if the text is to be displayed as well.

Installation[edit | edit source]

  • Download and place the file(s) in a directory called CopyToClipboard in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/CopyToClipboard/CopyToClipboard.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

See also[edit | edit source]