Jump to content
šŸ—³ļøšŸ–„ļø The Wikimedia Foundation December 2024 Developer Satisfaction Survey closes on the 2025-01-03. This survey helps us measure developer satisfaction, and prioritize work on tools and platforms for our technical contributors.

Template:Inline-code

From wikiNonStop
Revision as of 16:23, 25 September 2024 by en>ABreault (WMF) (Don't emit empty ids. Matches Template:Code)
(diff) ā† Older revision | Latest revision (diff) | Newer revision ā†’ (diff)

{{{1}}}

Template documentation

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Code1 code

The code to display.

Stringrequired
Language2 lang

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

Default
php
Example
sql
Stringsuggested
Classclass

no description

Stringoptional
IDid

no description

Stringoptional
CSS Stylestyle

no description

Stringoptional

See also