myChars.net uses JavaScript. Please enable it to have access to all features.
myChars.net

Template Editor How-To

On this page you find a detailed documentation about the template editor.
If you find an error or have any question feel free to ask a moderator or administrator.

Root-Element


All templates have one root element to start with.
This element is called <signature> and contains two child elements called <defaults> and <layout>
<signature>
    <defaults>
        ...
    </defaults>
    
    <layout>
        ...
    </layout>
</signature>

Defaults-Element


In this element you can override the default settings given by the editor to your own needs.
Elements are defined as usual (see elements list below).

<signature>
    <defaults>
        <text color="#FF0000" size="20" />
        <shape type="rectangle" color="#0000ff" />
    </defaults>
    
    <layout />
</signature>
In this example we set the texts' default color to red and its size to 20.
Additionally we set the color blue for all shapes and its type to rectangle.

Layout-Element


Mostly your whole signature design is controlled by this element.
Elements will be parsed sequentially in the order listed in your template's xml code.
So please be sure to begin with the bottommost layer. E.g. if you want a text on a red shape, draw the shape first and than add the text.

Overview about all available tags and their attributes:

Tag: image

display Set if the object should be displayed

Values: True or false
Default: true

method Method how to change objects size of a different size is given as the objects original one.

Values: crop, resize or cropresize
Default: cropresize

position Sets the position of the included object on the signature. X and Y are integers

Values: XxY
Default: 0x0

size Sets the size of the object.

Values: widthxheight
Default: Object's own size

src Sets which object should be included in your signature.

Values: Choose any from the object-list available on the editor overview
Default: none

Tag: line

alpha Sets the transparency

Values: 0-100
Default: 0

angle Sets the line's angle. Must be an integer.

Values: 0-359
Default: 0

border-color Defines the line's text bordercolor.

Values: #HEX or R,G,B
Default: #000000

border-thickness Sets the thickness of this lines's textborder. Needs to be an integer.

Values: 0-10
Default: 0

display Sets if the line should be displayed

Values: True or false
Default: true

font-color Sets the line's color

Values: #HEX or R,G,B
Default: #000000

font-size Sets the fontsize on this line

Values: Integer; any fontsize supported by the selected font.
Default: 10

fontid Sets the fontid which should be used on that line

Values: Any fontID listed on the fontoverview
Default: 35 (Verdana)

line-spacing Sets the spacing between each line

Values: Any number
Default: 1.5

text-align Aligns the text by the given value.

Values: left, right, center
Default: left

vertical-align Aligns the text vertically by the given value. Only effective if angle is 90 or 270.

Values: top, middle, bottom, baseline
Default: baseline

Tag: shape

alpha Sets the alpha-value (transparency) for this shape

Values: 0-100
Default: 100

arc Sets the pie's/arc's start and end angle in degrees (only positive angles and they must be integers)

Values: start-end or end; 0-720
Default: 0-90

color Sets the shape's color

Values: #HEX or R,G,B
Default: #000000

dashed Works only with type=line. Defines if it should be a dashed line or not

Values: True or false
Default: false

display Defines if the shape should be displayed or not

Values: True or false
Default: true

hollow Sets whether the shape should be hollow or not.

Values: True or false
Default: false

position Position of the shape. X and Y need to be integers.

Values: XxY
Default: 0x0

size Defines the size of the shape to draw.

Values: WidthxHeight
Default: 10x10

thickness Sets the thickness of this shape's border. Needs to be an integer.

Values: 1-10
Default: 1

type Defines the type of the shape

Values: rectangle, ellipse, arc, line, dashedline
Default: none

Tag: text

alpha Sets text's tranparency

Values: 0-100
Default: 0

angle Sets text's angle

Values: 0-359
Default: 0

border-color Defines the text's bordercolor.

Values: #HEX or R,G,B
Default: #000000

border-thickness Sets the thickness of this text's border. Needs to be an integer.

Values: 0-10
Default: 0

display Sets if the text should be displayed

Values: True or false
Default: true

font-color Defines the text's color.

Values: #HEX or R,G,B
Default: #000000

font-size Sets the text's fontsize

Values: any positive integer supported by the selected font
Default: 10

fontid Select which font should be used

Values: Any fontID listed in the fontoverview.
Default: 35 (Verdana)

line-spacing Sets the spacing between each line

Values: Any number
Default: 1.5

position Sets the position of the text's first letter. X and Y must be integers.

Values: XxY
Default: 0x0

text-align Aligns the text by the given value.

Values: left, right, center
Default: left

vertical-align Aligns the text vertically by the given value. Only effective if angle is 90 or 270.

Values: top, middle, bottom, baseline
Default: baseline