Template:CopyText/doc

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
This is the documentation page for CopyText.
It contains usage information, categories, and other content not part of the original template page.
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:COPY TO CLIPBOARD

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 OverviewCopy Template

{{Template
|argument1 = 1
|argument2 = 2
|argument2 = 3
}}

Template Data

Creates a button copy and span to display text.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text to Copy1

Text to display and copy once button pressed

Stringrequired
Contents Description2

Description of the contents that will be copied.

Default
Click on the "button text" button to copy the following text:
Stringoptional
Button Text3

Text for copy button.

Default
COPY TO CLIPBOARD
Stringoptional