Editing
Help:Tables
(section)
From FileZilla Wiki
Jump to navigation
Jump to 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 affect 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 FileZilla Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
FileZilla Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Help page
Discussion
Read
Edit
History
Page actions
Help page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main Page
Community portal
Recent changes
Random page
Help
Search
Tools
What links here
Related changes
Special pages
Page information