Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[Script] Table Formatter — Format Roll20 table appearance to match popular game themes.

1775493910

Edited 1775677628
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Format Table [ Video Demo ] Available in One Click Install on your Mods page. Tired of the vanilla tables the Roll20 sets? Want them to be more compact? More closely resemble your system of choice? This is what Table formatter does. It allows you to specify a given handout and bulk edit the appearance of all of the tables in it. It does this by presenting you with a list of preset styles. TableFormatter Help Purpose Applies a predefined style to all tables in a handout. Usage !format-table  - Calls up a control panel to apply styles with a button press. Macro Syntax The controller panel gives you all of the commands as button presses, but if you need the macro for any reason, it is: !format-table --style|STYLE --handout|HANDOUT Arguments --style | Style name --handout | Handout name or ID Example: !format-table --style|5e --handout|Monster Stats Available Styles 5.5e 5e DnD 3 Invisible Minimal OSR Pathfinder 2 Roll20 Default Wikitable Notes Formats all tables in the handout Existing table styles will be replaced
1775495850
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Reserved for Updates
1775677651
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This is now available in One Click Install on your Mods page.
1780333117

Edited 1780334424
Tilt
Pro
Just used this for some store pages.. thank you very much. I did come across one issue where I went through all of the formats (to see what they looked like) and when I did the final one, I went back to try and do the Pathfinder one and I received this error and now I can not get it to work again with this table.. it keeps throwing the same error (I have reset the sandbox, but now it just does not like this table)  I am posting 2 errors below, one I received in the sandbox and one I received within the chat panel. (they appear to be the same error) Update:  I have tried new tables and I cannot get it to replicate the issue Here is the error I received in the Sandbox: TypeError: input.toLowerCase is not a function     at findHandout (1-CLICK: Format Table [Tab 32]:276:23)     at handleInput (1-CLICK: Format Table [Tab 32]:467:21)     at /home/node/d20-api-server/pubsub.js:66:23     at Object.publish (/home/node/d20-api-server/pubsub.js:72:13)     at Timeout.processChatQueue [as _onTimeout] (/home/node/d20-api-server/api.js:2425:12)     at listOnTimeout (node:internal/timers:605:17)     at process.processTimers (node:internal/timers:541:7) Chat Panel Error: Handout TypeError: input.toLowerCase is not a function at findHandout (1-CLICK: Format Table [Tab 32]:276:23) at handleInput (1-CLICK: Format Table [Tab 32]:467:21) at /home/node/d20-api-server/pubsub.js:66:23 at Object.publish (/home/node/d20-api-server/pubsub.js:72:13) at Timeout.processChatQueue [as _onTimeout] (/home/node/d20-api-server/api.js:2425:12) at listOnTimeout (node:internal/timers:605:17) at process.processTimers (node:internal/timers:541:7) not found
1780347298
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Tilt! Like you, I can't reproduce this error. If you are still getting the error with that one handout, feel free to shoot me an invite to the gam ein a DM, and I'll see if I can't find out what happened.
I'm really liking this script. I've found that I like the readability of the Pathfinder 2 style quite a bit. One issue that I encountered with some of the styles is that the text in the header rows doesn't always look right in dark mode - I need to adjust the text foreground color in order for it to be readable in both modes. The text always look correct in Light mode no matter what style I use.
1780418893
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks, I'll take a look at that. I try to be careful when using the colors #000000 and #ffffff, since the dark/light mode setting can swap those without your intent. Can you post screen shots of what you are seeing?
I'm away from my PC right now, but I'll send some screen shots later.
keithcurtis said: Thanks, I'll take a look at that. I try to be careful when using the colors #000000 and #ffffff, since the dark/light mode setting can swap those without your intent. Can you post screen shots of what you are seeing? Screen Shots showing light and dark mode: 3E Format: 5.5E Format: 5E Format: Default Format: Invisible Format: Minimal Format: OSR Format: Pathfinder 2 Format: Wiki Table Format:
1780495383
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I think I can do something about most of those. It's almost definitely due to defining pure black and pure white, and the site "correcting" them. Thanks, These were very helpful!