Шаблон:Cc
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{{#if:message | |message}}{{#if: | |{{{param2}}}}}{{#if: | |{{{param3}}}}}{{#if: | |{{{param4}}}}}{{#if: | |{{{param5}}}}}}} {{#if:message|
- message{{#if:comment to display|: comment to display}}
}}{{#if:|
- {{{param2}}}{{#if:|: }}
}}{{#if:|
- {{{param3}}}{{#if:|: }}
}}{{#if:|
- {{{param4}}}{{#if:|: }}
}}{{#if:|
- {{{param5}}}{{#if:|: }}
}}{{#if:|
- {{{param6}}}{{#if:|: }}
}}{{#if:|
- {{{param7}}}{{#if:|: }}
}}{{#if:|
- {{{param8}}}{{#if:|: }}
}}{{#if:|
- {{{param9}}}{{#if:|: }}
}}{{#if:|
- {{{param10}}}{{#if:|: }}
}}
{{#if:{{cc}}{{cc|this code is wonderful}}{{cc|this
code
is
wonderful}}
|
Code | Result | |||
---|---|---|---|---|
{{cc}} | // {{#if:-no comment defined-{{#ifeq:ШАБЛОН|TEMPLATE | }}|-no comment defined-{{#ifeq:ШАБЛОН|TEMPLATE | }}}} | |
{{cc|this code is wonderful}} | this code is wonderful}} | |||
{{cc|this
code
is
wonderful}}
|
// {{#if:this
code is wonderful|this code is wonderful}} | |||
}}
{{#ifeq: ШАБЛОН:CC | TEMPLATE:DOC/TEMPLATE | | }}