Changes

Jump to navigation Jump to search
no edit summary
== Usage ==
: Some text, then <nowiki>{{Inline-code | 1=wfDebug( $text, $dest = 'all' );}}</nowiki> and more text.

produces
:Some text, then {{Inline-code | 1=wfDebug( $text, $dest = 'all' );}} and more text.

Note that for PHP, using the shorter {{tlx|phpi}} might be easier.

== TemplateData ==
<templatedata>
{
"params": {
"1": {
"label": "Code",
"description": "The code to display.",
"type": "string",
"required": true
},
"lang": {
"label": "Language",
"description": "The programming language of the source code. List of valid values is at: [[Extension:SyntaxHighlight#Supported_languages]]",
"example": "sql",
"type": "string",
"default": "php",
"suggested": true
}
},
"description": "An inline source code string.",
"format": "inline"
}
</templatedata>

== See also ==
* {{tl|code}}

[[Category:Formatting templates]]
Anonymous user

Navigation menu