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!
== Tools == === Source mode toolbar === <div class=grid> [[File:WikiEditor-advanced menu-en table.png|frame|none|Vector toolbar β default. Table icon [[File:Vector toolbar insert table button new.png|25px]] is circled.]] </div> <div class=grid> [[File:Toolbar2.PNG|frame|none|Monobook toolbar. Table icon [[File:Button insert table.png]] is on the right end.]] </div> To automatically insert a table, click [[File:Vector toolbar insert table button new.png|25px]] or [[File:Button insert table.png]] (Insert a table) on the [[Help:Edit toolbar|edit toolbar]]. In the Vector toolbar the table icon is in the "Advanced" menu. The following wikitext is inserted when '''Insert a table''' [[File:Vector toolbar insert table button new.png|25px]] is clicked. <syntaxhighlight lang=wikitext class=gridbox> {| class="wikitable" |+ Caption text |- ! Header text !! Header text !! Header text |- | Example || Example || Example |- | Example || Example || Example |- | Example || Example || Example |} </syntaxhighlight> The sample text ("Header text" or "Example") is intended to be replaced with actual data. Row numbers (1-3) and column letters (A-C) have been substituted below to help visualization. <div class="box"> '''Wikitext''' <syntaxhighlight lang=wikitext> {| class="wikitable" |+ Caption text |- ! Header A !! Header B !! Header C |- | row 1 A || row 1 B || row 1 C |- | row 2 A || row 2 B || row 2 C |- | row 3 A || row 3 B || row 3 C |} </syntaxhighlight> </div> <div class="box"> '''Produces:''' {| class="wikitable" |+ Caption text |- ! Header A !! Header B !! Header C |- | row 1 A || row 1 B || row 1 C |- | row 2 A || row 2 B || row 2 C |- | row 3 A || row 3 B || row 3 C |} </div> You can fill in the table while in source mode. Or use the visual editor (VE). To create more complex table structures in source mode with cells that span multiple rows or columns, see {{slink||Colspan and rowspan}}. === Visual editor === {{hatnote|See: [[Help:Tables and VisualEditor]]. And: [[Help:Creating tables#Tables and visual editor]].}} With the [[Wikipedia:Visual Editor|visual editor]] (VE) you directly fill in the cells without having to go through wikitext. VE makes it easy to add or delete rows or columns. In VE this is what shows up when clicking the table icon (in the "Insert" menu): {| class="wikitable" |+ ! ! ! ! |- | | | | |- | | | | |- | | | | |} For more complex table structures, Visual editor offers cell-merging operations; see details [[Help:Introduction to tables with VisualEditor/2|here]]. In addition, it is usually possible to add or import a table that exists elsewhere (e.g., in a spreadsheet, on another website) directly into the visual editor by: * dragging and dropping a [[.csv]] file into the visual editor, or * selecting, copying, and pasting the table into the visual editor. === Using other tools === {{See also|Help:Creating tables#Spreadsheet/database tables to wikitables|Wikipedia:Tools#Importing (converting) content to Wikipedia (MediaWiki) format|label 1=Help:Creating tables Β§ Spreadsheet/database tables to wikitables|label 2=Wikipedia:Tools Β§ Importing (converting) content to Wikipedia (MediaWiki) format}} Other tools, such as those used to create wiki tables from Excel, can be used to create wikitable markup from spreadsheet and database tables. See [[Help:Table#External links|Β§ External links]] for a list of some.
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)