Template:Inline-code: Difference between revisions

From wikiNonStop
m (Protected "Template:Inline-code": Highly visible page or template: 5636 transclusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
m (1 revision imported: initial Setup)
 
(No difference)

Latest revision as of 16:56, 15 August 2024

{{{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[Edit template data]

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