imported>Wottem (Created page with "<noinclude> ==Template structure == <nowiki>{{Togglesection |title=This is a title |content=Here is some content |button=Road |button text=A button to Road page }}</nowiki> ==...") |
imported>Wottem No edit summary |
||
(9 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> | ||
< | <includeonly> | ||
<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|}}}" | |||
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> | ||
</ | </includeonly> | ||
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