cc – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix template page format and add newline removal)
m (Fix line returns)
Line 1: Line 1:
<includeonly>{{Color|blue|''<nowiki>//</nowiki>&nbsp;{{#replace:{{Trim|{{{1|-no comment defined-}}}}}|<nowiki/>
<includeonly>{{Color|blue|''<nowiki>//</nowiki>&nbsp;{{Trim|{{{1|-no comment defined-}}}}}''}}</includeonly><noinclude>__NOTOC__
<nowiki/>|<nowiki/> <nowiki/>}}''}}</includeonly><noinclude>__NOTOC__
Displays a one-lined code comment.
Displays a one-lined code comment.



Revision as of 15:21, 14 December 2020

Displays a one-lined code comment.

Usage

{{cc|message}}

  • message: comment to display
Examples
Code Result
{{cc}} // -no comment defined-
{{cc|this code is wonderful}} // this code is wonderful
{{cc|this code is wonderful}} // this

code is wonderful

See also