switch_state_1 optional default [+] (only when both switch texts are empty)Link text shown while the target is hidden (the closed state) - for example Show details. The special tokens [+] and [-] are replaced by AAs plus/minus icon images. If you leave both switch_state_1 and switch_state_2 empty, the command uses [+] / [-] by default.
switch_state_2 optional default [-] (only when both switch texts are empty)Link text shown while the target is visible (the open state) - for example Hide details. The [+] / [-] icon tokens work here too. Defaults to [-] only when both switch texts are left empty.
css_rule requiredA CSS selector matching the element(s) to show and hide - an id (#id82422), a class (.details), or a compound rule (#my-page div.details). All matching elements toggle together. Required: with an empty css_rule the whole expression prints nothing. The matched element should start hidden (style=display:none) unless is_on is 1.
is_on optional default 0Set to 1 when the target is visible by default, so the link starts in the open state (it gets the is-on class and shows switch_state_2). Any other value, or omitting it, keeps the target hidden and starts on switch_state_1.
{htmltogglecss:Show details:Hide details:#offer-details}
{htmltogglecss:[+]:[-]:.extra-info}
{htmltogglecss:Show all answers:Hide answers:.faq-answer}
{htmltogglecss:Read more:Read less:#bio:1}
{htmltogglecss:more:less:#detail_{_#SITEM_ID}}
[{htmltogglecss:Show:Hide:}]