Template:Inline-code/doc: Difference between revisions
Appearance
m Reverted edits by Cidlisious333 (talk) to last version by Clump |
m 1 revision imported: Initial setup |
||
(No difference)
|
Latest revision as of 18:40, 23 December 2024
This is a documentation subpage for Template:Inline-code. It contains usage information, categories and other content that is not part of the original Template page. |
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
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Inline-code
An inline source code string.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Code | 1 code | The code to display. | String | required |
Language | 2 lang | The programming language of the source code. List of valid values is at: Extension:SyntaxHighlight#Supported_languages
| String | suggested |
Class | class | no description | String | optional |
ID | id | no description | String | optional |
CSS Style | style | no description | String | optional |
See also
- {{Code }}