Manjaro Difference between revisions of "Template:CopyText"

Difference between revisions of "Template:CopyText"

Template page
m (test)
m (changed margin)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{{1|}}}<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}} copy-to-clipboard-button" style="float: right; cursor: pointer; border-radius:5px; margin-top:5px" role="button" data-clipboard-text="{{{1|}}}" aria-disabled="false">COPY TO CLIPBOARD</span></div>
<br style="clear: both;">
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}} copy-to-clipboard-button" style="float: right; cursor: pointer; color: currentColor; border-color: currentColor; margin-top: -37px;" role="button" data-clipboard-target="#copy-to-clipboard-text" aria-disabled="false">COPY TO CLIPBOARD</span>
<div style="height: 1px; margin: 2px 0 0; background: rgb(166, 166, 166); background: rgba(166, 166, 166, 0.5);"></div><span id="copy-to-clipboard-text">{{{1|}}}</span>
</includeonly><noinclude>
</includeonly><noinclude>
;Usage
<pre>
{{CopyText|<text to copy>}}
{{CopyText|<text to copy>}}
</pre>
{{CopyText|test}}
</noinclude>
</noinclude>

Latest revision as of 10:35, 26 September 2021

Usage
{{CopyText|<text to copy>}}

testCOPY TO CLIPBOARD


Cookies help us deliver our services. By using our services, you agree to our use of cookies.