Template:FAQList: Difference between revisions

mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 23: Line 23:
<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
{{FAQList


Line 33: Line 32:
     |answer  = answer 1
     |answer  = answer 1
     }}
     }}
     {{FAQItem
     {{FAQItem
     |question = question 2
     |question = question 2
     |answer  = answer 2
     |answer  = answer 2
     }}
     }}
}}


}}
</noinclude>
----
<noinclude>
This template wraps multiple FAQItem entries and provides Expand All / Collapse All
This template wraps multiple FAQItem entries and provides Expand All / Collapse All
using site-level JavaScript in MediaWiki:Common.js.
using site-level JavaScript in MediaWiki:Common.js.
</noinclude>
</noinclude>
<div class="faq-list" >
<div class="faq-list" >
Line 54: Line 45:
   <span class="faq-expand-all" style="cursor:pointer; font-weight:bold;">Expand all</span>&nbsp;|&nbsp;<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>&nbsp;|&nbsp;<span class="faq-collapse-all" style="cursor:pointer; font-weight:bold;">Collapse all</span>
</div>
</div>
{{{content}}}
{{{content}}}
</div>


</div>
<noinclude>
[[Category:FAQ]]
</noinclude>