cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Remove link) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
<includeonly>{{Color|blue|''<nowiki>//</nowiki> {{Trim|{{{1|-no comment defined-}}}}}''}}</includeonly><noinclude> | <includeonly>{{Color|blue|''<nowiki>//</nowiki> {{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 | |||
|descr1= comment to display | |||
{{ | |example1= <nowiki>{{cc}}</nowiki> | ||
|result1= {{cc}} | |||
|example2= <nowiki>{{cc|this code is wonderful}}</nowiki> | |||
|result2= {{cc|this code is wonderful}} | |||
|example3= <div style="white-space: pre"><nowiki>{{cc|this | |||
| {{cc}} | |||
| | |||
| {{cc|this code is wonderful}} | |||
| | |||
code | code | ||
is | is | ||
wonderful}}</nowiki> | wonderful}}</nowiki></div> | ||
| {{cc|this | |result3= {{cc|this | ||
code | code | ||
is | is | ||
wonderful}} | wonderful}} | ||
}}</noinclude> | |||
</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
Code | Result |
---|---|
{{cc}} | // -no comment defined- |
{{cc|this code is wonderful}} | // this code is wonderful |
{{cc|this
code
is
wonderful}}
|
// this
code is wonderful |