Jump to content

Help:Introduction to tables with Wiki Markup/1: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Evolution and evolvability moved page Help:Introduction to tables/1 to Help:Introduction to tables with Wiki Markup/1: "introduction to" tutorials with longer, more searcheable names
m invert icon in dark mode
 
(40 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{intro to|
{{Table help}}
<noinclude>{{pp-protected|small=yes}}{{pp-move-indef}}</noinclude>{{intro to|{{Shortcut|Help:Wikitable}}
[[File:WikiEditor-advanced menu-en table.png|Enhanced editing toolbar with table button highlighted|frameless|border|center|480px]]


'''[[help:Tables|Tables]]''' are a common way of displaying data. This tutorial provides a guide to making new tables and editing existing ones. For guidelines on when and how to use tables, see the [[Wikipedia:Manual of Style/Tables|Manual&nbsp;of&nbsp;Style]].
[[File:Advanced toolbar of vector skin.png|Enhanced editing toolbar|frameless|border|center|480px]]


The easiest way to insert a new table is to use the editing toolbar that appears when you edit a page (see image above). Clicking the [[File:OOjs UI icon table.svg|20px|class=skin-invert|link=|alt=Table icon]] button will open a dialog where you define what you want in your new table. Once you've chosen the number of rows and columns, the wiki markup text for the table is inserted into the article. Then you can replace the "Example" text with the data you want to be displayed.
'''[[help:Tables|Tables]]''' are a commonly used way of displaying information, particularly in articles that contain data. This tutorial aims at providing a guide on how to make tables; if you are looking for the policy on when to use them, see the [[Wikipedia:Manual of Style/Tables|Manual&nbsp;of&nbsp;Style]].


Tables in Wikipedia, particularly large ones, can look intimidating to edit, but the way they work is simple.

}}<noinclude>
The simplest way to insert a table is with the editing toolbar that appears when you edit a page. Pressing the [[File:Vector toolbar insert table button.png|25px|link=]] button will open a dialog that allows you to define a table. Once you've chosen the number of rows and columns, the markup text for the table is inserted into the article.

<pre style="overflow: auto;width:auto">
{| class="wikitable"
|-
! Header C1 !! Header C2 !! Header C3
|-
| R1C1 || R1C2 || R1C3
|-
| R2C1 || R2C2 || R2C3
|-
| R3C1 || R3C2 || R3C3
|}
</pre>

Which looks like:
{{/table 1}}


All you have to do is place this where you want it in the article, edit it to match the information you're trying to display, and hit save. You can add more headers by adding more entries in the header section, more rows, or remove headers or rows if you're looking for a smaller table.

}}
[[Category:Wikipedia tables]]
[[Category:Wikipedia tables]]
</noinclude>

Latest revision as of 23:24, 21 June 2024

Editing tables
The basics

Expanding tables
Adding rows and columns

Summary
Review of what you've learned



Enhanced editing toolbar with table button highlighted
Enhanced editing toolbar with table button highlighted

Tables are a common way of displaying data. This tutorial provides a guide to making new tables and editing existing ones. For guidelines on when and how to use tables, see the Manual of Style.

The easiest way to insert a new table is to use the editing toolbar that appears when you edit a page (see image above). Clicking the Table icon button will open a dialog where you define what you want in your new table. Once you've chosen the number of rows and columns, the wiki markup text for the table is inserted into the article. Then you can replace the "Example" text with the data you want to be displayed.

Tables in Wikipedia, particularly large ones, can look intimidating to edit, but the way they work is simple.