cc – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix example) |
Lou Montana (talk | contribs) (Rollback to split single-line and multi-line comment) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><span style="color: #00F; font-style: italic;"><nowiki>//</nowiki> {{{1}}}</span></includeonly><noinclude>__NOTOC__ | ||
Displays a one-lined code comment. | |||
Displays a code comment. | |||
== Usage == | == Usage == | ||
<nowiki>{{cc|code comment to display}}</nowiki> | |||
== Result == | |||
{{cc|test}} | |||
== Source == | == Source == | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
<span style="color: #00F; font-style: italic" | <span style="color: #00F; font-style: italic;">// {{{1}}}</span></syntaxhighlight> | ||
</syntaxhighlight> | |||
== See also == | == See also == | ||
* [[Template:codecomment]] | * [[Template:codecomment]] | ||
* [[Template:ccml]] | |||
[[Category:Templates|{{uc:cc}}]] | [[Category:Templates|{{uc:cc}}]] | ||
</noinclude> | </noinclude> |
Revision as of 15:38, 4 December 2020
Displays a one-lined code comment.
Usage
{{cc|code comment to display}}
Result
// test
Source
<span style="color: #00F; font-style: italic;">// {{{1}}}</span>