User:Iced Bluejay/sandbox

For code testing, proposed codes, and ripping apart/explaining codes *dabs* 

Infobox Building Code
This can be edited (change tab names, change the required field name, the displayed field name, etc.) Sorry my notes are in caps, I needed a way to differentiate them from the code and I have to use nowiki to get the code to even show up.

You should have a basic understanding of how to use the infobox templates and how the tabber parser function works before trying to do this. Check below for my breakdown for tabber parsers and how they work if you don't understand them.

In summary, it looks complicated because of all the different functions, but once you break it down and keep track of how many open brackets you have, it becomes much simpler. If you're struggling with the code, take a break and go back and recount to make sure your number of  brackets is the same as your number of   brackets. And you can always ask for help in the Discord or leave a comment on my page or something.

Tabber Parser Functions
Make tabs within  without the whole thing exploding by using the   parser function.

Here's a basic general example of the code

Which will give you the following: Heading1= blahblahblah

Heading2= blaaaaaah

Making Tables Within the Tabber Parser
Okay, awesome, we know how to make tabs within tabs now. However, the regular wiki table coding using  that we usually use doesn't work within parsers. It basically causes the  to close weirdly, and the page will explode.

This page explains how to do it in-depth, it's easy to understand, and shows some excellent code examples. Generally, the key thing to note is that  gets replaced with. The number of  within the   changes based off how many   we would've put when generating a normal table.

For example, in a typical row of a table we might put:

But within the parser, we must use  and   instead, so we would write:

The Broken Heart table (under Trade -> Pathologic -> Andrey Stamatin) is already done, so follow that for example if you need more help, or you can ask on the Wiki Discord, or ask me directly.

Testing New Infobox Code
Trying to see if I can build an infobox that changes both image and text between tabs.