Pane mall tabeli ette ja lisa tabelisse klass static-row-numbers. Näide:
{{Staatilised rea numbrid}}
{| class="wikitable sortable static-row-numbers"|
! Nimi !! Number !! Teine number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}
Klass datatable tõstab kursoriga üle libisemisel rea esile
{{Staatilised rea numbrid}}
{| class="wikitable mw-datatable sortable static-row-numbers"
! Nimi !! Number !! Teine number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}
Nimi
Number
Teine number
A
10
1000
B
50
800
C
100
150
D
20
700
E
70
350
klassidega mw-datatable ja sortable
Klass datatable tõstab kursoriga üle libisemisel rea esile
{{Staatilised rea numbrid}}
{| class="mw-datatable sortable static-row-numbers"
! Nimi !! Number !! Teine number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}
Nimi
Number
Teine number
A
10
1000
B
50
800
C
100
150
D
20
700
E
70
350
klass static-row-header-hash lisab staatilise veeru päisesse trellimärgi
{{Staatilised rea numbrid}}
{| class="wikitable sortable static-row-numbers static-row-header-hash"
! Nimi !! Number !! Teine number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}
Nimi
Number
Teine number
A
10
1000
B
50
800
C
100
150
D
20
700
E
70
350
ilma klassita sortable
Kui soovid, et mittesorteeritaval tabelil oleks järjekorranumbritega esimene veerg
{{Staatilised rea numbrid}}
{| class="wikitable static-row-numbers"
! Nimi !! Number !! Teine number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}