Template:Code/doc

From Thorium Mod Wiki
Jump to navigation Jump to search

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.

background =

Optional background color. The default is #ddd.

Examples

  • Default background color <-- is produced from {{code|Default background color}}
  • Nice background color <-- is produced from {{code|background=Lavender|Nice background color}}