Template:Code/doc

From Journey ShoutWiki
Jump to navigation Jump to search
DocIMG-info-Journey.png Documentation

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

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

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


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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.