Template:Code

来自Calamity Mod Wiki
跳到导航 跳到搜索

{{{1}}}

Template-info.svg Documentation The documentation below is transcluded from Template:Code/doc. (edit | history)

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}}, 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}}