Template:ReportCitation: Difference between revisions
Jump to navigation
Jump to search
Created page with "<div class="report-citation"> <div class="report-citation-title">Please use the following reference to cite this report</div> <div class="report-citation-text">{{{citation}}}</div> <div class="report-citation-doi">[{{{doi}}} {{{doi}}}]</div> </div>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="report-citation"> | <onlyinclude><div class="rcit-box"> | ||
<div class="rcit-header">Cite this report</div> | |||
<div class="rcit-text" id="rcit-text-{{{1|1}}}">{{{citation}}}</div> | |||
<button class="rcit-btn" onclick=" | |||
var el = this.previousElementSibling; | |||
navigator.clipboard.writeText(el.innerText).then(function() { | |||
var btn = el.nextElementSibling; | |||
btn.textContent = 'Copied!'; | |||
btn.classList.add('rcit-copied'); | |||
setTimeout(function() { | |||
btn.textContent = 'Copy to clipboard'; | |||
btn.classList.remove('rcit-copied'); | |||
}, 2000); | |||
}); | |||
">Copy to clipboard</button> | |||
</div></onlyinclude> | |||
<noinclude> | |||
== Usage == | |||
<pre> | |||
{{ReportCitation | |||
| citation = Kovač, Maria, Thomas Berg, and Sun Li. ''Annual Climate Assessment 2023''. Berlin: Institute for Climate Research, 2023. https://doi.org/10.1234/example. | |||
}} | |||
</pre> | |||
Note: italic text in the citation should use wiki markup (''double apostrophes'') as normal. | |||
[[Category:Templates]] | |||
</noinclude> | |||
</ | |||
Revision as of 04:33, 10 April 2026
Cite this report
{{{citation}}}
<button class="rcit-btn" onclick="
var el = this.previousElementSibling;
navigator.clipboard.writeText(el.innerText).then(function() {
var btn = el.nextElementSibling;
btn.textContent = 'Copied!';
btn.classList.add('rcit-copied');
setTimeout(function() {
btn.textContent = 'Copy to clipboard';
btn.classList.remove('rcit-copied');
}, 2000);
});
">Copy to clipboard</button>
Usage
{{ReportCitation
| citation = Kovač, Maria, Thomas Berg, and Sun Li. ''Annual Climate Assessment 2023''. Berlin: Institute for Climate Research, 2023. https://doi.org/10.1234/example.
}}
Note: italic text in the citation should use wiki markup (double apostrophes) as normal.