Template:Inline-code/doc

From MediaWiki.org
Jump to navigation Jump to search

Usage[edit]

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[edit]

An inline source code string.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Code1

The code to display.

Stringrequired
Languagelang

The programming language of the source code. List of valid values is at: [[Extension:SyntaxHighlight#Supported_languages]]

Default
php
Example
sql
Stringsuggested

See also[edit]