Actions

Template

Template:Code

From Project Rebearth

Revision as of 11:52, 27 February 2026 by East6 (talk | contribs) (Created page with "<includeonly><templatestyles src="Code/styles.css" /><code class="rb-code">{{{1}}}</code></includeonly><noinclude> == Code == Renders inline text in a styled monospace box, used for config keys, flag names, variable names, and other technical identifiers. == Usage == <pre> {{Code|taxation}} {{Code|intensiveFarming}} {{Code|house_1}} </pre> == Parameters == {| class="wikitable" |- ! Parameter !! Required !! Description |- | <code>1</code> || Yes || The text to display a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.