cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Add .code-comment class usage) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{codecomment|// {{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
Code | Result |
---|---|
{{cc}} | // -no comment defined- |
{{cc|this code is wonderful}} | // this code is wonderful |
{{cc|this
code
is
wonderful}}
|
// this
code is wonderful |