Skip to main content

Layout tags

The tags that arrange other tags. Each section lists the attributes it adds to the base attributes.

div​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
scrollbar-gapOptionalnoneUsed for the scrollable peek window when a fixed height is applied and content overflows.
reactiveOptionalnoneComma-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​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
scrollbar-gapOptionalnoneAs in div.
heightAuto-set"auto"Forces auto height.
widthAuto-set"auto"Forces auto width.
idAuto-set"main"Sets the element’s identifier to "main".
paddingAuto-set5Default 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​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
scrollbar-gapOptionalnoneAs in div, used for scrollable peek window.
preloadOptional0Determines 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​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
scrollbar-gapOptionalnoneSame as in div.
displayAuto-set"flex"Automatically set to "flex" to enable horizontal layout.

Shortcut for flex <div>.


AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
widthAuto-set"auto"Sets width to auto.
vertical-alignAuto-set"bottom"Aligns the footer at the bottom.

Constraints:

  • Child Constraint: Must be a leaf element (no children allowed).
Code Example with scrollbar
<footer />

image


table​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
scrollbar-gapOptionalnoneProvides 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>

image

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>

image


tr​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.

Constraints:

  • Parent Constraint: Must be a direct child of a <table>.
  • Allowed Children: Only <td> and <th> elements.

th​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
CAUTION

Parent Constraint: Must be placed inside a <tr>.


td​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
CAUTION

Parent Constraint: Must be placed inside a <tr>.

spacer​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
heightOptional10Default height is 10 if not provided.
widthAuto-set"auto"Width is automatically set to auto.
CAUTION

Should not contain any child elements.


divider​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
patternOptionalnonePath for the divider pattern; if not provided, a default pattern is used.
CAUTION

Should not have any child elements.

Code Example
<divider />

image


accordion​

AttributeRequirementDefaultConstraints/Notes
stateOptionalnoneIdentifier for accordion state.
textOptionalnoneHeader text.
iconOptionalnoneIcon path if applicable.
Base AttributesOptionalnoneInherits 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>

image image


AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits all common base attributes.
arrowsOptional"under"Arrow placement; valid values: "over" (overlaid on content), "under" (below content).
page-varOptionalnoneVariable 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).

CAUTION

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

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalN/AInherits 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.

CAUTION

Parent Constraint: Must be placed inside a <carousel>.


board​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
paddingAuto-set5Default padding is set to 5.
CAUTION

Minimum size is 64x64.

Code Example
<board width="100" height="100"></board>

image


thin-board​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
paddingAuto-set7Default padding is set to 7.
CAUTION

Minimum size is 32x32.

Code Example
<thin-board width="100" height="100"></thin-board>

image