Jump to content

Template:CopyText/doc

From Honkai: Nexus Anima Wiki
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

[edit source]

{{CopyText|text to copy|contents description|button text}}

Examples

[edit source]
{{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

[edit source]

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

[edit source]

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