cc – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Add .code-comment class usage)
Line 1: Line 1:
<includeonly>{{Color|blue|''<nowiki>//</nowiki>&nbsp;{{Trim|{{{1|-no comment defined-}}}}}''}}</includeonly><noinclude>{{Doc/Template
<includeonly>{{codecomment|//&nbsp;{{Trim|{{{1|-no comment defined-}}}}}}}</includeonly><noinclude>{{Doc/Template
|descr= Displays a one-lined code comment. See {{Template|codecomment}} for multi-lines comments.
|descr= Displays a one-lined code comment. See {{Template|codecomment}} for multi-lines comments.
|param1= message
|param1= message

Revision as of 16:59, 14 March 2022

Displays a one-lined code comment. See {{codecomment}} for multi-lines comments.

This template is used on these pages.

Usage

{{cc|message}}

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

code is wonderful