Editing
Template:Copy/doc
Jump to navigation
Jump to search
β οΈ
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
Generates a button that will copy a certain string to the clipboard when clicked. {{copy|https://bit.ly/32BnSAh|style=button}} 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 == <code>{{copy|''string to be copied''|buttontext=''button text''|style=''link'' (default) or ''button''}}</code> * <code>''string to be copied''</code> - Required. What should be copied to the clipboard. * <code>buttontext=</code> - Optional. What the button says. Default is "Copy to clipboard". * <code>style=</code> - Optional. Set <code>style=button</code> for it to be a nice clean button, or <code>style=link</code> for the button to mimic a link. Note that it doesn't mimic links very well. Default is link. == Examples == <code>{{copy|gaming}}</code> outputs: {{copy|gaming}} <code>{{copy|dead chat xd|style=button|buttontext=dead chat xd}}</code> outputs: {{copy|dead chat xd|style=button|buttontext=dead chat xd}} == Template data == <templatedata> { "params": { "1": { "label": "Text to be copied", "description": "What should be copied to the clipboard", "type": "string", "required": true }, "buttontext": { "label": "Button text", "description": "What is displayed on the button.", "type": "string", "default": "Copy to clipboard", "suggested": true }, "style": { "label": "Style", "description": "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)", "type": "string", "default": "link", "suggested": true } }, "description": "Generates a button that will copy a string to the clipboard when clicked.", "paramOrder": [ "1", "style", "buttontext" ], "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Copy
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Page values