A Table Coding Guide
x
Did this guide help you? If so please give them a vote or leave a comment.
You can even win prizes by doing so!
Vote
Comment
I liked this Guide
I didn't like this Guide
Thank You!
Your votes and comments encourage our guide authors to continue
creating helpful guides for the League of Legends community.
Champion Build Guide
Table of Contents
| ||||||||||||||
Guide Details | Table information | Design & Coding | ||||||||||||
Introduction | Creating a table | Designing a table | ||||||||||||
Q&A | Basic | Advanced | Tips & Tricks | |||||||||||
Ending note | Table Structure | Table Structure | Fixing Code | |||||||||||
Special Thanks | Coloring Tables | Borders and Padding |
Templates [WIP] (opens new window) | |||||||||||
Changelog | Borders and Padding | Tables Within Tables |
Hello fellas! I'm Katasandra and I'm one of the many lurking members on Mobafire! Some of you may know me from my Lissandra guide and maybe you wonder how I created it or how you make a guide look like that. The magical answer is: tables! And that is what this guide is about. Now you might ask? Why create a guide on this? Well, I love tables and although there is another guide on coding tables, I noticed that all the images got removed... So one minute of silence for Foxy's Table Guide, I will miss it as I got most of my table knowledge from it. :'( Anyways, this guide will cover the basics of tables & coding them as well as some more advanced options and tips on how to create a table, how to fix spaghetti no, not real spaghetti. I also made some templates, which you can find in another guide! The purpose of this guide is to teach you the fundamentals of table coding and how it works. If you think I missed something or that I made a mistake somewhere, please comment! If you have any questions, broken tables or *beautiful* paint drawings (This will make sense later), comment! Oh yes, if you are a forgetful person like me: Here is an overview of the possible table tags and what they do, so you can easily find them when you want to do something with a table. Overview of Table tags
|
How to make a table
| |||||||||||||||||
|
Basic: Table Structure
| |||||||||||||||||||||||
|
Basic: Adjusting Width And Height
| ||||
|
Basic: Formatting Text & Images
| ||||
|
Basic: Background Color
| |||||||||||
|
Basic: Borders and Padding
| ||||||||
|
Advanced: Table Structure
| ||||||||||
|
Advanced: Borders And Padding
| |||||||||
|
Advanced: Border style
| |||||||||||||||
|
Advanced: Tables Within Tables
| |||
|
Getting Started
| |
|
Selecting the basic structure
| |||||||||||||||||||||||||||||||||||||||||
|
Creating The Basic Structure
| |||||||||||||||||||||||||
|
Adding Placeholder Text/Images & Revisiting Structure
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Styling Your Table
| |||||||||||||||||||||||||||||||||||||||||||||||||
|
Tips & Tricks
| ||||
|
Alright, in this section I will look at some general mistakes in coding and how to fix them. But before I go into that, here are a few tips for fixing code: >> Your own code won't be colored (it'll be completely white). Therefore, I will not color the code in this section either. >> If you have construction of tables within tables and it's broken, separate the tables first and fix them separately before joining them. >> The above also applies to tables in spoilers >> If you cannot find the mistake by looking at the editor, copy the code (to another chapter/outside of your table) and put [code][/code] tags around it. It will be easier to find the error that way. >> Every table must finish with [/td][/tr][/table] and every row must finish with [/td][/tr]. (Unless it's a spacing row) >> Sometimes a table is just too hard to fix (especially if you missed multiple tags), don't be afraid to start over when everything becomes a terrible mess. Summary
Now, I will use (half) the table I designed earlier and I'll break it. Table
|
Forgetting [/table] tags |
- All the content in the table will be duplicated and appear (unformatted) below the table.
Image
Forgetting [/tr] tags |
- All the content in the row where you forgot the [/tr] tag and all the content below will be duplicated, but it will still be formatted like it is in a table.
image
Forgetting [/td] tags |
- The content of the cell will be duplicated and appear above the table
1: You forgot the [/td] tag of the last cell in the row.
- Nothing more than the duplication of the content of that cell will happen.
image
- The content of the cell where you forgot the [/td] tag will duplicate and appear above the table
- All the content of all the cells beyond that cell (in the same row) will duplicate and appear at the end of the same row in the table.
IMPORTANT NOTE 2: If you forgot the [/td] of a spacing cell the content in your table will be duplicated, but nothing will appear at the top.
image
Forgetting [table] tags |
- Your entire table will not appear (just unformatted stuff) and you will find a [/table] tag at the end of the "table"
image
Forgetting [tr] tags |
- A [/tr] tag will appear at the top of the table and depending on what row vanished, there might be a change in height.
- If there is no row with deformed height you have to check all rows
image
image 2
Forgetting [td] tags |
1: You forgot the [td] tag of a cell at the end of the row.
- The content of the cell will not appear in the table but it will appear at the top of the table with a [/td] tag behind it.
- If the cell has no content, just the [/td] tag will appear above the table
image
- The same thing happens as if it is a cell at the end of the row, but all the cells in the row "shift" to the left.
image
Forgetting a part of any of the table tags |
Image
Putting text between tags |
IMPORTANT NOTE: The first thing you do when this happens is type CTRL + F and then whatever text appeared above the table!
IMPORTANT NOTE 2: This also happens if you accidentally put [[td] instead of [td], (a lonely [ will appear above the table), try searching for [[td or [[tr in this case instead of just [ )
Image
|
You finally reached the end of the guide! I hope it wasn't too long and that you learned something about tables. I really enjoyed making it and I hope you enjoyed reading it ^^ I hope I managed to brighten your day and wish you good luck with tables in the future! If there is anything wrong, if you miss anything, if you don't quite understand something yet, please comment/ask, I'll be happy to answer you! |
>> Special thanks to Foxy's Table Guide for learning me how to make tables! |
Notation in dd/mm/yy
|
You must be logged in to comment. Please login or register.