Actions

Template

Template:Code

From Project Rebearth

Code

[edit]

Renders inline text in a styled monospace box, used for config keys, flag names, variable names, and other technical identifiers.

Usage

[edit]
{{Code|taxation}}
{{Code|intensiveFarming}}
{{Code|house_1}}

Parameters

[edit]
Parameter Required Description
1 Yes The text to display as inline code.

Examples

[edit]
Wikitext Description
{{Code|taxation}} Config flag name
{{Code|house_1}} Building config key
{{Code|vegan: true}} Flag value
{{Code|allProduction}} Effect type identifier

Notes

[edit]
  • Uses the HTML <code> element with custom styling.
  • Designed for short inline snippets — not for multi-line code blocks.
  • Colors match the wiki's warm brown palette: dark brown text on a light cream/gold background.
  • Monospace font stack prioritizes modern coding fonts (Cascadia Code, Fira Code, JetBrains Mono) with Consolas as fallback.