Template:FAQList

From Bose Portable PA Encyclopedia
Revision as of 14:22, 10 February 2026 by ST (talk | contribs) (Created page with "<noinclude> This template wraps multiple FAQItem entries and provides a pure‑CSS Expand All / Collapse All toggle using the checkbox hack. Usage: <nowiki>{{FAQList| cont...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template wraps multiple FAQItem entries and provides a pure‑CSS Expand All / Collapse All toggle using the checkbox hack.

Usage:

{{FAQList| content = {{FAQItem|question=...|answer=...}} {{FAQItem|question=...|answer=...}} }}


<style> .faq-toggle { display:none; } .faq-toggle + label {

 cursor:pointer;
 font-weight:bold;
 display:inline-block;
 margin:0.5em 0;

} .faq-collapsed, .faq-expanded { display:none; } .faq-toggle:not(:checked) ~ .faq-collapsed { display:block; } .faq-toggle:checked ~ .faq-expanded { display:block; } </style>

<input type="checkbox" id="faq-toggle" class="faq-toggle" />

<label for="faq-toggle">

 Expand all
 Collapse all

</label>

{{{content}}}

}{{{content}}}