Request: Add support for [table] bbcode tags


Website Feedback


Would make posting loots and lists of various kings on the forum mega useful. Especially when used with tools like:

http://theenemy.dk/table/

Thanks!

Also I had another request for a forum change from waaay back. I don't suppose there's any way to get an idea if the change will be made? Don't want to bump the old thread again!


1 person marked this as a favorite.

Hi Azih,

If you (and your players) use my browser extension, you'll be able to utilize the "code" tag. It causes content to be displayed in a mono-spaced font, which should make it a lot easier to post your loot lists.


Ah, I am actually using your amazing extension. Thanks much for it! The BBCode extension changes would be great to have as a part of basic operation though as I can't guarantee that my players will have the extension (especially if they're on mobile).

Love the rearrangement of the campaign tab especially!


Glad to hear it, and you're welcome!

You could always recommend that your players start using it. I'd be among the happiest if Paizo implemented a bunch of these things as basic operation, but it's understandable that forum improvements like that aren't really at the top of their priorities.

Mobile is planned... and then your players will be entirely without excuse. :)

Spoiler:
It actually all started with re-arranging the campaigns tab, so it pleases me that people are still finding that useful.


The removal of extra whitespace and tabs seems to be maintained with the code tag. I guess that's a board thing?


Pathfinder Adventure Path, Campaign Setting, Card Game, Class Deck, Companion, Maps, Modules, Roleplaying Game Subscriber; Pathfinder Battles Case Subscriber; Starfinder Charter Superscriber

CSS thing, if the tag defines the element's style as "white-space: pre-wrap" then all consecutive whitespace should be preserved, with long lines being wrapped to a new line (rather than causing insane amounts of horizontal scrolling). It looks like the tag is not currently applying that style. Also it looks like it makes it a span tag, when it should be a div tag, as it can span multiple lines and therefore should be a block level element.


Azih wrote:
The removal of extra whitespace and tabs seems to be maintained with the code tag. I guess that's a board thing?

Yep, board thing. Unfortunately, nothing I can do about that. :(


Pathfinder Adventure Path, Campaign Setting, Card Game, Class Deck, Companion, Maps, Modules, Roleplaying Game Subscriber; Pathfinder Battles Case Subscriber; Starfinder Charter Superscriber
Oladon wrote:
Azih wrote:
The removal of extra whitespace and tabs seems to be maintained with the code tag. I guess that's a board thing?
Yep, board thing. Unfortunately, nothing I can do about that. :(

The board strips leading/trailing whitespace from lines, but inner whitespace can be maintained by using the CSS style I mentioned in my above post. You can hack around leading/trailing whitespace by automatically inserting leading/trailing characters on post submission for every line in a code block that paizo does not strip (for example: zero-width space), and then removing that character on display (not required, but would make copy/paste more accurate by not having invisible characters in there).

If you want, I can probably submit a PR on github to do exactly that. (turns out using span is correct since paizo embeds everything in a <p> tag, but then you'd want to make the display style inline-block for proper display).


Internal whitespace is what I'm after and would be great.


1 person marked this as a favorite.
Pathfinder Adventure Path, Campaign Setting, Card Game, Class Deck, Companion, Maps, Modules, Roleplaying Game Subscriber; Pathfinder Battles Case Subscriber; Starfinder Charter Superscriber
Azih wrote:
Internal whitespace is what I'm after and would be great.

You can also use a figure space in the meantime (look it up on wikipedia to copy/paste or copy/paste them from below). They're as wide as a number in whatever font is being used, so they can be somewhat used for spacing even without needing the above forum extension.

Examples:

d% Roll    Result
----------------------------
1-20       Something
21-40      Something else
41-80      A third thing
81-100     Another thing

  X
 X X
X   X


That worked out pretty well. Painful as heck to do though! And the lack of monospace means things most probably won't line up perfectly. Oh well, what can you do?


Azih wrote:
Internal whitespace is what I'm after and would be great.

Turns out skizzerz is actually correct, and I'm wrong. :) Last time I checked Paizo seemed to be stripping out internal whitespace, but it looks like they're not now.

skizzerz wrote:
If you want, I can probably submit a PR on github...

PRs are always welcome. All I ask is that you make it consistent with the current code in whatever ways that's applicable. In this case, it'd probably be enough to just add [code]white-space: pre[/code] to the code tag's style set, but we'll want to test and make sure that fixes the issue and doesn't cause any new ones, of course. (It shouldn't.)

Azih wrote:
And the lack of monospace means things most probably won't line up perfectly. Oh well, what can you do?

You could also combine the two for monospace and lining-up-ness.


Maybe another solution would be for the extension to convert spaces within code tags to figure spaces? That way the solution would work best for players who have the extension but still be partially operational for players who don't?

(Yes, I am a programmer also)


Hmm, that's an interesting thought. Historically my stance has always been "don't mess with non-extension-users' experience", but I can see a pretty good argument for your suggestion.

Life hasn't left much time for personal projects lately, but I'll add your suggestion to my Trello board for safe keeping. :)

Community / Forums / Paizo / Website Feedback / Request: Add support for [table] bbcode tags All Messageboards

Want to post a reply? Sign in.