ic – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (R3vo moved page Template:Inline code to Template:ic without leaving a redirect: naming standard)
(updated with new name, tweaked the examples)
Line 3: Line 3:
| param1 = code
| param1 = code
| descr1 = the code to display. replace any <tt>{{=}}</tt> sign in it by <tt><nowiki>{{=}}</nowiki></tt>
| descr1 = the code to display. replace any <tt>{{=}}</tt> sign in it by <tt><nowiki>{{=}}</nowiki></tt>
| example1 = <nowiki>{{Inline code}}</nowiki>
| example1 = <nowiki>{{ic}}</nowiki>
| result1 = {{Inline code}}
| result1 = {{ic}}
| example2 = <nowiki>{{Inline code|Hello there!}}</nowiki>
| example2 = <nowiki>{{ic|[[player]] [[setDamage]] 1;}}</nowiki>
| result2 = {{Inline code|Hello there!}}
| result2 = {{ic|[[player]] [[setDamage]] 1;}}
| example3 = <nowiki>{{ic|_fog {{=}} [[fog]];}}</nowiki>
| result3 = {{ic|_fog {{=}} [[fog]];}}
}}</noinclude>
}}</noinclude>

Revision as of 18:07, 27 February 2021

This template displays code with css display inline type.

This template is used on these pages.

Usage

{{ic|code}}

  • code: the code to display. replace any = sign in it by {{=}}
Examples
Code Result
{{ic}} -No code provided-
{{ic|[[player]] [[setDamage]] 1;}} player setDamage 1;
{{ic|_fog {{=}} [[fog]];}} _fog = fog;