set_facts
Create, update, or remove at-a-glance key-value facts in a LegendKeeper page's infobox or sidebar, auto-creating the group if absent.
Instructions
Set at-a-glance facts (e.g. Race, Age, Ruler, Population) as key-value rows in the page's infobox or the resource's sidebar. Creates the infobox / property group when it does not exist yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | Yes | Fact name -> value. Values accept inline Markdown and [[Name]] links. Use null to remove a fact. Existing facts with the same name (case-insensitive) are updated in place. | |
| title | No | Title of the key-value group (default: the first one, or 'Facts' when creating). | |
| target | No | infobox: the box at the top of the page (created if missing). sidebar: properties. | infobox |
| project | No | Configured project (world) name. Omit to use the default project; see list_projects. | |
| document | No | Document id or name within the resource. Omit to pick the resource's main document. | |
| resource | Yes | Resource id, or its exact name/alias (case-insensitive). |