Extension:CopyToClipboard

From MediaWiki.org
Jump to: navigation, search

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

Release status:Extension status beta

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Lets you insert a button to copy text to clipboard
Author(s)Template:Extension#username Nischay Nahata (Nischayn22talk)
Latest versionTemplate:Extension#version 0.2.0 (2014-03-31)
MediaWikiTemplate:Extension#mediawiki 1.18+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
ExampleTemplate:Extension#example snapshot.png
ParametersTemplate:Extension#parameters
  • $wgClippy
TagsTemplate:Extension#tags
* <clippy>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

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

Check usage and version matrix.

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

Note Note: This extension uses Flash 9 and above.

Usage[edit]

<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]

  • 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";
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]