Skip to main content
Version: 26.1.2 (Latest)

Text Page

Text Page

Page type: modonomicon:text

The simplest page type, displays markdown text, optionally with a title.

Attributes

See Common Attributes for the shared title attribute.

use_markdown_title (Boolean, optional)

Defaults to false. If true the default title style will not be applied and instead markdown in the title will be parsed.

show_title_separator (Boolean, optional)

Defaults to true. If true a separator will be rendered below the title. The separator texture and UV coordinates can be customized in theme.json.

text (DescriptionId or Component JSON, optional)

The page text. Can be styled using markdown.

Usage Examples

<entry>.json:

{
...
"pages": [
{
"type": "modonomicon:text",
"title": "modonomicon.testbook.test_category.test_entry.page0.title",
"use_markdown_title": true,
"show_title_separator": true,
"text": "modonomicon.testbook.test_category.test_entry.page0.text"
}
]
}

/lang/*.json:

{
"modonomicon.test.sections.test_category.test_entry.page0.text": "This is a **test** text.\nWe have a newline here.\n- List item\n- List item 2\n- List item 3\n\nAnd this is a super long line where we hope it will be automatically wrapped into a new line otherwise that is super-bad.\n",
"modonomicon.test.sections.test_category.test_entry.page0.title": "**Bold**"
}