Jump to content

Template:CopyText

From Honkai: Nexus Anima Wiki
Revision as of 20:38, 2 July 2026 by Sparda0 (talk | contribs) (Created page with "<includeonly>{{#invoke:CopyText|main}}</includeonly><noinclude>{{Documentation|type=Design}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
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