cc – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Remove link)
m (Some wiki formatting)
Line 1: Line 1:
<includeonly>{{Color|blue|''<nowiki>//</nowiki>&nbsp;{{Trim|{{{1|-no comment defined-}}}}}''}}</includeonly><noinclude>__NOTOC__
<includeonly>{{Color|blue|''<nowiki>//</nowiki>&nbsp;{{Trim|{{{1|-no comment defined-}}}}}''}}</includeonly><noinclude>{{Doc/Template
Displays a one-lined code comment.
|descr= Displays a one-lined code comment. See {{Template|codecomment}} for multi-lines comments.
 
|param1= message
== Usage ==
|descr1= comment to display
{{<nowiki/>cc|'''''message'''''}}
|example1= <nowiki>{{cc}}</nowiki>
* message: comment to display
|result1= {{cc}}
 
|example2= <nowiki>{{cc|this code is wonderful}}</nowiki>
{| class="wikitable"
|result2= {{cc|this code is wonderful}}
|+ Examples
|example3= <div style="white-space: pre"><nowiki>{{cc|this
! Code
! Result
|-
| <nowiki>{{cc}}</nowiki>
| {{cc}}
|-
| <nowiki>{{cc|this code is wonderful}}</nowiki>
| {{cc|this code is wonderful}}
|-
| style="white-space: pre" | <nowiki>{{cc|this
code
code
is
is
wonderful}}</nowiki>
wonderful}}</nowiki></div>
| {{cc|this
|result3= {{cc|this
code
code
is
is
wonderful}}
wonderful}}
|}
}}</noinclude>
 
== See also ==
* [[Template:codecomment]]
 
[[Category:Templates|{{uc:cc}}]]
</noinclude>

Revision as of 10:06, 20 September 2021

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