#1
|
|||||
|
|||||
Embrodak's Guide to Tables Version 4.0
The information from my Old Guide is no longer applicable (except the spreadsheet integration). I have found the options available and put together this short guide. These are the functions that I found and have tested to verify they work. If you find another function out please PM me and I will update the thread and give credit where credit is due. Please Note. I will use <> to open and close tags. You will need to replace those with []. 1) Table Basics 2) Introduction to Options 3) Option - Header 4) Option - Sorting 5) Option - Auto Numbering 6) Option - Table Width More to Come.. See Old Guide linked above for Spreadsheet integration.
__________________
Last edited by Embrodak; Aug 26th, 2009 at 11:21 AM. |
#2
|
|||||||||||||||||||||
|
|||||||||||||||||||||
Basic Table
The opening and Closing Tags are simply <table> and </table> The data is separated by "|" Sample <table>Stat|Score|Mod STR|10|0 DEX|12|+1 CON|9|-1 INT|17|+3 WIS|10|0 CHA|14|+2 </table>
I'll use this base table for the rest of this thread.
__________________
Last edited by Embrodak; Aug 25th, 2009 at 11:38 AM. |
#3
|
|||||
|
|||||
Introduction to options:
Beyond the basic Table you can insert various Options. They are inserted in the header and are placed in quotes and separated by Semi-Colons. The whole option list should be wrapped with quotes. <table="option1;option2=value;option3='this is a long value with space';option4=value1,value2,value3"> If an option has a value it is assigned with "equal to" mark. (option2) If the value contains blanks or special characters it has to be wrapped with apostrophes. (option3) If an option has more than one value they are separated by a comma. (option4)[/QUOTE]
__________________
Last edited by Embrodak; Aug 25th, 2009 at 11:41 AM. |
#4
|
|||||||||||||||||||||
|
|||||||||||||||||||||
Header
Headers are an option that can be defined. It is simply "head". I've tested it and it appears to be case sensitive, so place in lowercase. <table="head">
Notice the difference between this table and that of the table in the Basic post.
__________________
|
#5
|
||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
Sorting
You can have the table sorted, so you don't have to enter the date in correct order, just have it sorted after the fact. The code is simply "sort=1d,2,3" This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first column specifies the order: descending (default: ascending) Sample Sorting Column 2 (the Score) <table="sort=2,1">
YOu can see it changed the order so it is showing the lowest score first. Note the Header is also sorter. If you combine the two options it will know not to sort the header row. Sample Sorting Column 2 (the Score) while maintaining the Header <table="head;sort=2,1">
__________________
|
#6
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Auto Numbering
There are two options to be defined for auto-numbering - autonum and autonumtitle AutoNum has 3 options. autonum=1 autonum=a autonum=A If left blank it defaults as autonum=1 The 1,a, or A defines that a new first column containing a numbering should be inserted. 1 -> 1, 2, 3, 4, ... , 999, 1000, .... a -> a, b, c, ... , aa, ab, ... , zz A -> A, B, C, ... , AA, BB, ... , ZZ autonumtitle=oneword or autonumtitle='long value with spaces' Defines the title of the autonum-column. Can be left empty. I don't know why you would want to AutoNumber the Stats Table but this is what it would look like <table="autonum=1">
<table="autonum=1;autonumtitle=Number">
Note the above code did nothing. You need to include the Header option for that to work. <table="head;autonum=1;autonumtitle=Number">
__________________
Last edited by Embrodak; Aug 25th, 2009 at 11:58 AM. |
#7
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Width
You can define the Width of the Table Either width=123px width=45em width=67% <table="head;width=200px">
<table="head;width=25em">
<table="head;width=15%">
__________________
Last edited by Embrodak; Aug 25th, 2009 at 02:05 PM. |
![]() |
Thread Tools | |
|
|