Difference between revisions of "Template:CopyText"

m
edited style
m (added usage)
m (edited style)
Line 1: Line 1:
<includeonly>
<includeonly>
<br style="clear: both;">
<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-text="{{{1|}}}" aria-disabled="false">COPY TO CLIPBOARD</span>
<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;" role="button" data-clipboard-text="{{{1|}}}" aria-disabled="false">COPY TO CLIPBOARD</span></div><span id="copy-to-clipboard-text">{{{1|}}}</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
;Usage