Skip to content
Aa
Reading appearance
Browse
Browse the wiki
Books
Characters
Houses
Places
History
Culture
More topics
Images
Television
Chapters
Timeline
Random Article
Community
Community Portal
Recent Changes
Our Sites
Westeros
Forum of Ice and Fire
Blood of Dragons MUSH
Login
Talk
Interact
Interact
Edit source
View history
More page tools
What links here
Related changes
Page information
Special pages
Editing
Help
:
Tables
(section)
Jump to:
navigation
,
search
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!
==Simple table== ===Plain=== The following table lacks borders and good spacing but shows the simplest wiki markup table structure {| width="100%" |width="50%"| {| |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |} ===Alternative=== For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table. Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not effect the actual table rendering. HTML attributes can be added to this table following the examples in other tables on this page but have been left out of the following example for simplicity. {| width="100%" |width="50%"| {| | Orange || Apple || more |- | Bread || Pie || more |- | Butter || Ice cream || and more |} |width="50%"| <pre> {| | Orange || Apple || more |- | Bread || Pie || more |- | Butter || Ice cream || and more |} </pre> |} ===With HTML attributes=== You can add HTML attributes to make your table look better ====border="1"==== {| width="100%" |width="50%"| {| border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |} ====align="center" border="1"==== {| width="100%" |width="50%"| {| align="center" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| align="center" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |} ====align="right" border="1"==== You can put attributes on individual '''cells.''' Numbers for example may look better aligned right {| width="100%" |width="50%"| {| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- |Butter |Ice cream |align="right"|1.00 |} |width="50%"| <pre> {| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- |Butter |Ice cream |align="right"|1.00 |} </pre> |} You can put attributes on individual '''rows,''' too. {| width="100%" |width="50%"| {| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- style="font-style:italic;color:green;" |Butter |Ice cream |align="right"|1.00 |} |width="50%"| <pre> {| border="1" |Orange |Apple |align="right"|12,333.00 |- |Bread |Pie |align="right"|500.00 |- style="font-style:italic;color:green;" |Butter |Ice cream |align="right"|1.00 |} </pre> |} ====cellspacing="0" border="1"==== {| width="100%" |width="50%"| {| cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |} ====cellpadding="20" cellspacing="0" border="1"==== {| width="100%" |width="50%"| {| cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |} ===With HTML attributes and CSS styles=== CSS style attributes can be added with or without other HTML attributes ====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"==== {| width="100%" |width="50%"| {| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} |width="50%"| <pre> {| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1" |Orange |Apple |- |Bread |Pie |- |Butter |Ice cream |} </pre> |}
Summary:
Please note that all contributions to A Wiki of Ice and Fire 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
A Wiki of Ice and Fire:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)