Template:Code/doc

From Portals of Phereon Wiki
Revision as of 12:36, 1 December 2019 by Olaroll (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Code.
It contains usage information, categories and other content that is not part of the original template page.

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