Extension:PreToClip/en

From Linux Web Expert

Revision as of 14:04, 8 February 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


File:MediaWiki Stakeholders' Group Logo.svg <translate> This extension is maintained by a member of the <tvar name=1>MediaWiki Stakeholders' Group </tvar>.</translate>
MediaWiki extensions manual
PreToClip
Release status: stable
File:BlueSpice Extension PreToClip 001.png
Implementation Parser extension , Skin
Description Adds a "Copy to clipboard"-Button to every ‎<pre>-tag
Author(s) Thomas Candrian, Robert Vogel
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki
Database changes No
License No license specified
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the PreToClip extension if it is available at translatewiki.net

The PreToClip extension adds a "Copy to clipboard" button to every ‎<pre> tag, even auto-generated ones (e.g. by Extension:SyntaxHighlight ).

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/PreToClip</tvar>|Download]] and move the extracted <tvar name=name>PreToClip</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PreToClip
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'PreToClip' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

External links