-
March 14th, 2011, 00:46 #1Templar
- Join Date
- Sep 2010
- Location
- Metro Atlanta Area
- Posts
- 139
What HTML Attributes are available in FG2?
It would be very nice to know exactly what html attributes are rendered by FG2. Right now it seems like thinly way to find out is to add one attribute at a time and see what happens. For example the Table tag does not seem to render the "Width" attribute.
-
March 14th, 2011, 00:58 #2
Not sure why its not in the online documentation however the HTML support for formattedtext fields is documented over at the FGWiki
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
March 14th, 2011, 01:24 #3Templar
- Join Date
- Sep 2010
- Location
- Metro Atlanta Area
- Posts
- 139
According to the Wiki, colspan is the only attribute supported. Font Attributes Size, Family & Color are also supported. Width, bgcolor, border do not seem to be supported though.
What about other attributes?
-
March 14th, 2011, 01:33 #4
Font Attributes Size, Family & Color are news to me!!! I'll have to give that a try. As far as I know the FGWiki is the only known documented source at the moment, so really can't say.
Perhaps moon_wizard could review the code for the formattedtext field type and let us know what other HTML attributes are supported.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
March 14th, 2011, 01:58 #5SmiteWorks
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 23,273
The formattedtextcontrol and formattedtextfield objects do not so much support HTML, as they use similar tags to document similar effects.
Here is the complete list of tags used by the formattedtext objects:
<p> = standard text
<h> = heading text
<frame> = chat text
<frameid> = speaker for chat text
<list> = standard list
<li> = list item text (with attribute indent)
<linklist> = list of shortcuts
<link> = shortcut list item text (with class and recordname subtags)
<table> = table
<tr> = table row
<td> = table cell (with attribute colspan)
<b> = bold
<i> = italic
<u> = underline
Cheers,
JPG
-
March 14th, 2011, 02:42 #6Templar
- Join Date
- Sep 2010
- Location
- Metro Atlanta Area
- Posts
- 139
Thanks JPG, but I wanted to know about attributes not the tags that they are embedded in.
As to the tags tbody seems to be supported as well.
Can you tell me what attributes are supported?
-
May 7th, 2011, 22:49 #7
does tr not have attribute decoration underline too?

Previously: MurghBpurn
-
May 7th, 2011, 23:19 #8SmiteWorks
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 23,273
Looking at the code, the only attributes supported are the two I noted in the tag summary above. (li -> indent, td -> colspan)
Regards,
JPG
-
May 7th, 2011, 23:21 #9
Must be something thats added in specific rulesets (BRP at least)

Previously: MurghBpurn
-
May 9th, 2011, 16:17 #10
Nope, tr has a decoration attribute in the base product, it isn't a BRP addition. As per DrZ, this is documented in the FGWiki, but I wasn't aware of the indent attribute for the li tag.
Stuart
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote

Bookmarks