codecomment – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
 
Line 1: Line 1:
<includeonly><span class="code-comment">{{{1|-no comment defined-{{TemplateCase||[[Category:cc template usage error]]}}}}}</span></includeonly><noinclude>{{Doc/Template
<includeonly><span class="code-comment">{{{1|-no comment defined-{{TemplateCase||[[Category:codecomment template usage error]]}}}}}</span></includeonly><noinclude>{{Doc/Template
|descr= Displays a colour-coded code comment. See {{Template|cc}} for single-line comments. It also adds the page to the [[:Category:codecomment template usage error|cc template usage error]] category on usage error.
|descr= Displays a colour-coded code comment. See {{Template|cc}} for single-line comments. It also adds the page to the [[:Category:codecomment template usage error|codecomment template usage error]] category on usage error.


|example1= <nowiki>{{codecomment}}</nowiki>
|example1= <nowiki>{{codecomment}}</nowiki>

Latest revision as of 17:43, 30 June 2022

Displays a colour-coded code comment. See {{cc}} for single-line comments. It also adds the page to the codecomment template usage error category on usage error.

This template is used on these pages.

Usage

{{codecomment}}


Examples
Code Result
{{codecomment}} -no comment defined-
{{codecomment|example comment}} example comment
{{codecomment|/* example comment <nowiki/>*/}}

/* example comment */