
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 1: | Line 1: | ||
=== Source mode toolbar === |
|||
[[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.]] | |||
[[File:Toolbar2.PNG|frame|none|Monobook toolbar. Table icon [[File:Button insert table.png]]is on the right end.]] | |||
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. |
|||
{| class=”wikitable” |
{| class=”wikitable” |
||
|+ Caption text |
|||
|AL |
|||
|18.6 |
|||
|- |
|- |
||
! Header text !! Header text !! Header text |
|||
| With |
|||
|33.3 |
|||
|- |
|- |
||
| Example || Example || Example |
|||
| |
|||
|50.0 |
|||
|- |
|- |
||
| Example || Example || Example |
|||
|AR |
|||
|23.0 |
|||
|- |
|- |
||
| Example || Example || Example |
|||
|CA |
|||
|} |
|||
|41.7 |
|||
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. |
|||
”’Wikitext”’ |
|||
{| class=”wikitable” |
|||
|+ Caption text |
|||
|- |
|- |
||
! Header A !! Header B !! Header C |
|||
|CO |
|||
|49.0 |
|||
|- |
|- |
||
| row 1 A || row 1 B || row 1 C |
|||
|CT |
|||
|37.4 |
|||
|- |
|- |
||
| row 2 A || row 2 B || row 2 C |
|||
|DC |
|||
|38.5 |
|||
|- |
|- |
||
| row 3 A || row 3 B || row 3 C |
|||
| |
|||
|} |
|||
|37.1 |
|||
”’Produces:”’ |
|||
{| class=”wikitable” |
|||
|+ Caption text |
|||
|- |
|- |
||
! Header A !! Header B !! Header C |
|||
|FL |
|||
|41.3 |
|||
|- |
|- |
||
| row 1 A || row 1 B || row 1 C |
|||
|GA |
|||
|34.7 |
|||
|- |
|- |
||
| row 2 A || row 2 B || row 2 C |
|||
|HI |
|||
|36.8 |
|||
|- |
|- |
||
| row 3 A || row 3 B || row 3 C |
|||
|ID |
|||
|29.5 |
|||
|- |
|||
|IL |
|||
|42.9 |
|||
|- |
|||
|IN |
|||
|27.3 |
|||
|- |
|||
|IA |
|||
|28.7 |
|||
|- |
|||
|KS |
|||
|32.7 |
|||
|- |
|||
|KY |
|||
|31.2 |
|||
|- |
|||
| La |
|||
|23.6 |
|||
|- |
|||
|ME |
|||
|42.5 |
|||
|- |
|||
|MD |
|||
|42.0 |
|||
|- |
|||
|MA |
|||
|30.0 |
|||
|- |
|||
|MI |
|||
|39.9 |
|||
|- |
|||
|MN |
|||
|36.3 |
|||
|- |
|||
|MS |
|||
|15.5 |
|||
|- |
|||
|MO |
|||
|27.9 |
|||
|- |
|||
|MT |
|||
|31.3 |
|||
|- |
|||
| It’s |
|||
|36.7 |
|||
|- |
|||
|NV |
|||
|60.3 |
|||
|- |
|||
|NH |
|||
|37.5 |
|||
|- |
|||
|NJ |
|||
|34.2 |
|||
|- |
|||
|NM |
|||
|43.8 |
|||
|- |
|||
| The |
|||
|34.3 |
|||
|- |
|||
|NC |
|||
|30.0 |
|||
|- |
|||
|ND |
|||
|27.0 |
|||
|- |
|||
|OH |
|||
|28.8 |
|||
|- |
|||
|OK |
|||
|19.5 |
|||
|- |
|||
|OR |
|||
|40.0 |
|||
|- |
|||
|PA |
|||
|31.6 |
|||
|- |
|||
|RI |
|||
|42.5 |
|||
|- |
|||
|SC |
|||
|15.9 |
|||
|- |
|||
|SD |
|||
|27.6 |
|||
|- |
|||
|TN |
|||
|15.2 |
|||
|- |
|||
|TX |
|||
|30.9 |
|||
|- |
|||
|UT |
|||
|26.9 |
|||
|- |
|||
|VT |
|||
|45.0 |
|||
|- |
|||
|VA |
|||
|35.0 |
|||
|- |
|||
| Wa |
|||
|44.9 |
|||
|- |
|||
|WV |
|||
|11.9 |
|||
|- |
|||
|WI |
|||
|29.5 |
|||
|- |
|||
|WY |
|||
|21.5 |
|||
|} |
|} |
||
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}}. |
|||
AL 18.6 |
|||
And 33.3 |
|||
50.0 |
|||
AR 23.0 |
|||
CA 41.7 |
|||
CO 49.0 |
|||
CT 37.4 |
|||
DC 38.5 |
|||
Of 37.1 |
|||
FL 41.3 |
|||
GA 34.7 |
|||
HI 36.8 |
|||
ID 29.5 |
|||
IL 42.9 |
|||
IN 27.3 |
|||
IA 28.7 |
|||
KS 32.7 |
|||
KY 31.2 |
|||
23.6 |
|||
ME 42.5 |
|||
MD 42.0 |
|||
MA 30.0 |
|||
MI 39.9 |
|||
MN 36.3 |
|||
MS 15.5 |
|||
MO 27.9 |
|||
MT 31.3 |
|||
Is 36.7 |
|||
NV 60.3 |
|||
NH 37.5 |
|||
NJ 34.2 |
|||
NM 43.8 |
|||
The 34.3 |
|||
NC 30.0 |
|||
ND 27.0 |
|||
OH 28.8 |
|||
OK 19.5 |
|||
OR 40.0 |
|||
PA 31.6 |
|||
RI 42.5 |
|||
SC 15.9 |
|||
SD 27.6 |
|||
TN 15.2 |
|||
TX 30.9 |
|||
UT 26.9 |
|||
VT 45.0 |
|||
VA 35.0 |
|||
Of 44.9 |
|||
WV 11.9 |
|||
WI 29.5 |
|||
WY 21.5 |
|||
Latest revision as of 15:55, 7 February 2025
Source mode toolbar
[edit]



To automatically insert a table, click or
(Insert a table) on the edit toolbar. In the Vector toolbar the table icon is in the “Advanced” menu.
The following wikitext is inserted when Insert a table is clicked.
{| class="wikitable"
|+ Caption text
|-
! Header text !! Header text !! Header text
|-
| Example || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
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.
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
|}
Produces:
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 |
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 § Colspan and rowspan.