Malchi:Sticky header
Aparensia
| This template uses TemplateStyles: |
Uso
[editá fuente]E cabes di un tabel largo ta mantene un posicion fiho, ora di scroll door di un pagina. Pone e malchi aki riba un tabel, y agrega clase "sticky-header" den e tabel mes.
{{Sticky header}}
{| class="wikitable sortable sticky-header"
⫶
|}
Ehempel
[editá fuente]{{Sticky header}}
{| class="wikitable sticky-header"
! nomber !! victoria !! derota
|-
| A || 3 || 6
|-
| B || 2 || 12
|-
| C || 8 || 4
⫶
|}
| nomber | victoria | derota |
|---|---|---|
| A | 3 | 6 |
| B | 2 | 12 |
| C | 8 | 4 |
| D | 6 | 3 |
| E | 12 | 2 |
E clase sticky-header-multi mester wordo uza si e cabes ta consisti di multiple liña. Esaki ta funciona unicamente pa tabelnan cu tambe tin e clase "sortable". Si algun (of tur) kolom no mester wordo ordena, agrega: class=unsortable na e titulo di e kolom en kestion.
Si uza un clase sorttop, e posicion di e liña ta keda fiho durante ordenamento. Un alternativa pa e sekshon abou di e tabel ta e clase sortbottom.
{{sticky header}}
{| class="wikitable sortable sticky-header-multi"
|+ Titel
|-
! rowspan=2 | color
! colspan=3 | cantidad
|-
! A !! B
! class="unsortable" | C
|-
| cora || 1 || 2 || 3
|-
| berde || 4 || 5 || 6
|-
| geel || 7 || 8 || 9
|-
| blauw || 10 || 11 || 12
|- class=sortbottom
| '''max''' || 10 || 11 || 12
|- class=sortbottom
| '''total''' || 22 || 26 || 30
|}
| color | cantidad | ||
|---|---|---|---|
| A | B | C | |
| cora | 1 | 2 | 3 |
| berde | 4 | 5 | 6 |
| geel | 7 | 8 | 9 |
| blauw | 10 | 11 | 12 |
| max | 10 | 11 | 12 |
| total | 22 | 26 | 30 |