cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Rollback to split single-line and multi-line comment) |
Lou Montana (talk | contribs) m (Fix template page format and add newline removal) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Color|blue|''<nowiki>//</nowiki> {{#replace:{{Trim|{{{1|-no comment defined-}}}}}|<nowiki/> | ||
<nowiki/>|<nowiki/> <nowiki/>}}''}}</includeonly><noinclude>__NOTOC__ | |||
Displays a one-lined code comment. | Displays a one-lined code comment. | ||
== Usage == | == Usage == | ||
{{<nowiki/>cc|'''''message'''''}} | |||
* message: comment to display | |||
= | {| class="wikitable" | ||
|+ Examples | |||
! 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 | |||
is | |||
wonderful}}</nowiki> | |||
| {{cc|this | |||
code | |||
is | |||
wonderful}} | |||
|} | |||
== See also == | == See also == |
Revision as of 16:19, 4 December 2020
Displays a one-lined code comment.
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 |