Difference between revisions of "Template:FAQList"
m |
m |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| − | + | <big>FAQList usage</big> | |
| − | + | ||
| + | # Wrap multiple FAQItem entries inside this template | ||
| + | # Put all FAQItem calls after | content = | ||
| + | # Each FAQItem will appear inside a single FAQ list with Expand/Collapse All controls | ||
| + | |||
| + | ---- | ||
| + | |||
| + | <nowiki>{{</nowiki>'''FAQList''' | ||
| + | |||
| + | | content = | ||
| + | {{FAQItem | ||
| + | |question = | ||
| + | |answer = | ||
| + | }} | ||
| + | |||
| + | {{FAQItem | ||
| + | |question = | ||
| + | |answer = | ||
| + | }} | ||
| + | |||
| + | <nowiki>}}</nowiki> | ||
| + | |||
| + | ---- | ||
| + | |||
| + | The FAQList will render as it appears below this line. | ||
| + | |||
| + | ---- | ||
</noinclude> | </noinclude> | ||
| − | <div class="faq-list" > | + | <div class="faq-list"> |
<div class="faq-controls"> | <div class="faq-controls"> | ||
<span class="faq-expand-all" style="cursor:pointer; font-weight:bold;">Expand all</span> | <span class="faq-collapse-all" style="cursor:pointer; font-weight:bold;">Collapse all</span> | <span class="faq-expand-all" style="cursor:pointer; font-weight:bold;">Expand all</span> | <span class="faq-collapse-all" style="cursor:pointer; font-weight:bold;">Collapse all</span> | ||
</div> | </div> | ||
| − | |||
| − | |||
{{{content}}} | {{{content}}} | ||
</div> | </div> | ||
Revision as of 15:05, 10 February 2026
FAQList usage
- Wrap multiple FAQItem entries inside this template
- Put all FAQItem calls after | content =
- Each FAQItem will appear inside a single FAQ list with Expand/Collapse All controls
{{FAQList
| content =
}}
The FAQList will render as it appears below this line.
| Collapse all
{{{content}}}