Results 211 to 240 of 287
Thread: Upcoming TABLE Code Changes
-
2014-04-04, 04:13 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
Basically, I created a new class to produce tables close to the old style. But then I worked out that you can stack classes, so I created several more for you to make your tables just how you like them.
The new classes are:NOTE: The alternating row colours will not work on IE8 or below.head Will produce a table with a different header row colour, just like the old style. You need to use TH instead of TD for this colour, of course. alt1 Will produce the alternating light sand colour rows on the even numbered rows, just like the old style. alt2 Will produce alternating darker sand colour rows on the odd numbered rows, this is a new addition. outer_border Not actually a new class, but I did set it up to override the inside borders of these classes.
Examples (all examples follow the same format, with a TH row):
Header only
[table="width: 500, class: head"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with alternating row colours
[table="width: 500, class: head alt1"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Alternating row colours only
[table="width: 500, class: alt1"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with alternating row colours, no inside borders
[table="width: 500, class: head alt1 outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with both alternating row colours
[table="width: 500, class: head alt1 alt2"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with both alternating row colours, no inside borders
[table="width: 500, class: head alt1 outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with new alternate alternating row colours
[table="width: 500, class: head alt2"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with alternate alternating row colours, no inside borders
[table="width: 500, class: head alt2 outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 05:34 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
Just created three more (and changed one):
grid Changed to 1px border thick_grid New class with the 3px border thick_outer_border New class with 3px outer border and no inside borders thick_outer_border_grid New class with 3px outer border and 1px inside borders
Examples:
thick_grid
[table="width: 500, class: thick_grid"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
thick_outer_border
[table="width: 500, class: thick_outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
thick_outer_border_grid
[table="width: 500, class: thick_outer_border_grid"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with both alternating row colours and thick borders
[table="width: 500, class: head alt1 alt2 thick_grid"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with both alternating row colours and thick outer border with no inside borders
[table="width: 500, class: head alt1 alt2 thick_outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with both alternating row colours and thick outer border with thin inside borders
[table="width: 500, class: head alt1 alt2 thick_outer_border_grid"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 06:40 AM (ISO 8601)
- Join Date
- Jan 2004
- Location
- Bensalem, PA
- Gender
Re: Upcoming TABLE Code Changes
John Ling
Frog God Games Lead Pathfinder Developer
Note: unless explicitly stated otherwise, opinions in my posts are my own and not those of Frog God Games.
-
2014-04-04, 06:46 AM (ISO 8601)
- Join Date
- Oct 2012
Re: Upcoming TABLE Code Changes
Homebrew list. Latest Homebrew: Deep Cold, Expanded Frostfell temperature Bands.
-
2014-04-04, 07:25 AM (ISO 8601)
- Join Date
- Nov 2008
- Location
- Ireland
- Gender
Re: Upcoming TABLE Code Changes
Can we get a class(es) for the Avatar Adoption thread that removes padding, and possibly sets maximum [td] width+height to 120px?
A way to remove padding would also help if anyone wants to use nested tables, e.g. to simulate vertical cell merging.
Alternatively swap the row colors, since I'm now pretty sure that the old tables went light-dark-light-dark.Last edited by Prime32; 2014-04-04 at 07:55 AM.
-
2014-04-04, 07:32 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 08:23 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
Not going to do this one, but you can do the width easily. Just set the width of the cells in the first row.
Sample code:
Spoiler[table="class: grid"]
[tr]
[td="width: 120"]1[/td]
[td="width: 80"]2[/td]
[td="width: 250"]3[/td]
[td]4[/td]
[td]5[/td]
[/tr]
[tr]
[td]11111 11111 11111 11111 11111 11111[/td]
[td]22222 22222 22222 22222 22222 22222[/td]
[td]33333 33333 33333 33333 33333 33333[/td]
[td]44444 44444 44444 44444 44444 44444[/td]
[td]55555 55555 55555 55555 55555 55555[/td]
[/tr]
[tr]
[td]111[/td]
[td]222[/td]
[td]333[/td]
[td]444[/td]
[td]555[/td]
[/tr]
[/table]
Example:
Spoiler1 2 3 4 5 11111 11111 11111 11111 11111 11111 22222 22222 22222 22222 22222 22222 33333 33333 33333 33333 33333 33333 44444 44444 44444 44444 44444 44444 55555 55555 55555 55555 55555 55555 111 222 333 444 555
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 09:18 AM (ISO 8601)
- Join Date
- Jun 2013
- Gender
-
2014-04-04, 10:23 AM (ISO 8601)
- Join Date
- Nov 2008
- Location
- Ireland
- Gender
Re: Upcoming TABLE Code Changes
Spoiler// at the start of a line makes it a comment, meaning it's not executed and doesn't do anything (the UserScript block still needs to be there despite consisting of comments, but it's just to identify the file to Greasemonkey). Add comment marks to every uncommented line in the section between the UserScript block and "Begin sorttable.js"Last edited by Prime32; 2014-04-04 at 10:32 AM.
-
2014-04-04, 10:50 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
Yeah, uhm, no. I didn't notice that you had posted something containing javascript. It has been removed to prevent any confusion with endorsement, sorry. We will not be endorsing any such scripts due to the risk of developer abuse, or unintended bugs.
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 10:53 AM (ISO 8601)
- Join Date
- Apr 2006
- Location
- Bristol
- Gender
Re: Upcoming TABLE Code Changes
That's awesome Rawhide, thanks for updating that. The tables look better already!
Is it possible to add this new information to the start of this thread (or another thread about the table code that maybe I've missed) so that it's convenient for future reference?
Additionally (this might have been mentioned and I missed it, hence the above), is there any way to get the headers to left- (or indeed right-) align?Last edited by Aedilred; 2014-04-04 at 11:07 AM.
GITP Blood Bowl Manager Cup
Red Sabres - Season I Cup Champions, two-time Cup Semifinalists
Anlec Razors - Two-time Cup Semifinalists
Bad Badenhof Bats - Season VII Cup Champions
League Wiki
Spoiler: Previous Avatars(by Strawberries)
(by Rain Dragon)
-
2014-04-04, 12:52 PM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
Re: Upcoming TABLE Code Changes
So, I hear that if you append "sortable" to the class list, something magical happens.
[table="width: 500, class: head alt1 alt2 thick_outer_border_grid sortable"]
111111 123456 222222 234567 333333 345678 444444 456789 555555 987654 666666 876543 777777 765432 888888 654321 999999 123321
"My Hobby: Replacing your soap with gravy" by rtg0922, Doll and Clint "Rawhide" Eastwood by Sneak
-
2014-04-04, 12:58 PM (ISO 8601)
- Join Date
- Apr 2005
- Gender
Re: Upcoming TABLE Code Changes
Yer a wizard rawhide
If my text is blue, I'm being sarcastic.But you already knew that, right?
-
2014-04-04, 12:59 PM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
-
2014-04-04, 01:10 PM (ISO 8601)
- Join Date
- Apr 2005
- Gender
Re: Upcoming TABLE Code Changes
Whatever floats your boat.
Fun experiment time!
111 123 321 333 345 543 222 234 432 333 345 543 111 123 321
After hitting preview: Looks like having a table header in the middle of the table causes some interesting results. It still references the top row to sort by, regardless of if it's the header or not, but the header displays the arrows.
222 333 345 321 111 123 543
After preview: looks like Colspan works beautifully with it. It sorts by the first column that it affects rather than causing any funky results like switching cells around to put them in order. Perfect.If my text is blue, I'm being sarcastic.But you already knew that, right?
-
2014-04-04, 01:49 PM (ISO 8601)
- Join Date
- Nov 2008
- Location
- Ireland
- Gender
Re: Upcoming TABLE Code Changes
Is it okay to post Stylish content (i.e. CSS only), and/or post scripts on other parts of the site?
-
2014-04-04, 02:26 PM (ISO 8601)
- Join Date
- Jan 2007
Re: Upcoming TABLE Code Changes
I haven't fully tested this yet, but I believe if you insert a blank [tr][/tr] at the beginning of your table (but AFTER a table header, if present), it will alternate the rest of the rows light/dark instead of dark/light
A couple of examples, using Rawhide's tables from above:
Header with reverse alternating row colours
[table="width: 500, class: head alt1"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
Header with reverse alternating row colours, no inside borders
[table="width: 500, class: head alt1 outer_border"]
Spoiler111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111 111111
This renders properly on Safari and Chrome. Haven't tested it on other browsers.Concluded: The Stick Awards II: Second Edition
Ongoing: OOTS by Page Count
Coming Soon: OOTS by Final Post Count II: The Post Counts Always Chart Twice
Coming Later: The Stick Awards III: The Search for More Votes
__________________________
No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style - Jhereg Proverb
-
2014-04-04, 05:44 PM (ISO 8601)
- Join Date
- Oct 2011
Re: Upcoming TABLE Code Changes
So... the only problem i see is that using alt1 and alt2 prevent you from altering the bgcolor of any specific rows or cells... any suggestions?
Last edited by sirpercival; 2014-04-04 at 05:44 PM. Reason: accidentally a word
(member in good standing of the troll-feeder's guild)
I am the assassin of productivity.
Super boss Muscle Wizard avvie by Ceika.
gitp extended sig
minmaxboards extended sig (more stuff)
-
2014-04-04, 05:45 PM (ISO 8601)
- Join Date
- Mar 2010
- Gender
Re: Upcoming TABLE Code Changes
-
2014-04-04, 06:01 PM (ISO 8601)
- Join Date
- Feb 2012
- Location
- Germany
Re: Upcoming TABLE Code Changes
You could just color all rows/cells manually, giving you the ultimate flexibility to color everything however you wish.
[Yes, using the way you want would be easier, but since I don't think that feature is that relevant, I personally wouldn't invest much time to try to fix it.]
Problems with [table]?
All you want to know about [table]!The Order of the Stick
Kickstarter Reward Collection
Last updated: 2016/08/09, containing:
9 Crayon Drawings | 21 Stick its | 47 Signature Doodles
Custom Avatar made by the Giant.
Thanks!
-
2014-04-04, 06:02 PM (ISO 8601)
- Join Date
- Mar 2007
- Location
- Oregon, USA
Re: Upcoming TABLE Code Changes
FeytouchedBanana eldritch disciple avatar by...me!
The Index of the Giant's Comments VI―Making Dogma from Zapped Bananas
-
2014-04-04, 06:51 PM (ISO 8601)
- Join Date
- Oct 2011
Re: Upcoming TABLE Code Changes
Unless you want for any reason to have the alt1/alt2 color scheme but keep the ability to have other cells or rows a different color, like for example I need in the Homebrew Martial Discipline Compendium...
I actually can't do that at all, because where I need this, I run into post character limits if I try.
No, yours works. Also, if I try it here, it works, but it doesn't work in the table I care about.
Hm. I shall investigate further.
EDIT: figured it out. i am teh derp. sorry!Last edited by sirpercival; 2014-04-04 at 06:53 PM.
(member in good standing of the troll-feeder's guild)
I am the assassin of productivity.
Super boss Muscle Wizard avvie by Ceika.
gitp extended sig
minmaxboards extended sig (more stuff)
-
2014-04-05, 03:25 AM (ISO 8601)
- Join Date
- Nov 2010
- Location
- Vancouver BC Canada
- Gender
Re: Upcoming TABLE Code Changes
If the mods were to make a sticky with all the table templates in the first post it might help damage control homebrewers who are currently staring at dozens of broken tables.
Also, maybe entering 111111111's into all the entries might not intuitively illustrate which line is which.
For a post's max character count, does this ignore the breaks needed to accomplish this new table code?Last edited by Hanuman; 2014-04-05 at 03:35 PM.
-
2014-04-05, 11:12 PM (ISO 8601)
- Join Date
- Sep 2012
- Location
- Homebrew
- Gender
Re: Upcoming TABLE Code Changes
How would you make a table where there were no grid lines in the header (2 rows thick) but there were grid lines in the lower rows?
Saves Spells Per Day Level BAB Fortitude Reflex Will Special 0th 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 1st ++++2nd ++++3rd ++++4th ++++5th ++++6th ++++7th ++++8th ++++9th ++++10th ++++11th ++++12th ++++13th ++++14th ++++15th ++++16th ++++17th ++++18th ++++19th ++++20th ++++
I want no black lines within the dark brown. How do?My Homebrew and Extended Signature
♦ Current avatar: Charza Sahlaren, by gr8artist ♦
-
2014-04-05, 11:29 PM (ISO 8601)
- Join Date
- Apr 2005
- Gender
Re: Upcoming TABLE Code Changes
Testing:
Saves Spells Per Day Level BAB Fortitude Reflex Will Special 0th 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 1st ++++2nd ++++3rd ++++4th ++++5th ++++6th ++++7th ++++8th ++++9th ++++10th ++++11th ++++12th ++++13th ++++14th ++++15th ++++16th ++++17th ++++18th ++++19th ++++20th ++++
Yep, looks like that works. It's a bit backwards, but what you have to do is make the table with just the outer border, then apply the grid class to the table rows where you want it.
I wonder, is there some way to get the vertical lines, but not horizontal? With the striped colors, the horizontal lines aren't as necessary, but without vertical lines the tables end up looking kind of cluttered.If my text is blue, I'm being sarcastic.But you already knew that, right?
-
2014-04-06, 01:12 AM (ISO 8601)
- Join Date
- Nov 2010
- Location
- Vancouver BC Canada
- Gender
Re: Upcoming TABLE Code Changes
What's your resolution? Mine's 1200x800 and your tables still require a scroll bar.
-
2014-04-06, 06:13 AM (ISO 8601)
- Join Date
- Apr 2009
- Location
- Germany
Re: Upcoming TABLE Code Changes
For some reason the tables I am making don't get the head bar colored brown. Any idea what I've been doing wrong?
SpoilerClass Level Spell Points Spells Known Max. Spell Lvl. Known 1 3 3 1st 2 7 5 1st 3 13 7 2nd 4 19 9 2nd 5 25 11 3rd 6 33 13 3rd 7 42 15 4th 8 52 17 4th 9 63 19 (4th) 10 74 21 (4th) 11 88 23 (4th) 12 102 25 (4th) We are not standing on the shoulders of giants, but on very tall tower of other dwarves.
Spriggan's Den Heroic Fantasy Roleplaying
Iridium Moons Retro-futuristic Space Opera
-
2014-04-06, 06:17 AM (ISO 8601)
- Join Date
- Sep 2005
- Location
- Australia
- Gender
-
2014-04-06, 06:27 AM (ISO 8601)
- Join Date
- Apr 2009
- Location
- Germany
Re: Upcoming TABLE Code Changes
I see. Thanks.
We are not standing on the shoulders of giants, but on very tall tower of other dwarves.
Spriggan's Den Heroic Fantasy Roleplaying
Iridium Moons Retro-futuristic Space Opera
-
2014-04-06, 05:17 PM (ISO 8601)
- Join Date
- Jan 2009
- Location
- Auckland
- Gender
Re: Upcoming TABLE Code Changes
Finally!
Spoiler: Sample Arcane Spellcasting classSaves Spells Per Day Level BAB Fort Ref Will Special 0th 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 1st +0 +0 +0 +1 Initial class features 3 1 — — — — — — — — 2nd +1 +0 +0 +3 — 4 2 — — — — — — — — 3rd +1 +1 +1 +3 — 4 2 1 — — — — — — — 4th +2 +1 +1 +4 — 4 3 2 — — — — — — — 5th +2 +1 +1 +4 Bonus feat 4 3 2 1 — — — — — — 6th +3 +2 +2 +5 — 4 3 2 2 — — — — — — 7th +3 +2 +2 +5 — 4 4 3 2 1 — — — — — 8th +4 +2 +2 +6 — 4 4 3 3 2 — — — — — 9th +4 +3 +3 +6 — 4 4 4 3 2 1 — — — — 10th +5 +3 +3 +7 Bonus feat 4 4 3 3 2 — — — — — 11th +5 +3 +3 +7 — 4 4 4 4 3 2 1 — — — 12th +6/+1 +4 +4 +8 — 4 4 4 4 3 3 2 — — — 13th +6/+1 +4 +4 +8 — 4 4 4 4 4 3 2 1 — — 14th +7/+2 +4 +4 +9 — 4 4 4 4 4 3 3 2 — — 15th +7/+2 +5 +5 +9 Bonus feat 4 4 4 4 4 4 3 2 1 — 16th +8/+3 +5 +5 +10 — 4 4 4 4 4 4 3 3 2 — 17th +8/+3 +5 +5 +10 — 4 4 4 4 4 4 4 3 2 1 18th +9/+4 +6 +6 +11 — 4 4 4 4 4 4 4 3 3 2 19th +9/+4 +6 +6 +11 — 4 4 4 4 4 4 4 4 3 3 20th +10/+5 +6 +6 +12 Bonus feat 4 4 4 4 4 4 4 4 4 4 Last edited by Southern Cross; 2014-04-09 at 05:24 PM.
President and founder of the "Jonathan Harker Was The True Hero of Dracula" Fan club.
To join, you may either add J.H.W.T.T.H.O.D to your sig or modify the sig above.
(Avatar darkwizard.png by Teutonic Knight.)