Layout tags
The tags that arrange other tags. Each section lists the attributes it adds to the base attributes.
div
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| scrollbar-gap | Optional | none | Used for the scrollable peek window when a fixed height is applied and content overflows. |
| reactive | Optional | none | Comma-separated variable names this zone watches. Needs an id. See Reactive zones. |
When a div has a fixed height (i.e. its height is not set to "content") and its content exceeds that height, a scrollable peek window is created for all rows after the first one.
Reactive zones
A div or body with a nonempty id and reactive attribute is a reactive zone: it rebuilds its children when a watched variable changes. See Reactive zones.
main
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| scrollbar-gap | Optional | none | As in div. |
| height | Auto-set | "auto" | Forces auto height. |
| width | Auto-set | "auto" | Forces auto width. |
| id | Auto-set | "main" | Sets the element’s identifier to "main". |
| padding | Auto-set | 5 | Default padding value is 5. |
There must be exactly one main per page. A host that scrolls to a location, such as the wiki URL scheme, uses main as the scroll reference. **Without a main, location scrolling and anchor href do not work.
lazy-div
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| scrollbar-gap | Optional | none | As in div, used for scrollable peek window. |
| preload | Optional | 0 | Determines the number of child elements to preload; additional children are queued. |
lazy-div is useful if we have a lot of similar content (like a grid of items, or monster cards) and we don't want to freeze the client by loading all in one way.
inline
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| scrollbar-gap | Optional | none | Same as in div. |
| display | Auto-set | "flex" | Automatically set to "flex" to enable horizontal layout. |
Shortcut for flex <div>.
footer
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| width | Auto-set | "auto" | Sets width to auto. |
| vertical-align | Auto-set | "bottom" | Aligns the footer at the bottom. |
Constraints:
- Child Constraint: Must be a leaf element (no children allowed).
Code Example with scrollbar
<footer />
table
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| scrollbar-gap | Optional | none | Provides extra gap for the peek window when height is fixed. |
If the table has a fixed height and its content overflows, all rows after the first one are inserted in a scrollable peekwindow.
Constraints:
- Allowed Children: Only
<tr>elements.
Code Example without scrollbar
<table align="center" width="100%">
<tr>
<th width="20%">
-
</th>
<th width="60%">
-
</th>
<th width="20%">
-
</th>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
</table>
<table align="center" width="100%">
<tr>
<th width="100%">
</th>
</tr>
<tr>
<td width="25%">
</td>
<td width="25%">
</td>
<td width="25%">
</td>
<td width="25%">
</td>
</tr>
</table>
Code Example with scrollbar
<table align="center" width="100%" height="150">
<tr>
<th width="20%">
-
</th>
<th width="60%">
-
</th>
<th width="20%">
-
</th>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
<tr>
<td width="20%">
</td>
<td width="20%">
</td>
<td width="40%">
<txt align="center" color="ffdac0a3">
</txt>
</td>
<td width="20%">
</td>
</tr>
</table>
<table align="center" width="100%">
<tr>
<th width="100%">
</th>
</tr>
<tr>
<td width="25%">
</td>
<td width="25%">
</td>
<td width="25%">
</td>
<td width="25%">
</td>
</tr>
</table>
tr
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
Constraints:
- Parent Constraint: Must be a direct child of a
<table>. - Allowed Children: Only
<td>and<th>elements.
th
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
Parent Constraint: Must be placed inside a <tr>.
td
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
Parent Constraint: Must be placed inside a <tr>.
spacer
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| height | Optional | 10 | Default height is 10 if not provided. |
| width | Auto-set | "auto" | Width is automatically set to auto. |
Should not contain any child elements.
divider
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| pattern | Optional | none | Path for the divider pattern; if not provided, a default pattern is used. |
Should not have any child elements.
Code Example
<divider />
accordion
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| state | Optional | none | Identifier for accordion state. |
| text | Optional | none | Header text. |
| icon | Optional | none | Icon path if applicable. |
| Base Attributes | Optional | none | Inherits all common base attributes. |
Notes:
The accordion element manages a header and toggle state for showing/hiding content. Its header reserves space (with injected padding) to accommodate an icon and text.
Code Example
<accordion width="auto" text="bla" icon="d:/ymir work/ui/game/windows/money_icon.sub">
Hidden foo
</accordion>
carousel
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
| arrows | Optional | "under" | Arrow placement; valid values: "over" (overlaid on content), "under" (below content). |
| page-var | Optional | none | Variable name to sync current page index with the loader context. Enables external page control. |
A container that shows one <carousel-page> at a time with left/right arrow navigation. The carousel height is determined by the tallest page, preventing layout jumps when switching pages.
Arrow placement:
arrows="under"(default): Arrows appear centered below the content, adding ~25px of extra height.arrows="over": Arrows overlay the content on left/right edges, vertically centered. No extra height.
Arrows are automatically hidden when there is only one page. Navigation wraps around (last page → first page and vice versa).
Allowed Children: Only <carousel-page> elements.
Code Example
<carousel arrows="under" width="auto">
<carousel-page>
<h2>Page 1</h2>
<txt>First page content</txt>
<slot-item vnum="19" />
</carousel-page>
<carousel-page>
<h2>Page 2</h2>
<txt>Second page content</txt>
<slot-item vnum="20" />
</carousel-page>
<carousel-page>
<h2>Page 3</h2>
<txt>Third page content</txt>
</carousel-page>
</carousel>
Code Example with page-var
<carousel arrows="over" page-var="current_tab" width="auto">
<carousel-page>
<txt>Tab content A</txt>
</carousel-page>
<carousel-page>
<txt>Tab content B</txt>
</carousel-page>
</carousel>
The page-var attribute syncs the 0-based page index with a loader variable. This allows:
- Reading the initial page from the variable on load
- Updating the variable when the user navigates via arrows
- External components to control which page is shown
carousel-page
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | N/A | Inherits all common base attributes. |
A page within a <carousel>. Behaves as a standard div container, so any content that can be placed inside a div can be placed inside a carousel-page.
Parent Constraint: Must be placed inside a <carousel>.
board
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | none | Inherits all common base attributes. |
| padding | Auto-set | 5 | Default padding is set to 5. |
Minimum size is 64x64.
Code Example
<board width="100" height="100"></board>
thin-board
| Attribute | Requirement | Default | Constraints/Notes |
|---|---|---|---|
| Base Attributes | Optional | none | Inherits all common base attributes. |
| padding | Auto-set | 7 | Default padding is set to 7. |
Minimum size is 32x32.
Code Example
<thin-board width="100" height="100"></thin-board>