Skip to main content

Text and links

The tags that carry text, and the links that open other pages or game windows.

h1​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
Code Example
<h1>foo</h1>

image


h2​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
patternOptional"d:/ymir work/ui/pattern/h1" (or overridden)Pattern for header row; can be customized.
Code Example
<h2>foo</h2>

image


h3​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
patternOptional"d:/ymir work/ui/quest_re/quest_list_line_small"Pattern for header; can be overridden.
pattern_spaceOptional60 (if not provided)Reserved space on the right for the pattern.
scrollbar-gapOptionalnoneUsed when a scrollable peek window is required.
Code Example
<h3>foo</h3>

image


Plain Text​

Text not enclosed in any tag counts as text.


txt​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
colorOptionalnoneText color; overrides the default font color if specified.
fontOptionalnoneFont specification (e.g., "Tahoma:13" or "Tahoma:15b").
CAUTION

Allowed Children: Only the inline tags: c, hitem, hmob, hraid, hdungeon, hquest, hmap, hhmap, hyperlink, and br.

color can be an hex color code, which can be 8 characters for ARGB color (e.g., FF0000 or FFFF0000) or one of Registered color.


c​

AttributeRequirementDefaultConstraints/Notes
colorRequirednoneSpecifies the color code for text styling.
CAUTION

Should not contain any child elements.

color can be an hex color code, which can be 8 characters for ARGB color (e.g., FF0000 or FFFF0000) or one of Registered color.

Registered Color table​

NameARGB
black(0, 0, 0, 255)
white(255, 255, 255, 255)
red(255, 0, 0, 255)
green(0, 128, 0, 255)
blue(0, 0, 255, 255)
yellow(255, 255, 0, 255)
cyan(0, 255, 255, 255)
magenta(255, 0, 255, 255)
silver(192, 192, 192, 255)
gray(128, 128, 128, 255)
maroon(128, 0, 0, 255)
olive(128, 128, 0, 255)
purple(128, 0, 128, 255)
teal(0, 128, 128, 255)
navy(0, 0, 128, 255)
lime(0, 255, 0, 255)
aqua(0, 255, 255, 255)
fuchsia(255, 0, 255, 255)
orange(255, 165, 0, 255)
brown(165, 42, 42, 255)
pink(255, 192, 203, 255)
gold(255, 215, 0, 255)
indigo(75, 0, 130, 255)
violet(238, 130, 238, 255)
chocolate(210, 105, 30, 255)
coral(255, 127, 80, 255)
crimson(220, 20, 60, 255)
darkblue(0, 0, 139, 255)
darkcyan(0, 139, 139, 255)
darkgray(169, 169, 169, 255)
darkgreen(0, 100, 0, 255)
darkmagenta(139, 0, 139, 255)
darkorange(255, 140, 0, 255)
darkred(139, 0, 0, 255)
deepskyblue(0, 191, 255, 255)
forestgreen(34, 139, 34, 255)
lightblue(173, 216, 230, 255)
lightgray(211, 211, 211, 255)
lightgreen(144, 238, 144, 255)
lightpink(255, 182, 193, 255)
lightsalmon(255, 160, 122, 255)
lightyellow(255, 255, 224, 255)
wikidefault(218, 192, 163, 255)
wikititle(255, 199, 0, 255)

br​

A self-closing tag that inserts a line break.

CAUTION

Consecutive lines of Plain Texts, Hyperlinks, <c> Texts and <txt> are concatenated in the same line.
To go newline you have to use <br/>


hitem​

AttributeRequirementDefaultConstraints/Notes
vnumRequirednoneMust provide an item vnum.
CAUTION

Should not contain any child elements.


hmob​

AttributeRequirementDefaultConstraints/Notes
vnumRequirednoneMust provide a mob vnum.
CAUTION

Should not contain any child elements.


hraid​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneMust provide a raid identifier.
CAUTION

Should not contain any child elements.


hdungeon​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneMust provide a dungeon identifier.
CAUTION

Should not contain any child elements.


hquest​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneMust provide a quest identifier.
CAUTION

Should not contain any child elements.


hmap​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneMust provide a map identifier.
CAUTION

Should not contain any child elements.


hhmap​

AttributeRequirementDefaultConstraints/Notes
idRequirednoneMust provide a hunt map identifier. The link opens the hunt map page.
CAUTION

Should not contain any child elements.


AttributeRequirementDefaultConstraints/Notes
urlRequirednoneURL to navigate to when clicked.
CAUTION

Should not contain any child elements.

bullet-list​

AttributeRequirementDefaultConstraints/Notes
Base AttributesOptionalnoneInherits all common base attributes.
bullet-pathOptional"d:/ymir work/ui/wiki/arrow_2.tga"Path to the bullet image; default provided if not specified.
Code Example
<bullet-list>
foo
</bullet-list>
<bullet-list>
bar
</bullet-list>

image

href.button​

AttributeRequirementDefaultConstraints/Notes
typeRequired buttonnoneNavigation button type.
hrefRequirednoneURL or anchor target (if it starts with "#", it is treated as an anchor).
pathRequirednoneImage path template for the button (with state placeholders).
tooltip-textOptionalnoneTooltip text for the button.
Base AttributesOptionalnoneInherits all common base attributes.

path is expected to be a parametrized path to the images used for normal, over and clicked state.
UCHTML will then substitute normal hover and selected to the parameter of the string.

Example:

path="d:/ymir work/ui/example/group_b_{}.tga"

become

d:/ymir work/ui/example/group_b_normal.tga
d:/ymir work/ui/example/group_b_hover.tga
d:/ymir work/ui/example/group_b_selected.tga

And each of the images need to exist in order to render the button.

Code Example
<href type="button" href="" path="d:/ymir work/ui/example/group_b_{}.tga"/>           

image


href.text​

AttributeRequirementDefaultConstraints/Notes
typeRequired textnoneNavigation type.
hrefRequirednoneURL or anchor target.
textRequirednoneDisplay text for the link.
widthOptionalnoneWidth specification.
Base AttributesOptionalnoneInherits all common base attributes.
Code Example
<href type="text" href="" text="Foo"/>

image