Template:FAQList: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 22: | Line 22: | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
The FAQList will render as it appears below this line. | The FAQList will render as it appears below this line. | ||
---- | ---- | ||
{{FAQList | |||
| content = | | content = | ||
{{FAQItem | {{FAQItem | ||
| Line 42: | Line 32: | ||
|answer = answer 1 | |answer = answer 1 | ||
}} | }} | ||
{{FAQItem | {{FAQItem | ||
|question = question 2 | |question = question 2 | ||
|answer = answer 2 | |answer = answer 2 | ||
}} | }} | ||
}} | |||
This template wraps multiple FAQItem entries and provides Expand All / Collapse All | |||
using site-level JavaScript in MediaWiki:Common.js. | |||
</noinclude> | |||
<div class="faq-list" > | |||
<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> | |||
</div> | |||
{{{content}}} | |||
</div> | |||
<noinclude> | |||
[[Category:FAQ]] | |||
</noinclude> | |||
</ | |||