This site is supported by donations to The OEIS Foundation.
Template:Table/doc
From OeisWiki
The {{Table}} template creates a wiki table without needing to input all the required wikicode (in particular the |- row divisions).
Contents
Usage
All parameters except rows
(at least one row) are optional.
{{Table | class = | align = | border = | cellspacing = | cellpadding = | style = | title = | titlestyle = | cell sep = | hdrs = | hdrsstyle = | valign = | rows = first column cell's contents <cell sep> second column cell's contents <cell sep> ... <cell sep> last column cell's contents <cell sep><cell sep> (mandatory 1st row) first column cell's contents <cell sep> second column cell's contents <cell sep> ... <cell sep> last column cell's contents <cell sep><cell sep> (optional 2nd row) ... first column cell's contents <cell sep> second column cell's contents <cell sep> ... <cell sep> last column cell's contents <cell sep><cell sep> (optional 100th row) }}
where:
-
class
: (comma separated) table classes (default iswikitable sortable
), useinvisible
to get automatically getborder: none; background: transparent;
as part of the table style; -
align
: alignment of table within the page (left
,center
, orright
) (default iscenter
); -
border
: table border (default is1px
); -
cellspacing
: spacing between cells (default is0px
); -
cellpadding
: padding within cells (default is4px
); -
style
: table style (start with+
for modifying, instead of replacing, the default style)
- (default is
margin-top: -3.5ex; vertical-align: middle; border-collapse: collapse; border: 1px solid darkgray; background: #f9f9f9; color: black; empty-cells: show; text-align: left;
);
-
title
: table title (optional); -
titlestyle
: style for title; -
cell sep
: cell separator<cell sep>
(default is;
) (use two consecutive<cell sep><cell sep>
as row separator); -
hdrs
: first column header<cell sep>
second column header<cell sep>
... (optional); -
hdrsstyle
: style for column headers (start with+
for modifying, instead of replacing, the defaulthdrsstyle
) (default isbackground: #f2f2f2; color: black; text-align: center;
); -
valign
: vertical alignment within table cells (top
,middle
, orbottom
) (default istop
); -
rows
: 1 to 100 rows (at least one row) separated with<cell sep><cell sep>
(two consecutive<cell sep>
).
Examples
Examples with valid input
Example 0
{{Table | class = invisible | style = margin-left: 2em; border: none; background: transparent; | rows = 2001 ; March ; Started research ;; 2002 ; January ; Published findings ;; }}
gives (a table without borders, with transparent background)
2001 | March | Started research |
2002 | January | Published findings |
Example 1
{{Table | class = wikitable | style = + margin-left: 2em; | rows = 2001 ; March ; Started research ;; 2002 ; January ; Published findings ;; }}
gives
2001 | March | Started research |
2002 | January | Published findings |
Example 2
{{Table | style = + margin-left: 2em; | hdrs = Year ; Month ; Comments | rows = 2001 ; March ; Started research ;; 2002 ; January ; Published findings ;; }}
gives
Year | Month | Comments |
---|---|---|
2001 | March | Started research |
2002 | January | Published findings |
Example 3
{{Table | class = wikitable | title = Example 3 | style = + margin-left: 2em; | hdrs = Year ; Month ; Comments | rows = 2001 ; March ; Started research ;; 2002 ; January ; Published findings ;; }}
gives
Year | Month | Comments |
---|---|---|
2001 | March | Started research |
2002 | January | Published findings |
Example 4
{{Table | class = wikitable | style = + margin-left: 2em; width: 300px; text-align: right; {{math/font}} | title = Table of powers | titlestyle = {{text/font}} | cell_sep = , | hdrsstyle = | hdrs = ''n'', ''n''{{^|2}}, ''n''{{^|3}}, ''n''{{^|4}}, ''n''{{^|5}} | rows = 1, {{expr| 1^2 }}, {{expr| 1^3 }}, {{expr| 1^4 }}, {{expr| 1^5 }},, 2, {{expr| 2^2 }}, {{expr| 2^3 }}, {{expr| 2^4 }}, {{expr| 2^5 }},, 3, {{expr| 3^2 }}, {{expr| 3^3 }}, {{expr| 3^4 }}, {{expr| 3^5 }},, 4, {{expr| 4^2 }}, {{expr| 4^3 }}, {{expr| 4^4 }}, {{expr| 4^5 }},, 5, {{expr| 5^2 }}, {{expr| 5^3 }}, {{expr| 5^4 }}, {{expr| 5^5 }},, }}
gives
n | n 2 | n 3 | n 4 | n 5 |
---|---|---|---|---|
1 | 1 | 1 | 1 | 1 |
2 | 4 | 8 | 16 | 32 |
3 | 9 | 27 | 81 | 243 |
4 | 16 | 64 | 256 | 1024 |
5 | 25 | 125 | 625 | 3125 |
Example 5 (100 rows)
{{Table | class = wikitable | style = + margin-left: 2em; width: 300px; text-align: right; {{math/font}} | title = Table of previous oblong,{{nl}}square and{{nl}}next oblong numbers | titlestyle = {{text/font}} | cell_sep = , | hdrsstyle = | hdrs = ''n'', (''n'' − 1) ''n'', ''n''{{^|2}}, ''n'' (''n'' + 1) | rows = 0, {{expr| (<<<1>>> - 1) * <<<1>>> | 0}}, {{expr| <<<1>>>^2 | 0}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 0}},, 1, {{expr| (<<<1>>> - 1) * <<<1>>> | 1}}, {{expr| <<<1>>>^2 | 1}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 1}},, 2, {{expr| (<<<1>>> - 1) * <<<1>>> | 2}}, {{expr| <<<1>>>^2 | 2}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 2}},, 3, {{expr| (<<<1>>> - 1) * <<<1>>> | 3}}, {{expr| <<<1>>>^2 | 3}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 3}},, 4, {{expr| (<<<1>>> - 1) * <<<1>>> | 4}}, {{expr| <<<1>>>^2 | 4}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 4}},, 5, {{expr| (<<<1>>> - 1) * <<<1>>> | 5}}, {{expr| <<<1>>>^2 | 5}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 5}},, 6, {{expr| (<<<1>>> - 1) * <<<1>>> | 6}}, {{expr| <<<1>>>^2 | 6}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 6}},, 7, {{expr| (<<<1>>> - 1) * <<<1>>> | 7}}, {{expr| <<<1>>>^2 | 7}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 7}},, 8, {{expr| (<<<1>>> - 1) * <<<1>>> | 8}}, {{expr| <<<1>>>^2 | 8}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 8}},, 9, {{expr| (<<<1>>> - 1) * <<<1>>> | 9}}, {{expr| <<<1>>>^2 | 9}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 9}},, 10, {{expr| (<<<1>>> - 1) * <<<1>>> | 10}}, {{expr| <<<1>>>^2 | 10}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 10}},, 11, {{expr| (<<<1>>> - 1) * <<<1>>> | 11}}, {{expr| <<<1>>>^2 | 11}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 11}},, 12, {{expr| (<<<1>>> - 1) * <<<1>>> | 12}}, {{expr| <<<1>>>^2 | 12}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 12}},, 13, {{expr| (<<<1>>> - 1) * <<<1>>> | 13}}, {{expr| <<<1>>>^2 | 13}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 13}},, 14, {{expr| (<<<1>>> - 1) * <<<1>>> | 14}}, {{expr| <<<1>>>^2 | 14}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 14}},, 15, {{expr| (<<<1>>> - 1) * <<<1>>> | 15}}, {{expr| <<<1>>>^2 | 15}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 15}},, 16, {{expr| (<<<1>>> - 1) * <<<1>>> | 16}}, {{expr| <<<1>>>^2 | 16}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 16}},, 17, {{expr| (<<<1>>> - 1) * <<<1>>> | 17}}, {{expr| <<<1>>>^2 | 17}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 17}},, 18, {{expr| (<<<1>>> - 1) * <<<1>>> | 18}}, {{expr| <<<1>>>^2 | 18}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 18}},, 19, {{expr| (<<<1>>> - 1) * <<<1>>> | 19}}, {{expr| <<<1>>>^2 | 19}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 19}},, 20, {{expr| (<<<1>>> - 1) * <<<1>>> | 20}}, {{expr| <<<1>>>^2 | 20}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 20}},, 21, {{expr| (<<<1>>> - 1) * <<<1>>> | 21}}, {{expr| <<<1>>>^2 | 21}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 21}},, 22, {{expr| (<<<1>>> - 1) * <<<1>>> | 22}}, {{expr| <<<1>>>^2 | 22}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 22}},, 23, {{expr| (<<<1>>> - 1) * <<<1>>> | 23}}, {{expr| <<<1>>>^2 | 23}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 23}},, 24, {{expr| (<<<1>>> - 1) * <<<1>>> | 24}}, {{expr| <<<1>>>^2 | 24}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 24}},, 25, {{expr| (<<<1>>> - 1) * <<<1>>> | 25}}, {{expr| <<<1>>>^2 | 25}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 25}},, 26, {{expr| (<<<1>>> - 1) * <<<1>>> | 26}}, {{expr| <<<1>>>^2 | 26}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 26}},, 27, {{expr| (<<<1>>> - 1) * <<<1>>> | 27}}, {{expr| <<<1>>>^2 | 27}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 27}},, 28, {{expr| (<<<1>>> - 1) * <<<1>>> | 28}}, {{expr| <<<1>>>^2 | 28}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 28}},, 29, {{expr| (<<<1>>> - 1) * <<<1>>> | 29}}, {{expr| <<<1>>>^2 | 29}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 29}},, 30, {{expr| (<<<1>>> - 1) * <<<1>>> | 30}}, {{expr| <<<1>>>^2 | 30}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 30}},, 31, {{expr| (<<<1>>> - 1) * <<<1>>> | 31}}, {{expr| <<<1>>>^2 | 31}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 31}},, 32, {{expr| (<<<1>>> - 1) * <<<1>>> | 32}}, {{expr| <<<1>>>^2 | 32}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 32}},, 33, {{expr| (<<<1>>> - 1) * <<<1>>> | 33}}, {{expr| <<<1>>>^2 | 33}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 33}},, 34, {{expr| (<<<1>>> - 1) * <<<1>>> | 34}}, {{expr| <<<1>>>^2 | 34}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 34}},, 35, {{expr| (<<<1>>> - 1) * <<<1>>> | 35}}, {{expr| <<<1>>>^2 | 35}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 35}},, 36, {{expr| (<<<1>>> - 1) * <<<1>>> | 36}}, {{expr| <<<1>>>^2 | 36}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 36}},, 37, {{expr| (<<<1>>> - 1) * <<<1>>> | 37}}, {{expr| <<<1>>>^2 | 37}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 37}},, 38, {{expr| (<<<1>>> - 1) * <<<1>>> | 38}}, {{expr| <<<1>>>^2 | 38}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 38}},, 39, {{expr| (<<<1>>> - 1) * <<<1>>> | 39}}, {{expr| <<<1>>>^2 | 39}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 39}},, 40, {{expr| (<<<1>>> - 1) * <<<1>>> | 40}}, {{expr| <<<1>>>^2 | 40}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 40}},, 41, {{expr| (<<<1>>> - 1) * <<<1>>> | 41}}, {{expr| <<<1>>>^2 | 41}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 41}},, 42, {{expr| (<<<1>>> - 1) * <<<1>>> | 42}}, {{expr| <<<1>>>^2 | 42}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 42}},, 43, {{expr| (<<<1>>> - 1) * <<<1>>> | 43}}, {{expr| <<<1>>>^2 | 43}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 43}},, 44, {{expr| (<<<1>>> - 1) * <<<1>>> | 44}}, {{expr| <<<1>>>^2 | 44}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 44}},, 45, {{expr| (<<<1>>> - 1) * <<<1>>> | 45}}, {{expr| <<<1>>>^2 | 45}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 45}},, 46, {{expr| (<<<1>>> - 1) * <<<1>>> | 46}}, {{expr| <<<1>>>^2 | 46}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 46}},, 47, {{expr| (<<<1>>> - 1) * <<<1>>> | 47}}, {{expr| <<<1>>>^2 | 47}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 47}},, 48, {{expr| (<<<1>>> - 1) * <<<1>>> | 48}}, {{expr| <<<1>>>^2 | 48}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 48}},, 49, {{expr| (<<<1>>> - 1) * <<<1>>> | 49}}, {{expr| <<<1>>>^2 | 49}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 49}},, 50, {{expr| (<<<1>>> - 1) * <<<1>>> | 50}}, {{expr| <<<1>>>^2 | 50}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 50}},, 51, {{expr| (<<<1>>> - 1) * <<<1>>> | 51}}, {{expr| <<<1>>>^2 | 51}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 51}},, 52, {{expr| (<<<1>>> - 1) * <<<1>>> | 52}}, {{expr| <<<1>>>^2 | 52}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 52}},, 53, {{expr| (<<<1>>> - 1) * <<<1>>> | 53}}, {{expr| <<<1>>>^2 | 53}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 53}},, 54, {{expr| (<<<1>>> - 1) * <<<1>>> | 54}}, {{expr| <<<1>>>^2 | 54}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 54}},, 55, {{expr| (<<<1>>> - 1) * <<<1>>> | 55}}, {{expr| <<<1>>>^2 | 55}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 55}},, 56, {{expr| (<<<1>>> - 1) * <<<1>>> | 56}}, {{expr| <<<1>>>^2 | 56}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 56}},, 57, {{expr| (<<<1>>> - 1) * <<<1>>> | 57}}, {{expr| <<<1>>>^2 | 57}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 57}},, 58, {{expr| (<<<1>>> - 1) * <<<1>>> | 58}}, {{expr| <<<1>>>^2 | 58}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 58}},, 59, {{expr| (<<<1>>> - 1) * <<<1>>> | 59}}, {{expr| <<<1>>>^2 | 59}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 59}},, 60, {{expr| (<<<1>>> - 1) * <<<1>>> | 60}}, {{expr| <<<1>>>^2 | 60}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 60}},, 61, {{expr| (<<<1>>> - 1) * <<<1>>> | 61}}, {{expr| <<<1>>>^2 | 61}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 61}},, 62, {{expr| (<<<1>>> - 1) * <<<1>>> | 62}}, {{expr| <<<1>>>^2 | 62}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 62}},, 63, {{expr| (<<<1>>> - 1) * <<<1>>> | 63}}, {{expr| <<<1>>>^2 | 63}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 63}},, 64, {{expr| (<<<1>>> - 1) * <<<1>>> | 64}}, {{expr| <<<1>>>^2 | 64}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 64}},, 65, {{expr| (<<<1>>> - 1) * <<<1>>> | 65}}, {{expr| <<<1>>>^2 | 65}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 65}},, 66, {{expr| (<<<1>>> - 1) * <<<1>>> | 66}}, {{expr| <<<1>>>^2 | 66}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 66}},, 67, {{expr| (<<<1>>> - 1) * <<<1>>> | 67}}, {{expr| <<<1>>>^2 | 67}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 67}},, 68, {{expr| (<<<1>>> - 1) * <<<1>>> | 68}}, {{expr| <<<1>>>^2 | 68}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 68}},, 69, {{expr| (<<<1>>> - 1) * <<<1>>> | 69}}, {{expr| <<<1>>>^2 | 69}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 69}},, 70, {{expr| (<<<1>>> - 1) * <<<1>>> | 70}}, {{expr| <<<1>>>^2 | 70}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 70}},, 71, {{expr| (<<<1>>> - 1) * <<<1>>> | 71}}, {{expr| <<<1>>>^2 | 71}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 71}},, 72, {{expr| (<<<1>>> - 1) * <<<1>>> | 72}}, {{expr| <<<1>>>^2 | 72}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 72}},, 73, {{expr| (<<<1>>> - 1) * <<<1>>> | 73}}, {{expr| <<<1>>>^2 | 73}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 73}},, 74, {{expr| (<<<1>>> - 1) * <<<1>>> | 74}}, {{expr| <<<1>>>^2 | 74}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 74}},, 75, {{expr| (<<<1>>> - 1) * <<<1>>> | 75}}, {{expr| <<<1>>>^2 | 75}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 75}},, 76, {{expr| (<<<1>>> - 1) * <<<1>>> | 76}}, {{expr| <<<1>>>^2 | 76}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 76}},, 77, {{expr| (<<<1>>> - 1) * <<<1>>> | 77}}, {{expr| <<<1>>>^2 | 77}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 77}},, 78, {{expr| (<<<1>>> - 1) * <<<1>>> | 78}}, {{expr| <<<1>>>^2 | 78}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 78}},, 79, {{expr| (<<<1>>> - 1) * <<<1>>> | 79}}, {{expr| <<<1>>>^2 | 79}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 79}},, 80, {{expr| (<<<1>>> - 1) * <<<1>>> | 80}}, {{expr| <<<1>>>^2 | 80}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 80}},, 81, {{expr| (<<<1>>> - 1) * <<<1>>> | 81}}, {{expr| <<<1>>>^2 | 81}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 81}},, 82, {{expr| (<<<1>>> - 1) * <<<1>>> | 82}}, {{expr| <<<1>>>^2 | 82}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 82}},, 83, {{expr| (<<<1>>> - 1) * <<<1>>> | 83}}, {{expr| <<<1>>>^2 | 83}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 83}},, 84, {{expr| (<<<1>>> - 1) * <<<1>>> | 84}}, {{expr| <<<1>>>^2 | 84}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 84}},, 85, {{expr| (<<<1>>> - 1) * <<<1>>> | 85}}, {{expr| <<<1>>>^2 | 85}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 85}},, 86, {{expr| (<<<1>>> - 1) * <<<1>>> | 86}}, {{expr| <<<1>>>^2 | 86}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 86}},, 87, {{expr| (<<<1>>> - 1) * <<<1>>> | 87}}, {{expr| <<<1>>>^2 | 87}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 87}},, 88, {{expr| (<<<1>>> - 1) * <<<1>>> | 88}}, {{expr| <<<1>>>^2 | 88}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 88}},, 89, {{expr| (<<<1>>> - 1) * <<<1>>> | 89}}, {{expr| <<<1>>>^2 | 89}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 89}},, 90, {{expr| (<<<1>>> - 1) * <<<1>>> | 90}}, {{expr| <<<1>>>^2 | 90}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 90}},, 91, {{expr| (<<<1>>> - 1) * <<<1>>> | 91}}, {{expr| <<<1>>>^2 | 91}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 91}},, 92, {{expr| (<<<1>>> - 1) * <<<1>>> | 92}}, {{expr| <<<1>>>^2 | 92}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 92}},, 93, {{expr| (<<<1>>> - 1) * <<<1>>> | 93}}, {{expr| <<<1>>>^2 | 93}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 93}},, 94, {{expr| (<<<1>>> - 1) * <<<1>>> | 94}}, {{expr| <<<1>>>^2 | 94}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 94}},, 95, {{expr| (<<<1>>> - 1) * <<<1>>> | 95}}, {{expr| <<<1>>>^2 | 95}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 95}},, 96, {{expr| (<<<1>>> - 1) * <<<1>>> | 96}}, {{expr| <<<1>>>^2 | 96}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 96}},, 97, {{expr| (<<<1>>> - 1) * <<<1>>> | 97}}, {{expr| <<<1>>>^2 | 97}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 97}},, 98, {{expr| (<<<1>>> - 1) * <<<1>>> | 98}}, {{expr| <<<1>>>^2 | 98}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 98}},, 99, {{expr| (<<<1>>> - 1) * <<<1>>> | 99}}, {{expr| <<<1>>>^2 | 99}}, {{expr| <<<1>>> * (<<<1>>> + 1) | 99}},, }}
gives
n | (n − 1) n | n 2 | n (n + 1) |
---|---|---|---|
0 | −0 | 0 | 0 |
1 | 0 | 1 | 2 |
2 | 2 | 4 | 6 |
3 | 6 | 9 | 12 |
4 | 12 | 16 | 20 |
5 | 20 | 25 | 30 |
6 | 30 | 36 | 42 |
7 | 42 | 49 | 56 |
8 | 56 | 64 | 72 |
9 | 72 | 81 | 90 |
10 | 90 | 100 | 110 |
11 | 110 | 121 | 132 |
12 | 132 | 144 | 156 |
13 | 156 | 169 | 182 |
14 | 182 | 196 | 210 |
15 | 210 | 225 | 240 |
16 | 240 | 256 | 272 |
17 | 272 | 289 | 306 |
18 | 306 | 324 | 342 |
19 | 342 | 361 | 380 |
20 | 380 | 400 | 420 |
21 | 420 | 441 | 462 |
22 | 462 | 484 | 506 |
23 | 506 | 529 | 552 |
24 | 552 | 576 | 600 |
25 | 600 | 625 | 650 |
26 | 650 | 676 | 702 |
27 | 702 | 729 | 756 |
28 | 756 | 784 | 812 |
29 | 812 | 841 | 870 |
30 | 870 | 900 | 930 |
31 | 930 | 961 | 992 |
32 | 992 | 1024 | 1056 |
33 | 1056 | 1089 | 1122 |
34 | 1122 | 1156 | 1190 |
35 | 1190 | 1225 | 1260 |
36 | 1260 | 1296 | 1332 |
37 | 1332 | 1369 | 1406 |
38 | 1406 | 1444 | 1482 |
39 | 1482 | 1521 | 1560 |
40 | 1560 | 1600 | 1640 |
41 | 1640 | 1681 | 1722 |
42 | 1722 | 1764 | 1806 |
43 | 1806 | 1849 | 1892 |
44 | 1892 | 1936 | 1980 |
45 | 1980 | 2025 | 2070 |
46 | 2070 | 2116 | 2162 |
47 | 2162 | 2209 | 2256 |
48 | 2256 | 2304 | 2352 |
49 | 2352 | 2401 | 2450 |
50 | 2450 | 2500 | 2550 |
51 | 2550 | 2601 | 2652 |
52 | 2652 | 2704 | 2756 |
53 | 2756 | 2809 | 2862 |
54 | 2862 | 2916 | 2970 |
55 | 2970 | 3025 | 3080 |
56 | 3080 | 3136 | 3192 |
57 | 3192 | 3249 | 3306 |
58 | 3306 | 3364 | 3422 |
59 | 3422 | 3481 | 3540 |
60 | 3540 | 3600 | 3660 |
61 | 3660 | 3721 | 3782 |
62 | 3782 | 3844 | 3906 |
63 | 3906 | 3969 | 4032 |
64 | 4032 | 4096 | 4160 |
65 | 4160 | 4225 | 4290 |
66 | 4290 | 4356 | 4422 |
67 | 4422 | 4489 | 4556 |
68 | 4556 | 4624 | 4692 |
69 | 4692 | 4761 | 4830 |
70 | 4830 | 4900 | 4970 |
71 | 4970 | 5041 | 5112 |
72 | 5112 | 5184 | 5256 |
73 | 5256 | 5329 | 5402 |
74 | 5402 | 5476 | 5550 |
75 | 5550 | 5625 | 5700 |
76 | 5700 | 5776 | 5852 |
77 | 5852 | 5929 | 6006 |
78 | 6006 | 6084 | 6162 |
79 | 6162 | 6241 | 6320 |
80 | 6320 | 6400 | 6480 |
81 | 6480 | 6561 | 6642 |
82 | 6642 | 6724 | 6806 |
83 | 6806 | 6889 | 6972 |
84 | 6972 | 7056 | 7140 |
85 | 7140 | 7225 | 7310 |
86 | 7310 | 7396 | 7482 |
87 | 7482 | 7569 | 7656 |
88 | 7656 | 7744 | 7832 |
89 | 7832 | 7921 | 8010 |
90 | 8010 | 8100 | 8190 |
91 | 8190 | 8281 | 8372 |
92 | 8372 | 8464 | 8556 |
93 | 8556 | 8649 | 8742 |
94 | 8742 | 8836 | 8930 |
95 | 8930 | 9025 | 9120 |
96 | 9120 | 9216 | 9312 |
97 | 9312 | 9409 | 9506 |
98 | 9506 | 9604 | 9702 |
99 | 9702 | 9801 | 9900 |
Aligning terms in multiple equations
Example taken from Binet’s closed-form formula:
{{indent}}{{math| {{table | class = invisible | style = text-align: right; | cell_sep = , | rows = ''f''{{sp|2}}(''x'') {{=|sp}} , <!-- -->''F''{{sub|0}} ''x''{{^|0}} + , ''F''{{sub|1}} ''x''{{^|1}} + , ''F''{{sub|2}} ''x''{{^|2}} + {{...|cdots}} + , ''F''{{sp|-3}}{{sub|''i''}} ''x''{{^|''i''}} + {{...|cdots}} ,, ''x'' ''f''{{sp|2}}(''x'') {{=|sp}} , <!-- -->, ''F''{{sub|0}} ''x''{{^|1}} + , ''F''{{sub|1}} ''x''{{^|2}} + {{...|cdots}} + , ''F''{{sp|-3}}{{sub|''i''{{sp|1}}{{op|-}}1}} ''x''{{^|''i''}} + {{...|cdots}} ,, ''x''{{^|2}} ''f''{{sp|2}}(''x'') {{=|sp}} , <!-- -->, , ''F''{{sub|0}} ''x''{{^|2}} + {{...|cdots}} + , ''F''{{sp|-3}}{{sub|''i''{{sp|1}}{{op|-}}2}} ''x''{{^|''i''}} + {{...|cdots}} ,, (''x'' + ''x''{{^|2}}{{sp|1}}) ''f''{{sp|2}}(''x'') {{=|sp}} , <!-- -->, ''F''{{sub|0}} ''x''{{^|1}} + , (''F''{{sub|0}} + ''F''{{sub|1}}) ''x''{{^|2}} + {{...|cdots}} + , (''F''{{sp|-3}}{{sub|''i''{{sp|1}}{{op|-}}1}} + ''F''{{sp|-3}}{{sub|''i''{{sp|1}}{{op|-}}2}}{{sp|1}}) ''x''{{^|''i''}} + {{...|cdots}} ,, {{=|sp}} , <!-- -->, , ''F''{{sub|2}} ''x''{{^|2}} + {{...|cdots}} + , ''F''{{sp|-3}}{{sub|''i''}} ''x''{{^|''i''}} + {{...|cdots}} ,, }} |tex = \begin{array}{rcrcrcrcrcrcr} f(x) & \! = \! & F_0 \, x^0 & + & F_1 \, x^1 & + & F_2 \, x^2 & + & \cdots & + & F_i \, x^i & + & \cdots \\ x f(x) & \! = \! & & & F_0 \, x^1 & + & F_1 \, x^2 & + & \cdots & + & F_{i-1} \, x^i & + & \cdots \\ x^2 f(x) & \! = \! & & & & & F_0 \, x^2 & + & \cdots & + & F_{i-2} \, x^i & + & \cdots \\ (x + x^2) f(x) & \! = \! & & & F_0 \, x^1 & + & (F_0 + F_1) \, x^2 & + & \cdots & + & (F_{i-1} + F_{i-2}) \, x^i & + & \cdots \\ & \! = \! & & & & & F_2 \, x^2 & + & \cdots & + & F_i \, x^i & + & \cdots \\ \end{array} |&&}}
yields
|
Examples with invalid input
{{Table | style = + margin-left: 2em; text-align: right; | title = '''Table of powers''' | cell_sep = , | hdrs = ''n'', ''n''{{^|2}}, ''n''{{^|3}}, ''n''{{^|4}}, ''n''{{^|5}} }}
gives
Table error: Missing parameter: rows = first column cell's contents , second column cell's contents , ... , last column cell's contents ,,
{{Table}}
gives
Table error: Missing parameter: rows = first column cell's contents ; second column cell's contents ; ... ; last column cell's contents ;;
External links
- Copy & Paste Excel-to-Wiki Converter — a fine tool for converting excel spreadsheets to wiki tables
- Commons:Convert tables and charts to wiki code