Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Table
(section)
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!
=== Row headers === Note that with row headers you need to use a separate row in the wikitext for the row header cell. Here below is what a table looks like if the data cell wikitext is on the same line as the row header wikitext. Note that the data cell text is bolded, and the data cell backgrounds are the same shade of gray as the column and row headers. <div class="box"> '''Wikitext''' <syntaxhighlight lang="wikitext" highlight=5,7> {| class=wikitable |+ The table's caption ! Column 1 !!Column 2 !!Column 3 |- ! Row header 1 || Cell 2 || Cell 3 |- ! Row header A || Cell B || Cell C |} </syntaxhighlight></div> <div class="box"> '''Produces''' {| class=wikitable |+ The table's caption ! Column 1 !!Column 2 !!Column 3 |- ! Row header 1 || Cell 2 || Cell 3 |- ! Row header A || Cell B || Cell C |} </div> Here is the table with a '''separate wikitext row for each row header cell.''' The data cells have plain unbolded text, and a lighter background. <div class="box"> '''Wikitext''' <syntaxhighlight lang="wikitext" highlight=5,8> {| class=wikitable |+ The table's caption ! Column 1 !!Column 2 !!Column 3 |- ! Row header 1 | Cell 2 || Cell 3 |- ! Row header A | Cell B || Cell C |} </syntaxhighlight></div> <div class="box"> '''Produces''' {| class=wikitable |+ The table's caption ! Column 1 !!Column 2 !!Column 3 |- ! Row header 1 | Cell 2 || Cell 3 |- ! Row header A | Cell B || Cell C |} </div>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)