Skip to main content

Text Page

Text Page

Page type: modonomicon:text

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

Attributes

title (DescriptionId or Component JSON, optional)

The page title. By default this will not parse markdown and use the default title color as defined in the book.json.
See Book.json for details.

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.

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**"
}