|
|
11-14-2007, 03:15 AM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Tables
There's a new bbcode in town, and it's called Table.
Here's an example (quote me to see how it works) along with the developer's guide to the features.
col1 | col2 | col3 |
---|
row2 | row2 | row2 | row3 | row3 | row3 |
Quote:
Originally Posted by StGaensler
Introduction to options:
example: [table="option1;option2=value;option3='this is a long value with space';option4=value1,value2,value3"]
The whole option list should be wrapped with quotes.
Options are seperated by a semicolon
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 seperated by a comma. (option4)
Description of options:
head
This option defines the first line as head, so the first row is shown as head of the table. If the table sould be sorted, the head is not sorted.
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 colum specifies the order: descending (default: ascending)
autonum=1 (equal to autonum) autonum=a autonum=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 autonumtitle='long value with spaces'
Defines the title of the autonum-column. Can be left empty.
width=123px width=45em width=67%
Defines the width of the table.
css=myclass
Defines the aditional css class of the whole table. Possible values have to be defined in admincp.
The value is prepended by stg_table_ so the resulting css class with above example would be stg_table_myclass
The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)
Introduction to special options (formating cells and rows):
example: {option1=value1}{option2=value2}
These "special" options can be written as the very first content of a cell to format it.
Description of special options:
{colsp=5}
Defines a colspan from current cell with the length of 5 cells
{css=myclass}
Defines the css class of the current row. This value is only valid in the first cell of a row and should be the first option (colspan defined after it - currently reversing the order works, too).
|
|
11-14-2007, 03:23 AM
|
|
Admin of THIEVES and SLUGABEDS
|
|
|
|
Re: Tables
Another great hack, vm, thank you. I love how the header row is in the header style.
|
11-14-2007, 03:29 AM
|
|
Coffin Creep
|
|
Join Date: Sep 2004
Location: The nightmare realm
|
|
Re: Tables
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
|
11-14-2007, 03:36 AM
|
|
Coffin Creep
|
|
Join Date: Sep 2004
Location: The nightmare realm
|
|
Re: Tables
colsp spans horizontally. Is there any way to have a cell span vertically?
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
|
11-14-2007, 03:37 AM
|
|
Admin of THIEVES and SLUGABEDS
|
|
|
|
Re: Tables
You use the | character, like in the table in the OP.
|
11-14-2007, 03:45 AM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
Actually the | is to separate columns. I don't know if there's a way to span vertically, but then I haven't even read the instructions I pasted above. I recommend experimentation. If it doesn't work, it won't work.
|
11-14-2007, 04:54 AM
|
|
Adequately Crumbulent
|
|
Join Date: Jan 2005
Location: Cascadia
Gender: Male
|
|
Re: Tables
You are the bestest admin on the planet!
|
11-14-2007, 05:00 AM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
|
11-14-2007, 05:03 AM
|
|
Adequately Crumbulent
|
|
Join Date: Jan 2005
Location: Cascadia
Gender: Male
|
|
Re: Tables
Just don't tell liv I said that.
|
11-14-2007, 05:28 AM
|
|
lumpy proletariat
|
|
Join Date: Oct 2007
Location: Specific Northwest
Gender: Female
|
|
Re: Tables
Do tables come up often?
|
11-14-2007, 06:01 AM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
|
11-14-2007, 11:29 AM
|
|
Coffin Creep
|
|
Join Date: Sep 2004
Location: The nightmare realm
|
|
Re: Tables
The tables would be even more useful if we had Brady Bunch smilies.
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
|
11-14-2007, 04:09 PM
|
|
puzzler
|
|
Join Date: Aug 2004
Location: UK
|
|
Re: Tables
| | 7 | ¦ | | 1 | 8 | ¦ | 9 | | | 3 | | 9 | ¦ | 6 | | | ¦ | | | | | 2 | | ¦ | | 9 | | ¦ | | | 1 | - | - | - | + | - | - | - | + | - | - | - | | | 1 | ¦ | 8 | | | ¦ | 6 | | | 2 | | | ¦ | | | | ¦ | | | 7 | | | 6 | ¦ | | | 9 | ¦ | 4 | | | - | - | - | + | - | - | - | + | - | - | - | 7 | | | ¦ | | 4 | | ¦ | | 9 | | | | | ¦ | | | 6 | ¦ | 5 | | 2 | | | 2 | ¦ | 1 | 7 | | ¦ | 8 | | |
__________________
|
11-14-2007, 04:39 PM
|
|
California Sober
|
|
Join Date: Jul 2004
Location: Silicon Valley
Gender: Bender
|
|
Re: Tables
Why are the 2nd and 3rd columns 4 columns wide?
|
11-14-2007, 04:41 PM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
They're not, there's just two extra columns in between for the dotted lines.
|
11-14-2007, 07:49 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
1. and even
2. "No Thread specified." I think StGaensler;900270 was posting on a different board.
3.
Quote:
Originally Posted by viscousmemories
I haven't even read the instructions I pasted above.
|
If in doubt, read the instructions?
4.
Quote:
Originally Posted by viscousmemories
Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
|
They'll come in handy for smilie art. What were you thinking?
|
11-14-2007, 07:51 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
Next up, that reply in a table.
|
11-14-2007, 07:53 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
# | Lookit |
---|
1. | and even | 2. | "No Thread specified." I think StGaensler;900270 was posting on a different board. | 3. | Quote: Originally Posted by viscousmemories | I haven't even read the instructions I pasted above. | | | If in doubt, read the instructions? | | 4. | Quote: Originally Posted by viscousmemories | Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions. | | | They'll come in handy for smilie art. What were you thinking? | |
|
11-14-2007, 07:58 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
Good. The quote shading is not quite perfect, but otherwise the layout is good.
What about autonum?
| Lookee here |
---|
1 | and even | 2 | "No Thread specified." I think StGaensler;900270 was posting on a different board. | 3 | Quote: Originally Posted by viscousmemories | 4 | I haven't even read the instructions I pasted above. | 5 | | If in doubt, read the instructions? | 6 | Quote: Originally Posted by viscousmemories | 7 | Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions. | 8 | | They'll come in handy for smilie art. What were you thinking? |
Hmm. It's a bit overenthusiastic. I suppose quotes look like embedded tables.
|
11-14-2007, 08:09 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
|
11-14-2007, 08:12 PM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
Brilliant!
|
11-14-2007, 08:13 PM
|
|
Coffee, tea, anti-Nazi
|
|
Join Date: Mar 2005
Location: Atlanta, GA
Gender: Female
|
|
Re: Tables
Smilie braids to a whole new level! I like it.
|
11-14-2007, 08:14 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
Quote:
css=myclass
Defines the aditional css class of the whole table. Possible values have to be defined in admincp.
The value is prepended by stg_table_ so the resulting css class with above example would be stg_table_myclass
The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)
|
Is there / can you define a class with no shading and no borders? For smilie art perhaps...
|
11-14-2007, 08:45 PM
|
|
Admin
|
|
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
|
|
Re: Tables
I just broke my brain trying to figure out how to do that, but here's the add-on thread if you want to give it a stab.
|
11-14-2007, 09:22 PM
|
|
Solipsist
|
|
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
|
|
Re: Tables
but also
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 06:33 AM.
|
|
|
|