User blog:Shikichama/Collapsible Tab Fix for Infoboxes (Hopefully Permanent)

I'm not entirely sure about how long this fix can/will last, but it seems like it's a better fix than what I've been doing thus far.

See, there's a special line of code for a collapsible tab in an infobox (or anywhere in general). That line of code is the <"mw-collapsible"> line, which allows the tab to be collapsible. Of course, the code needs to be able to recognize where the collapsible is, hence the full line that we see: . When we finish adding code to the collapsible, we put a at the end to let the code know that any data written after the <"mw-collapsible"> text should be in the next area.

Here's where it gets tricky: because of how the wiki's code runs, "divclass" on its own doesn't always get recognized as legitimate code and often breaks, leading to new code being necessary. This can be done easily by putting a space in between "div" and "class", making the code look like this:

However, our chosen code does not like spaces in code like that, so it often reverts back to . How do you fix this more permanently?

Again, this may not be permanent at all, and this is honestly just my own experience with the software, but putting a hyphen (-) in between "div" and "class" seems to work better. This also works with the annoying (redone to, which is an oddity because adding a hyphen instead of a space will actually change the  to  for some ungodly reason) and (redone to ) lines, both of which can actually be deleted and not bring about unfortunate changes. Again, that's my experience with this.

What about you? Do you have any tips and tricks you use to make your infoboxes are articles in general look better? Feel free to share!