Home
Random
Recent changes
Special pages
Community portal
Preferences
About Sundering
Disclaimers
Sundering
Search
User menu
Talk
Contributions
Create account
Log in
Patches
|
Items
|
Quests
|
Creatures
|
Dungeons
|
NPCs
Attributes
|
Skills
|
Titles
|
XP Augmentation
|
Luminance Augmentation
|
Tailoring
Character Creation
β’
New Player Guide
β’
User Interface
β’
Glossary
Editing
Help:How To Use Tables
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!
{{Related|Help:Contents{{!}}Main Help|wikipedia:Help:Table{{!}}Wikipedia Tables}} __TOC__ == A Simple Example == === Basic Table Wiki Markup === === Wikitable Class === The "wikitable" class provides a nice looking table without having to remember or specify all the details each time you create a table. This is because the wikitable class in [[MediaWiki:Common.css]] contains a number of table.wikitable CSS style rules. These are all applied at once when you mark a table with this class. You can then add additional style rules if desired. These override the class's rules, allowing you to use the class style as a base and build up on it. {|cellpadding=20 |-valign=top |'''Code:'''<br> <pre style="width:160px"> {|class="wikitable" !A !B |- |100 |200 |} </pre> |'''Result:'''<br> {|class="wikitable" !A !B |- |100 |200 |} |} == Colors == == Cell Borders == == Alignment == == Sorting == Tables can be made sortable by adding <code>class="sortable"</code>. For more details see [[wikipedia:Help:Sorting|Help:Sorting]]. If the table already has a class qualifier add sortable separated by a space, for example <code>class="wikitable sortable"</code>. {|cellpadding=20 |-valign=top |'''Code:'''<br> <pre style="width:240px"> {|class="wikitable sortable" !A !!B !!C |- |500 ||200 ||Cat |- |300 ||400 ||Aardvark |- |100 ||50 ||Yak |- |} </pre> |'''Result:'''<br> {|class="wikitable sortable" !A !!B !!C |- |500 ||200 ||Cat |- |300 ||400 ||Aardvark |- |100 ||50 ||Yak |- |} |} == Captions == == Nested Tables == == Colspan and Rowspan == == Frames == This example demonstrates how to use the "frame" attribute to control the borders around a table. The thickness of the lines can be specified using "border" and the width in pixels. The frame feature is only supported in modern browsers. The first nine examples change only the frame parameter, the last three also change the border: <pre style="width:160px; align=center"> {|frame="??" !A !B |- |100 |200 |} </pre> {|cellpadding=20 |-align=center |frame="border"<br><br> {|frame="border" !A !B |- |100 |200 |} |frame="above"<br><br> {|frame="above" !A !B |- |100 |200 |} |frame="below"<br><br> {|frame="below" !A !B |- |100 |200 |} |-align=center |frame="hsides"<br><br> {|frame="hsides" !A !B |- |100 |200 |} |frame="vsides"<br><br> {|frame="vsides" !A !B |- |100 |200 |} |frame="lhs"<br><br> {|frame="lhs" !A !B |- |100 |200 |} |-align=center |frame="rhs"<br><br> {|frame="rhs" !A !B |- |100 |200 |} |frame="box"<br><br> {|frame="box" !A !B |- |100 |200 |} |frame="void"<br><br> {|frame="void" !A !B |- |100 |200 |} |-align=center |frame="border" border="3"<br><br> {|frame="border" border="3" !A !B |- |100 |200 |} |frame="hsides" border="2"<br><br> {|frame="hsides" border="2" !A !B |- |100 |200 |} |frame="vsides" border="3"<br><br> {|frame="vsides" border="3" !A !B |- |100 |200 |} |} == Decimal Point Alignment == [[Category:Help]] [[Category:In Progress]]
Summary:
Please note that all contributions to Sundering 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
Sundering:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
If you're new to the wiki, please take a moment to review our
Naming Conventions
and
Page Templates
. Using proper article names and image formats/sizes keep the wiki clean and helps avoid duplicate entries. Thanks!
Template used on this page:
Template:Related
(
edit
)