Template:Togglesection View history

imported>Wottem
No edit summary
imported>Wottem
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
==Template structure ==
==Template structure ==
<nowiki>{{Togglesection
<pre><nowiki>{{Togglesection
|title=This is a title
|title=This is a title
|content=Here is some content
|content=Here is some content
|button=Road
|button=Road
|button text=A button to Road page
|button text=A button to Road page
}}</nowiki>
}}</nowiki></pre>
== Output ==
== Output ==
{{Togglesection
{{Togglesection
Line 17: Line 17:


</noinclude>
</noinclude>
<onlyinclude><div class="page-width-container"><div class="main-content"><div class="zippy-wrapper"><div class="zippy-container">
<includeonly>
<h2 class="zippy index1 goog-zippy-expanded" aria-expanded="true" tabindex="0" role="button" data-stats-ve="2" data-stats-imp="" data-stats-idx="1,4" data-stats-ignore="">{{{title|}}}</h2></div>
<div class="details block border-b border-g border-gray-200 overflow-hidden transition-all {{#ifeq: {{{open|}}}|Yes|max-h-screen|max-h-12}} {{{class|}}}"
<div class="zippy-overflow"><div class="zippy-content" style="margin-top: 0px; transition: margin-top 0.218s ease-out 0s; overflow: auto;">
        data-details="{{#ifeq: {{{open|}}}|Yes|true|false}}" role="button" tabindex="0">
        <div class="h6 flex items-center justify-between w-full pt-1 mb-7 font-medium ">
            <h6>{{{title|}}}</h6><i
                class="w-icon w-icon-chevron-down transition transform {{#ifeq: {{{open|}}}|Yes|rotate-180|rotate-0}}"></i>
      </div>
        <div class="text-sm text-gray-900 child {{#ifeq: {{{open|}}}|Yes|block|hidden}} {{#ifeq: {{{styleLink|}}}|Yes|stylelink}}"
            data-summary>
{{{content|}}}
{{{content|}}}
{{#if:{{{button|}}}|<span class="btn btn-raised">[[{{{button|button text}}}]]</span>|}}
{{#if:{{{button|}}}|<span class="btn btn-raised">[[{{{button}}}|{{{button text|{{{button}}} }}}]]</span>|}}
</div></div>
</div></div>
</div>
</includeonly>
</div>
 
</div>
</div>
</onlyinclude>

Latest revision as of 17:44, 12 January 2022

Template structure

{{Togglesection
|title=This is a title
|content=Here is some content
|button=Road
|button text=A button to Road page
}}

Output

This is a title