Refer a Friend
Page 1 of 3 1 2 3 Last
  1. #1

    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.

  2. #2
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,652
    Blog Entries
    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.

  3. #3

    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?

  4. #4
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,652
    Blog Entries
    2
    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.

  5. #5
    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

  6. #6

    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?

  7. #7
    does tr not have attribute decoration underline too?

    Previously: MurghBpurn

  8. #8
    Looking at the code, the only attributes supported are the two I noted in the tag summary above. (li -> indent, td -> colspan)

    Regards,
    JPG

  9. #9
    Must be something thats added in specific rulesets (BRP at least)

    Previously: MurghBpurn

  10. #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

Page 1 of 3 1 2 3 Last

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Fantasy Grounds Merchandise

Log in

Log in