Template:Copy/doc

From Irony Wiki
Jump to navigation Jump to search

Generates a button that will copy a certain string to the clipboard when clicked.

Note that this only works on modern, up-to-date browsers. It will not work on Internet Explorer or old versions of modern browsers.

Usage[edit source]

{{copy|string to be copied|buttontext=button text|style=link (default) or button}}

  • string to be copied - Required. What should be copied to the clipboard.
  • buttontext= - Optional. What the button says. Default is "Copy to clipboard".
  • style= - Optional. Set style=button for it to be a nice clean button, or style=link for the button to mimic a link. Note that it doesn't mimic links very well. Default is link.

Examples[edit source]

{{copy|gaming}} outputs:

{{copy|dead chat xd|style=button|buttontext=dead chat xd}} outputs:

Template data[edit source]

Generates a button that will copy a string to the clipboard when clicked.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text to be copied1

What should be copied to the clipboard

Stringrequired
Stylestyle

Set to "button" for it to be a nice, clean, blue button. Set it to "link" for it to mimic a regular link (though it does not mimic links very well)

Default
link
Stringsuggested
Button textbuttontext

What is displayed on the button.

Default
Copy to clipboard
Stringsuggested