Template:CopyText
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This template uses Module:CopyText, a script written in Lua.
Creates a button copy and span to display text.
Uses CopyText JavaScript from Developer Fandom Wiki.
Syntax
{{CopyText|text to copy|contents description|button text}}
Examples
{{CopyText|This text will be copied to clipboard.}}
Click on the "COPY TO CLIPBOARD" button to copy the following text:
This text will be copied to clipboard.
Template
Adding <pre></pre> around templates is required.
{{CopyText|<pre>{{Template
|argument1 = 1
|argument2 = 2
|argument2 = 3
}}</pre>|The Following is an example Syntax Overview|Copy Template}}
The Following is an example Syntax Overview
{{Template
|argument1 = 1
|argument2 = 2
|argument2 = 3
}}
Template Data
Creates a button copy and span to display text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text to Copy | 1 | Text to display and copy once button pressed | String | required |
| Contents Description | 2 | Description of the contents that will be copied.
| String | optional |
| Button Text | 3 | Text for copy button.
| String | optional |