wdpr
    Preparing search index...

    Module elements/collapsible

    Renderer for [[collapsible]]...[[/collapsible]] blocks.

    Wikidot's collapsible markup produces a two-state widget: a "folded" state showing a "show" link and an "unfolded" state showing the content plus a "hide" link. Toggle behavior is handled at runtime by the collapsible runtime module.

    This renderer outputs the full DOM structure for both states, with visibility controlled via inline display styles based on the start-open flag. The "hide" link can appear at the top, bottom, or both positions.

    Functions

    renderCollapsible