Template:CodeBlock
From SpinetiX Support Wiki
Template documentation
The CodeBlock template displays a distinctive code block, which may contain a title and/or a description.
It accepts the following parameters:
- class
- Additional CSS class for the block.
- cssStyle
- Additional block styling provided as CSS code.
- description
- A text displayed after the title.
- title
- The title, styles with "title" class.
The entire section is styled with the "codeBlock" class, defined in Common.css.
Examples
{{CodeBlock | title=GET | description=coaps+tcp://[[HMP_address]]/webstorage?v={key} | class=op-get}}
GETcoaps+tcp://HMP_address/webstorage?v={key}
{{CodeBlock | class=op-post | title=POST | description=http(s)://[[HMP_address]]/webstorage }}
POSThttp(s)://HMP_address/webstorage
{{CodeBlock | title=PUT| description=coaps+tcp://[[HMP_address]]/webstorage?v={key} | class=op-put}}
PUTcoaps+tcp://HMP_address/webstorage?v={key}
{{CodeBlock | class=op-del | title=DELETE | description=http(s)://[[HMP_address]]/webstorage/{key} }}
DELETEhttp(s)://HMP_address/webstorage/{key}