Difference between revisions of "Template:Inline-code"
Jump to navigation
Jump to search
Mediawiki>Samwilson |
Joelmartin (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 02:18, 1 December 2019
input
Usage
- Some text, then {{Inline-code | 1=wfDebug( $text, $dest = 'all' );}} and more text.
produces
- Some text, then
wfDebug( $text, $dest = 'all' );
and more text.
Note that for PHP, using the shorter {{phpi}}
might be easier.
TemplateData
An inline source code string.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Code | 1 | The code to display. | String | required |
Language | lang | The programming language of the source code. List of valid values is at: [[Extension:SyntaxHighlight#Supported_languages]]
| String | suggested |
See also
- {{code}}