Simple table with subsection header
editComplex header with table subsection headers
editA complex multi-row header with rowspan and colspan.
See: Renewable energy in the United States#Renewable energy in the electricity sector. Scroll down to the table titled: "Composition of renewable electricity production" See this version of the article.
A blank row had to be added between the top table header and the first subsection header in order to prevent the first table subsection header from being sticky. See lines 18-19 in the wiki source excerpt below. Scroll down into the table to see that none of the subsection headers stick.
Wiki source excerpt:
{{mw-datatable}}{{sticky header}}{{sort under}}
{| class="wikitable sortable plainrowheaders mw-datatable sticky-header sort-under"
|+ Composition of renewable electricity production (2018–2019)
|-
! scope="col" rowspan=2| Power source
! scope="col" rowspan=2| Summer<br> capacity (GW)
! scope="col" colspan=2| Share of
! scope="col" rowspan=2| Capacity<br> factor
! scope="col" rowspan=2| Energy<br> generation (TWh)
! scope="col" colspan=2| Share of
|-
! scope="col" | renewable
! scope="col" | total
! scope="col" | renewable
! scope="col" | total
|-
| || || || || || || ||
|-
! scope="col" colspan="8" |'''Preliminary electricity production by renewable sources in 2019'''
|-
Power source | Summer capacity (GW) |
Share of | Capacity factor |
Energy generation (TWh) |
Share of | ||
---|---|---|---|---|---|---|---|
renewable | total | renewable | total | ||||
Preliminary electricity production by renewable sources in 2019 | |||||||
Wind | 103.58 | 39.87% | 9.22% | 0.331 | 300.071 | 39.72% | 7.23% |
Hydro | 79.75 | 30.70% | 7.10% | 0.392 | 273.707 | 36.23% | 6.59% |
Solar | 60.54 | 23.30% | 5.39% | 0.202 | 107.275 | 14.20% | 2.58% |
Biomass | 13.45 | 5.18% | 1.20% | 0.496 | 58.412 | 7.73% | 1.41% |
GeoThermal | 2.46 | 0.95% | 0.22% | 0.743 | 16.011 | 2.12% | 0.39% |
Total | 259.78 | 100.00% | 23.12% | 0.340 | 755.476 | 100.00% | 18.19% |
Electric production by renewable sources in 2018 | |||||||
Wind | 94.42 | 39.03% | 8.47% | 0.330 | 272.667 | 37.03% | 6.48% |
Hydro | 79.87 | 33.02% | 7.17% | 0.418 | 292.524 | 39.73% | 6.95% |
Solar | 51.43 | 21.26% | 4.62% | 0.207 | 93.364 | 12.68% | 2.22% |
Biomass | 13.73 | 5.68% | 1.23% | 0.514 | 61.832 | 8.40% | 1.47% |
GeoThermal | 2.44 | 1.01% | 0.22% | 0.747 | 15.967 | 2.17% | 0.38% |
Total | 241.89 | 100.00% | 21.71% | 0.348 | 736.354 | 100.00% | 17.50% |
Note: Solar includes estimated small scale. Biomass includes wood and wood-derived fuel, landfill gas, biogenic municipal solid waste and other waste biomass. |