Template:Copy
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. Setstyle=button
for it to be a nice clean button, orstyle=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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text to be copied | 1 | What should be copied to the clipboard | String | required |
Style | style | 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)
| String | suggested |
Button text | buttontext | What is displayed on the button.
| String | suggested |