Template:FAQItem: Difference between revisions

mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 44: Line 44:


<!-- Generate a stable anchor ID from the question text -->
<!-- Generate a stable anchor ID from the question text -->
<!-- Generate the anchor -->
<span id="{{anchorencode:{{{question}}}}}"></span>
<span id="{{anchorencode:{{{question}}}}}"></span>
<!-- Store the fragment before entering HTML mode -->
{{#vardefine:frag|{{anchorencode:{{{question}}}}} }}


<html>
<html>
<details class="faq-item">
<details class="faq-item">
<summary style="font-weight: bold; font-size:larger;"></html>{{{question}}}<html></summary>
<summary style="font-weight: bold; font-size:larger;">{{{question}}}</summary>
</html>


<!-- Copy link control (outside HTML so wikitext variables expand) -->
<!-- Copy link control (now inside HTML mode, so not escaped) -->
<div style="margin:0.5em 0 1em 0; font-size:smaller; opacity:0.7;">
<div style="margin:0.5em 0 1em 0; font-size:smaller; opacity:0.7;">
     <a href="#" class="copy-link" data-frag="{{anchorencode:{{{question}}}}}">
     <a href="#" class="copy-link" data-frag="{{#var:frag}}">
         Copy link to this question
         Copy link to this question
     </a>
     </a>
</div>
</div>


<html>
<blockquote class="faq-answer">
<blockquote class="faq-answer">
</html>{{{answer}}}<html>
{{{answer}}}
</blockquote>
</blockquote>
</details>
</details>


<!-- JavaScript block that MediaWiki will NOT escape -->
<script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function() {