ic – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Lightening border)
m (Add description)
Line 1: Line 1:
<code<includeonly></includeonly> style="display:inline;margin:0px;padding:3px 3px 2px 4px;white-space:pre-wrap;border:1px dashed #adc9e2;border-radius:2px;">{{{1|No code added!}}}</code><noinclude>
<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
==Usage==
| descr = This template displays code with css display <tt>inline</tt> type.
This {{Inline code|<nowiki>{{Inline code|_foo {{=}} true;}}</nowiki>}} produces {{Inline code|_foo {{=}} true;}} which is handy.
| arg1 = code
 
| descr1 = the code to display. replace any <tt>{{=}}</tt> sign in it by <tt><nowiki>{{=}}</nowiki></tt>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
| example1 = <nowiki>{{Inline code}}</nowiki>
</noinclude>
| result1 = {{Inline code}}
| example2 = <nowiki>{{Inline code|Hello there!}}</nowiki>
| result2 = {{Inline code|Hello there!}}
}}</noinclude>

Revision as of 23:40, 11 January 2021

This template displays code with css display inline type.

This template is used on these pages.

Usage

{{ic}}


Examples
Code Result
{{Inline code}} -No code provided-
{{Inline code|Hello there!}} Hello there!