ic – Template

From Bohemia Interactive Community
(Redirected from Template:Inline code)
This is a Historical Template kept in order to read old page revisions; it must not be used on up-to-date pages.

This template displays inline code. It also adds the page to the ic template usage error category on usage error.

This Historical Template must not be used on any current page; please verify this list is empty.

Usage

{{ic|code}}

  • code: 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)
Examples
Code Result
{{ic}} -No code provided-
{{ic|[[player]] [[setDamage]] 1;}} player setDamage 1;
{{ic|_fog {{=}} [[fog]];}} _fog = fog;
{{ic|code= _fog = [[fog]];}} _fog = fog;
{{ic|1= _fog = [[fog]];}} _fog = fog;