ic – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^ ]+)<\/tt>" to "{{hl|c= $1}}") |
Lou Montana (talk | contribs) m (Add historical) |
||
Line 16: | Line 16: | ||
|example5= <nowiki>{{ic|1= _fog = [[fog]];}}</nowiki> | |example5= <nowiki>{{ic|1= _fog = [[fog]];}}</nowiki> | ||
|result5= {{ic|1= _fog = [[fog]];}} | |result5= {{ic|1= _fog = [[fog]];}} | ||
|historical= y | |||
}}</noinclude> | }}</noinclude> |
Revision as of 21:02, 13 March 2023
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|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)
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;
|