Difference between revisions of "Template:Collapsible"
Jump to navigation
Jump to search
(Updated the template data.) |
|||
Line 7: | Line 7: | ||
<noinclude><templatedata> | <noinclude><templatedata> | ||
{ | { | ||
− | + | "description": "Template for adding 'spoiler' like content windows.", | |
− | + | "params": { | |
− | + | "collapsed": { | |
− | + | "label": "Collapsed", | |
− | + | "description": "If this should be collapsed by default on load.", | |
− | + | "type": "string", | |
− | + | "suggested": true | |
− | + | }, | |
− | + | "title": { | |
− | + | "label": "Title", | |
− | + | "description": "Bold, always shown on top of the template text.", | |
− | + | "type": "line" | |
− | + | }, | |
+ | "alwaysshowncontent": { | ||
+ | "label": "Always Shown Content", | ||
+ | "description": "Content that is always shown in the box. This information can't be hidden.", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "hiddencontent": { | ||
+ | "label": "Hidden Content", | ||
+ | "description": "Content that can be hidden within the box.", | ||
+ | "type": "content", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "format": "block" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 03:42, 28 January 2020
Template for adding 'spoiler' like content windows.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Collapsed | collapsed | If this should be collapsed by default on load. | String | suggested |
Title | title | Bold, always shown on top of the template text. | Line | optional |
Always Shown Content | alwaysshowncontent | Content that is always shown in the box. This information can't be hidden. | Content | optional |
Hidden Content | hiddencontent | Content that can be hidden within the box. | Content | required |