Extension:CopyCreds

Category:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
CopyCreds
Release status: betaCategory:Beta status extensions
Implementation Tag Category:Tag extensions
Description Creates visually distinctive click-to-copy usernames and passwords, to reduce transcription error.
Latest version 2.0 (2023-01-06)
MediaWiki 1.35+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in GitHub version control
README
Category:All extensionsCategory:Extensions not in ExtensionJson

The CopyCreds extension registers two new tags <pw> and <un>, which make the text inside them visually distinctive, and allows for click-to-copy. The goal is to make life easier for those who document usernames and passwords in MediaWiki.

There are no configuration options, or special dependencies , other than requiring MW 1.35.0 or higher.

Installation

  • Download the source zip, extract it, and copy the CopyCreds folder to your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension('CopyCreds');
  • Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Use

Simply wrap text you'd like to be copyable in either <un></un> or <pw></pw>. The only difference between these two is the highlight box border color.

Category:All extensions Category:BeforePageDisplay extensions Category:Beta status extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Tag extensions