Template:FAQItem: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Tag: Reverted
Line 52: Line 52:


<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;">
[[{{FULLPAGENAME}}#{{anchorencode:{{{question}}}}}|Link to this question]]
    <a href="javascript:void(0);"
      onclick="navigator.clipboard.writeText(window.location.origin + window.location.pathname + '#{{anchorencode:{{{question}}}}}');
                this.innerText='Copied!';
                setTimeout(()=>this.innerText='Copy link to this question',1500);">
      Copy link to this question
    </a>
</div>
</div>



Revision as of 00:52, 27 February 2026

Creates a FAQ item with collapsible details and a permalink

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Questionquestion

The Question

Stringrequired
Answeranswer

The Answer to the question

Stringrequired

FAQItem usage

  1. Copy text between the horizontal lines for each Question with Answer
  2. Put the Question after | question =
  3. Put the Answer after | answer =

{{FAQItem

| question =

| answer =

}}


The FAQItem will render as it appears below this line.



{{{question}}}

   <a href="javascript:void(0);" 
      onclick="navigator.clipboard.writeText(window.location.origin + window.location.pathname + '#{{{question}}}'); 
               this.innerText='Copied!'; 
               setTimeout(()=>this.innerText='Copy link to this question',1500);">
      Copy link to this question
   </a>

{{{answer}}}