Extension:CopyCreds

The CopyCreds extension registers two new tags  and , 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 that I'm aware of, other than requiring MW 1.35.0 or higher.

GitHub: https://github.com/tk4100/CopyCreds

Installation

 * Download the source zip, extract it, and copy the  folder to your   folder.
 * Add the following code at the bottom of your :

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  or. The only difference between these two is the highlight box border color.