PDA

View Full Version : Help with table tag



kenneth_burnell
August 24th, 2015, 18:29
I am trying to see if there is to make the text in a column not wrap around but separate where I want it to.

So say I want it to show this way in the single column:

(A) Studded leather armor* and 20 arrows*
(B) Scrolls ...

Any advise in the scripting?

Trenloe
August 24th, 2015, 18:34
Are you using a table within a story entry - CTRL+6 within a formatted text field: https://www.fantasygrounds.com/wiki/index.php/The_Basics#Formatted_Text_Fields

Or, creating a rollable table: https://www.fantasygrounds.com/wiki/index.php/Tables

kenneth_burnell
August 24th, 2015, 19:09
I am actually doing this through a module on the client.xml file. I am able to work out the column spacing and putting the information into the table, but when I want to have it setup so that there can basically be a list of items to choose from in one column it just does the wrap around text.

so it looks like this in the file:

<table>
<tr><td colspan="9"><b>Table 1-4</b></td></tr>
<tr><td><b>Region</b></td><td colspan="2"><b>Automatic Languages</b></td><td colspan="2"><b>Bonus Languages</b></td><td colspan="3"><b>Equipment</b></td></tr>
<tr><td>Korreinder</td><td colspan="2">Korrein</td><td colspan="2">Elven, Goblin, Orc</td><td colspan="3">(A) Studded leather armor* and 20 arrows* (B) Scrolls of <i>web </i>and <i>protection from arrows </i>(C) Scrolls of <i>silence </i>and <i>spiritual weapon</i></td></tr>
</table>

Trenloe
August 24th, 2015, 19:28
I'd do it as separate rows, but with a blank field for the first columns:


<table>
<tr>
<td colspan="8"><b>Table 1-4</b></td>
</tr>
<tr>
<td><b>Region</b></td>
<td colspan="2"><b>Automatic Languages</b></td>
<td colspan="2"><b>Bonus Languages</b></td>
<td colspan="3"><b>Equipment</b></td>
</tr>
<tr>
<td>Korreinder</td>
<td colspan="2">Korrein</td>
<td colspan="2">Elven, Goblin, Orc</td>
<td colspan="3">(A) Studded leather armor* and 20 arrows*</td>
</tr>
<tr>
<td colspan="5"></td>
<td colspan="3">(B) Scrolls of <i>web </i>and <i>protection from arrows</i></td>
</tr>
<tr>
<td colspan="5"></td>
<td colspan="3">(C) Scrolls of <i>silence </i>and <i>spiritual weapon</i></td>
</tr>
</table>

https://dl.dropboxusercontent.com/u/39085830/Screenshots/Fantasy%20Grounds/Table%20Rows.jpg