Template:FAQItemNL: Difference between revisions

From Bose Portable PA Encyclopedia
Jump to navigation Jump to search
m (Undo revision 25442 by ST (talk))
Tag: Undo
m (add optional id, linkto icon)
Line 2: Line 2:
<big>FAQItem usage</big>
<big>FAQItem usage</big>


# Copy text between the horizontal lines for each Question with Answer
Optional: <code>| id = custom-id</code> 
# Put the Question after | question =
 
# Put the Answer after | answer =
Required: <code>| question =</code> 
 
Required: <code>| answer =</code> 
 
If <code>id</code> is provided, a link icon will appear beside the question.


----
----
<nowiki>{{FAQItem
| id      = optional-custom-id
| question = Your question
| answer  = Your answer
}}</nowiki>
----
</noinclude>


<nowiki>{{</nowiki>'''FAQItem'''
<html>
<details class="faq-item"{{#if:{{{id|}}}| id="{{{id}}}"|}}>
<summary style="font-weight: bold; font-size:larger;">
</html>


| question =
<!-- Question text -->
{{{question|Question}}}


| answer =  
<!-- Link icon (only if id is provided) -->
{{#if:{{{id|}}}|
<html><a href="#{{{id}}}" class="faq-link-icon" style="margin-left:8px; text-decoration:none;">🔗</a></html>
|}}


<nowiki>}}</nowiki>
<html>
</summary>


----
<blockquote class="faq-answer">
 
</html>
The FAQItem will render as it appears below this line.


----
{{{answer|Answer}}}
</noinclude>


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

Revision as of 06:32, 23 February 2026

FAQItem usage

Optional: | id = custom-id

Required: | question =

Required: | answer =

If id is provided, a link icon will appear beside the question.


{{FAQItem | id = optional-custom-id | question = Your question | answer = Your answer }}



Question

{{#if:| 🔗 |}}

Answer