WoW:UIOBJECT SimpleHTML: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widget}})
Line 1: Line 1:
{{widget}}
{{widget}}
{{Stub/API}}
{{Stub/API}}
Some day this page can be filled in properly, until then, here's some notes on the markup supported:


It's very limited, there's 2 modes, HTML mode and plain mode. in HTML mode you have.
==Supported HTML Mode Markup==
If arguments are in square brackets, this means that they are optional.
===Basic elements===
* <tt>&lt;HTML&gt;</tt>
* <tt>&lt;BODY&gt;</tt>
Where the HTML element must be provided and must contain the BODY element.


:&lt;HTML>&lt;BODY>...&lt;/BODY>&lt;/HTML>
The BODY element can contain block elements.
:&lt;P align="...">...&lt;/P>
:&lt;BR/>
:&lt;H1 align="...">...&lt;/H1>
:&lt;H2 align="...">...&lt;/H2>
:&lt;H3 align="...">...&lt;/H3>
:&lt;IMG SRC="Interface\\Pictures\\Linken_sepia_256px"/>
:&lt;A href="linkid">...&lt;/A>


I belive the IMG tag can take width and height, also.
===Block elements===
* <tt>&lt;H1 [align="left|center|right"]&gt;</tt>
* <tt>&lt;H2 [align="left|center|right"]&gt;</tt>
* <tt>&lt;H3 [align="left|center|right"]&gt;</tt>
* <tt>&lt;P  [align="left|center|right"]&gt;</tt>
Block elements can contain other block elements, inline elements and plain text.


In plain mode you have
===Inline elements===
* <tt>&lt;A href="linkId"&gt;</tt>
* <tt>&lt;IMG src="imageSource" [width="x" height="y"]/&gt;</tt>
* <tt>&lt;BR/&gt;</tt>
Inline elements can contain other inline elements and plain text.


:|cRRGGBBAA - Set color
===Example===
:|r - Reset color
  &lt;HTML>&lt;BODY>
:|Hlinkid|hlinktext|h - for Hyperlinks
  &lt;H1>Foo&lt;/H1>
:Possibly |n as newline in some cases.
  &lt;P>
    Bar&lt;BR/>
    with stripes.
  &lt;/P>
&lt;/BODY>&lt;/HTML>
 
==Supported Plain Mode Escape Sequences==
 
See [[UI Escape Sequences]]
 
==Also See==
* [[UI Escape Sequences]]

Revision as of 21:51, 16 July 2006

Widget API < SimpleHTML

Supported HTML Mode Markup

If arguments are in square brackets, this means that they are optional.

Basic elements

  • <HTML>
  • <BODY>

Where the HTML element must be provided and must contain the BODY element.

The BODY element can contain block elements.

Block elements

  • <H1 [align="left|center|right"]>
  • <H2 [align="left|center|right"]>
  • <H3 [align="left|center|right"]>
  • <P [align="left|center|right"]>

Block elements can contain other block elements, inline elements and plain text.

Inline elements

  • <A href="linkId">
  • <IMG src="imageSource" [width="x" height="y"]/>
  • <BR/>

Inline elements can contain other inline elements and plain text.

Example

<HTML><BODY>
  <H1>Foo</H1>
  <P>
    Bar<BR/>
    with stripes.
  </P>
</BODY></HTML>

Supported Plain Mode Escape Sequences

See UI Escape Sequences

Also See