ic – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated with new name, tweaked the examples)
m (Add category)
Line 1: Line 1:
<includeonly><code<includeonly/> style="border-color: #adc9e2; display: inline; margin: 0; padding: 0.33em; white-space: pre-wrap">{{{1|-No code provided-}}}</code<includeonly/>></includeonly><noinclude>{{Doc/Template
<includeonly><code<includeonly/> style="border-color: #adc9e2; display: inline; margin: 0; padding: 0.33em; white-space: pre-wrap">{{{1|-No code provided-{{TemplateCase||[[Category:ic template usage error]]}}}}}</code<includeonly/>></includeonly><noinclude>{{Doc/Template
| descr = This template displays code with css display <tt>inline</tt> type.
| descr = This template displays code with css display <tt>inline</tt> type. Adds the page to the [[:Category:ic template usage error|ic template usage error]] category on usage error.
| 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>

Revision as of 16:04, 19 June 2021

This template displays code with css display inline type. Adds the page to the ic template usage error category on usage error.

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;