Inline Collapsible Block Module

NOTICE:

This is a component page used internally by the SCP Wiki. It is intended to be used and included on other pages.

rating: +18+x

This is an inline collapsible block module. Originally created by yuuki410yuuki410 and adapted by hoah2333hoah2333 for combining the code into the instruction page.

A cool example of

It's useful when needs permission verification, such as the part which can only be accessed by relevant personnel in special containment procedure.

How To Use

Put the following code in where you need the inline-colmod:

[[div class="inline-colmod"]]
Text before collapsible block
[[include :scp-wiki:component:inline-colmod show=Text displayed before clicking | content=Text displayed after clicking]]
Text after collapsible block
[[/div]]


Note: you must put the [[include ...]] in an independent line.

What this is

This page contains the source code for the top half of the Nested Collapsible component, created by Boyu12Boyu12 for the Japanese branch.

Usage

How to create a nested collapsible:

[[include :scp-wiki:component:coltop
| show=+ show block
| hide=- hide block
]]
Text to show inside the collapsible
[[include :scp-wiki:component:colend]]

Don't remove any of the pipe symbols! (|)

show
Default: "+ show block"
The text of the button that opens the collapsible.
hide
Default: "- hide block"
The text of the button that closes the collapsible.
nohide
Default: 0
If 0, the "hide" text will be shown when the collapsible is open. If 1, it will not be.
folded
Default: 1
If 0, the collapsible will start opened. If 1, it will start closed.

You can nest as many Nested Collapsibles inside each other as you like. You can even put Nested Collapsibles inside regular collapsibles, and vice versa. However, you cannot nest regular collapsibles inside other regular collapsibles.

Pages in this component:


    • _

    {$content}

    What this is

    This page contains the source code for the bottom half of the Nested Collapsible component, created by Boyu12Boyu12 for the Japanese branch.

    Usage

    How to create a nested collapsible:

    [[include :scp-wiki:component:coltop
    | show=+ show block
    | hide=- hide block
    ]]
    Text to show inside the collapsible
    [[include :scp-wiki:component:colend]]

    Don't remove any of the pipe symbols! (|)

    show
    Default: "+ show block"
    The text of the button that opens the collapsible.
    hide
    Default: "- hide block"
    The text of the button that closes the collapsible.
    nohide
    Default: 0
    If 0, the "hide" text will be shown when the collapsible is open. If 1, it will not be.
    folded
    Default: 1
    If 0, the collapsible will start opened. If 1, it will start closed.

    You can nest as many Nested Collapsibles inside each other as you like. You can even put Nested Collapsibles inside regular collapsibles, and vice versa. However, you cannot nest regular collapsibles inside other regular collapsibles.


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License