Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
/VM/station wiki
Search
Search
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Wikicode
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Tables== Tables are a little tricky to cover in depth without taking up a ton of space. So for more detailed information, check out Wikipedia's table page <s>[http://en.wikipedia.org/wiki/Table_%28furniture%29 here].</s> [http://en.wikipedia.org/wiki/Help:Table Here]. <br> Tables are similar to templates, mostly just because they are a type of coding that define stuff. Most templates end up using a table of some sort to make it look pretty anyways. An extremely simple table works like so: <div class="toccolours mw-collapsible mw-collapsed"><pre>{| class="wikitable" |- ! One || Two |- | Three || Four |}</pre></div> Gives us {| class="wikitable" |- ! One || Two |- | Three || Four |} Each part of the code defines where it belongs and what it does. The '''{|''' and '''|}''' are the opening and closing brackets of our table, they indicate the start and the end. The '''class="wikitable"''' defines the style of the table borders. Instead, you could replace the class with '''border=''' and define the size and style of the border. The '''|-''' indicates the end of a row, and adding a new line after it will make an extra row beneath it. The '''!''' defines the row to be a title of sorts, which also defaults the text to be centered in the box. In the case of the '''class="wikitable"''', it makes the row a different color. The '''||''' marks the end of the box, and any data past it will be in the next box over. To add more to a table, simple add a column with '''||''', or add a new row by making a new line and adding '''|-''' then another line and '''|'''. <div class="toccolours mw-collapsible mw-collapsed"><pre> {| class="wikitable" |- ! One || Two || Five |- | Three || Four || Six |- | One || More || Time |}</pre></div> {| class="wikitable" |- ! One || Two || Five |- | Three || Four || Six |- | One || More || Time |} <div class="toccolours mw-collapsible mw-collapsed"><pre> {| class="wikitable" || style="text-align: center;" |- |style="background: blue; color: white" | X ||style="background: blue; color: white" | One ||style="background: blue; color: white" | Two ||style="background: blue; color: white" | Three |- |style="background: blue; color: white" | One || 1 || 2 || 3 |- |style="background: blue; color: white" | Two || 2 || 4 || 6 |- |style="background: blue; color: white" | Three || 3 || 6 || 9 |}</pre></div> {| class="wikitable" | style="text-align: center;" |- |style="background: blue; color: white" | X ||style="background: blue; color: white" | One ||style="background: blue; color: white" | Two ||style="background: blue; color: white" | Three |- |style="background: blue; color: white" | One || 1 || 2 || 3 |- |style="background: blue; color: white" | Two || 2 || 4 || 6 |- |style="background: blue; color: white" | Three || 3 || 6 || 9 |} And a sortable table: <div class="toccolours mw-collapsible mw-collapsed"><pre> {| class="wikitable sortable" border="1" |- ! scope="col" | * ! scope="col" | A ! scope="col" | B ! scope="col" class="unsortable" | C ! scope="col" class="unsortable" | D |- !E | 1 || 4 || 2 || 6 |- !F | 2 || 8 || 4 || 1 |- !G | 0 || 4 || 1 || 2 |- !H | 3 || 6 || 9 || 1 |- |}</pre></div> {| class="wikitable sortable" border="1" |- ! scope="col" | * ! scope="col" | A ! scope="col" | B ! scope="col" class="unsortable" | C ! scope="col" class="unsortable" | D |- !E | 1 || 4 || 2 || 6 |- !F | 2 || 8 || 4 || 1 |- !G | 0 || 4 || 1 || 2 |- !H | 3 || 6 || 9 || 1 |- |}
Summary:
Please note that all contributions to /VM/station wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
/VM/station wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width