Template:FAQItemNL: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
{
  "description": "Creates a FAQ item",
  "params": {
    "text": {
      "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>
<big>FAQItem usage</big>
# Copy text between the horizontal lines for each Question with Answer
# Put the Question after | question =
# Put the Answer after | answer =


----
----


<nowiki>{{</nowiki>'''FAQItem'''
<nowiki>{{</nowiki>'''FAQItem'''
| id =


| question =  
| question =  
Line 13: Line 36:


<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
If '''id''' is provided, a link icon will appear beside the question.


----
----


The FAQItem will render as it appears below this line.
The FAQItem will render as it appears below this line.
----
----
</noinclude>
</noinclude>


<html><div </html>{{#if:{{{id|}}}|<html>id="</html>{{{id}}}"|}}<html>></html>
<html>
<html>
<details class="faq-item">
<details class="faq-item">
<summary style="font-weight: bold; font-size:larger;"></html>{{{question|Question}}}{{#if:{{{id|}}}| <a href="#{{{id}}}" class="faq-link-icon" style="margin-left:8px; text-decoration:none;">🔗</a>|}}<html></summary>
<summary style="font-weight: bold; font-size:larger;"></html>{{{question|Question}}}<html></summary>
<blockquote class="faq-answer">
<blockquote class="faq-answer">
</html>{{{answer|Answer}}}<html>
</html>{{{answer|Answer}}}<html>
Line 32: Line 52:
</details>
</details>
</html>
</html>
</div>

Revision as of 06:33, 26 February 2026

Creates a FAQ item

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Questiontext

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