Template:ReportABug: Difference between revisions

From MaRDI portal
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="doi-badge"><span class="doi-badge-part doi-label" data-tippy-content="Report a bug!" style="background-color: red !important;">Report a bug</span><span class="doi-badge-part doi-number"><link itemprop="identifier" href="{{{1}}}" />[{{{1}}}?report_a_bug {{{2}}}]</span></span>
<span class="doi-badge"><span class="doi-badge-part doi-label" data-tippy-content="Report a bug!" style="background-color: red !important;">Report a bug (only for logged in users!)</span><span class="doi-badge-part doi-number"><link itemprop="identifier" href="{{{1}}}" />[https://portal.mardi4nfdi.de/wiki/{{TALKPAGENAMEE}}?action=edit&redlink=1&preload=Template:ReportABugPreload Click here to report a bug for this page (MaRDI item {{{2}}})]</span></span>
 
{{#tag:html|
  <input type="text" id="bug-text" placeholder="Describe the issue..." style="margin-left: 0.5em; padding: 0.2em; max-width: 300px;" />
  <script>
    document.addEventListener("DOMContentLoaded", function () {
      const badge = document.getElementById("bug-badge");
      const input = document.getElementById("bug-text");
      if (badge && input) {
        badge.addEventListener("click", function () {
          const base = "{{{1}}}";
          const message = encodeURIComponent(input.value);
          const url = base + "?report_a_bug=True&text=" + message;
          window.location.href = url;
        });
      }
    });
  </script>
}}

Latest revision as of 09:12, 25 June 2025

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item {{{2}}})