cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) (Remove codecomment dependency, Add Category:cc template usage error categorisation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><span class="code-comment">// {{Trim|{{{1|-no comment defined-{{TemplateCase||[[Category:cc template usage error]]}}}}}}}</span></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. It also adds the page to the [[:Category:cc template usage error|cc template usage error]] category on usage error. | ||
|param1= message | |param1= message | ||
|descr1= comment to display | |descr1= comment to display | ||
|example1= <nowiki>{{cc}}</nowiki> | |example1= <nowiki>{{cc}}</nowiki> | ||
|result1= {{cc}} | |result1= {{cc}} | ||
|example2= <nowiki>{{cc|this code is wonderful}}</nowiki> | |example2= <nowiki>{{cc|this code is wonderful}}</nowiki> | ||
|result2= {{cc|this code is wonderful}} | |result2= {{cc|this code is wonderful}} | ||
|example3= <div style="white-space: pre"><nowiki>{{cc|this | |example3= <div style="white-space: pre"><nowiki>{{cc|this | ||
code | code |
Latest revision as of 14:56, 30 June 2022
Displays a one-lined code comment. See {{codecomment}} for multi-lines comments. It also adds the page to the cc template usage error category on usage error.
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 |