Template:ccml

From Bohemia Interactive Community
Jump to navigation Jump to search

Displays a multi-lined code comment.

Usage

  • There is an issue with in space-triggered code blocks (see below). Use <code> tags instead for multiline comments.
  • There is also an issue where leaving a blank line would break the code block (even in <code> tags - use <br> instead)

spaced

/*

test1
test2
test3
*/

spaced + line return

/*

test1
test2
test3
*/

code tag /* test1 test2 test3 */

code tag + line return /* test1 test2

test3 */

{{ccml|message}}

  • message: comment to display
Examples
Code Result
{{ccml}} /* -no comment defined- */
{{ccml|this code is wonderful}} /* this code is wonderful */
{{ccml| this code is wonderful}} /* this code is wonderful */
<code>{{ccml|this
code
is
wonderful}}</code>
/*

this code is wonderful */

<code>{{ccml|
this
code<br>
is
wonderful

}}</code>
/*

this code

is wonderful */

See also