SigServer:SignatureXML: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(→‎Layout: Noted importance of drawing order)
mNo edit summary
Line 4: Line 4:


= Root Element =
= Root Element =
Each signature is required to have a root element, <signature> in this case. The root tag accepts the attribute quality. It set's the quality when output as JPEG is selected. It may be set to anything between <tt>0 - 100</tt>, default <tt>90</tt>.
Each signature is required to have a root element, <tt><signature></tt> in this case. The root tag accepts the attribute quality. It set's the quality when output as JPEG is selected. It may be set to anything between <tt>0 - 100</tt>, default <tt>90</tt>.


'''Example'''
'''Example'''
Line 15: Line 15:
Inside this element you may override an element's default value.
Inside this element you may override an element's default value.


To override default element values the <defaults> tag is used. Inside the <defaults> tag elements are defined as usual.
To override default element values the <tt><defaults></tt> tag is used. Inside the <tt><defaults></tt> tag elements are defined as usual.


'''Example'''
'''Example'''
Line 31: Line 31:


== Layout ==
== Layout ==
All text, shapes and images are controlled by sub elements to <code><layout></code>.
All text, shapes and images are controlled by sub elements to <tt><layout></tt>.


Please note that all items are added sequentially in the order listed in your signature's XML code. For example, if you draw some text first in your code, and then draw an opaque rectangle in that same location later on in your code, the rectangle will be drawn over top of that text, so only the rectangle will be visible. Make sure you draw your bottommost layers first to avoid that kind of problem.
Please note that all items are added sequentially in the order listed in your signature's XML code. For example, if you draw some text first in your code, and then draw an opaque rectangle in that same location later on in your code, the rectangle will be drawn over top of that text, so only the rectangle will be visible. Make sure you draw your bottommost layers first to avoid that kind of problem.


=== Image ===
=== Image ===
The <code><image></code> tag allows the user to include an image, chosen from the collection in the library section.
The <tt><image></tt> tag allows the user to include an image, chosen from the collection in the library section.


{| class="wikitable"
{| class="wikitable"
Line 58: Line 58:


=== Shape ===
=== Shape ===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 83: Line 82:


=== Text ===
=== Text ===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 110: Line 108:


==== Line ====
==== Line ====
{| class="wikitable"
{| class="wikitable"
|-
|-
staff
2,096

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.