Шаблон:Ic
This template displays inline code. It also adds the page to the ic template usage error category on usage error.
This template is used on these pages.
Usage
{{Ic{{#if:code | |code}}{{#if: | |{{{param2}}}}}{{#if: | |{{{param3}}}}}{{#if: | |{{{param4}}}}}{{#if: | |{{{param5}}}}}}} {{#if:code|
- code{{#if:the code to display.
If it contains an equal sign =:- replace it with {{=}}
- use code= (see example 4)
- use the MediaWiki trick 1= (see example 5)|: the code to display.
If it contains an equal sign =: - replace it with {{=}}
- use code= (see example 4)
- use the MediaWiki trick 1= (see example 5)}}
}}{{#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:{{ic}}{{ic|[[player]] [[setDamage]] 1;}}{{ic|_fog {{=}} [[fog]];}}{{ic|code= _fog = [[fog]];}}{{ic|1= _fog = [[fog]];}} |
Code | Result | ||
---|---|---|---|
{{ic}} | -No code provided-{{#ifeq:ШАБЛОН|TEMPLATE |
}} | |
{{ic|[[player]] [[setDamage]] 1;}} | player setDamage 1;
| ||
{{ic|_fog {{=}} [[fog]];}} | _fog = fog;
| ||
{{ic|code= _fog = [[fog]];}} | _fog = fog;
| ||
{{ic|1= _fog = [[fog]];}} | _fog = fog;
| ||
}}
{{#ifeq: ШАБЛОН:IC | TEMPLATE:DOC/TEMPLATE | | }}