More actions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
{ | { | ||
"params": { | "params": { | ||
"collapsed": {}, | "collapsed": { | ||
"width": {}, | "description": "Whether or not it is collapsed by default", | ||
"heading": {}, | "type": "boolean", | ||
"code": {} | "default": "true" | ||
}, | |||
"width": { | |||
"description": "The width of the entire code box", | |||
"type": "string", | |||
"default": "100%" | |||
}, | |||
"heading": { | |||
"description": "The heading/headline for the code box", | |||
"type": "string", | |||
"default": "Code" | |||
}, | |||
"code": { | |||
"description": "The actual content of the box. This can also be supplied as a unnamed parameter", | |||
"type": "content" | |||
} | |||
}, | }, | ||
"format": "inline" | "format": "inline" |
Revision as of 00:45, 25 December 2024
A simple template to add a collapsible (and by default collapsed) bit of code to a wiki page
Something
This is some test code text.
It can have multiple lines
and they should show up correctly.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
collapsed | collapsed | Whether or not it is collapsed by default
| Boolean | optional |
width | width | The width of the entire code box
| String | optional |
heading | heading | The heading/headline for the code box
| String | optional |
code | code | The actual content of the box. This can also be supplied as a unnamed parameter | Content | optional |