Difference between revisions of "Template:Accordion"

From Akvopedia
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="akvo-accordion">{{{sections}}}</div></includeonly><noinclude>
+
<includeonly><use_accordion /><div class="akvo-accordion">{{{sections}}}</div></includeonly><noinclude>
  
 
Display content using the [http://api.jqueryui.com/accordion/ JQuery accordion widget.]
 
Display content using the [http://api.jqueryui.com/accordion/ JQuery accordion widget.]
Line 17: Line 17:
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
==== Result: ====
 +
 +
{{Accordion | sections=
 +
  {{Accordion-section | title=Section 1 | text=
 +
        Lorem ipsum ...
 +
  }}
 +
  {{Accordion-section | title=Section 2 | text=
 +
        Lorem ipsum ...
 +
  }}
 +
}}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 09:50, 18 February 2015


Display content using the JQuery accordion widget.

Usage

Examples

{{Accordion | sections=
  {{Accordion-section | title=Section 1 | text=
        Lorem ipsum ...
  }}
  {{Accordion-section | title=Section 2 | text=
        Lorem ipsum ...
  }}
}}

Result:

Section 1

Lorem ipsum ...

Section 2

Lorem ipsum ...