Template:Code/doc

From DynamicPageList3 Manual
Revision as of 01:11, 29 March 2022 by imported>FrozenPlum (2 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.)

Template:Doc/start To be used if you want to list some short code, which you want to stand out. Similar to using <code></code> tags, except that it has a grey background.

Usage

Use {{code|Code to display}}, which results in Code to display.

Unnamed parameter 1

The code to display.

class=

CSS class(es).

id=

Id attribute.

lang=

The language of code.

Examples

{{code|lang=css|border:1px solid #fff}} => results in border:1px solid #fff

Note: Template based off wikipedia:Template:Code and mw:Template:Code


tr:Şablon:Kod/belge

Template:Doc/end