Template:FAQItem: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
(Created page with "<noinclude> <templatedata> { "description": "Creates a FAQ item with collapsible details and a permalink", "params": { "question": { "label": "Question", "description": "The Question", "type": "string", "required": true }, "answer": { "label": "Answer", "description": "The Answer to the question", "type": "string", "required": true } } } </templatedata> <big>FAQItem usage</big> # Copy text between th...")
 
mNo edit summary
Line 49: Line 49:
<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;"></html>{{{question}}}<html></summary>
</html>


<div style="margin:0.5em 0 1em 0; font-size:smaller;">
<div style="margin:0.5em 0 1em 0; font-size:smaller; opacity:0.7;">
    <span style="opacity:0.7;">
[[{{FULLPAGENAME}}#{{anchorencode:{{{question}}}}}|Link to this question]]
        <nowiki>[[</nowiki>{{FULLPAGENAME}}#{{anchorencode:{{{question}}}}}|Link to this question]<nowiki>]]</nowiki>
    </span>
</div>
</div>


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

Revision as of 00:44, 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}}}

{{{answer}}}