Template:Energy production/doc
< Template:Energy production
Jump to navigation
Jump to search
Revision as of 23:17, 24 May 2014 by imported>Vanisaac (updating to header, start, and end parameters)
| This is a documentation subpage for Template:Energy production. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template produces a consistently formatted table of monthly energy production for up to ten years' worth of data.
{{Energy production
| title = table name ("none" for no title, default = Energy production)
| units = unit of energy production (optional, default = MW)
| year1 = first year (mandatory, subsequent years automatically caluculated)
| capN = capacity (for year N, N=1...10, optional)
| totalN = yearly total (for year N, N=1...10, optional, automatically calculated from monthly data if not supplied)
| January production, first year | February production | March | April | May | June | July | August | September | October | November | December
| January, second year | February | March | April | May | June | July | August | September | October | November | December etc.
| header = yes/no ("no" removes column labels, default yes)
| end = yes/no (set end to "no" to append another template table after, eg for more than ten years' data)
| start = yes/no (set start to "no" to append onto previous template table, eg for more than ten years' data)
}}
Note that the first unnamed parameter is always the data for January of year1, so data starting mid-year needs to contain empty values for each of the previous months in that first year. Likewise, the 13th unnamed parameter is always January of the next year. The table will only show years for which monthly data has been supplied, including "0" values.
Examples
{{Energy production
| title = North Dakota tidal power
| units = nW
| year1 = 2006
| cap1 = 475 |<!-- no January data -->| 0 | 0 | 43 | 95 | 12 | 4 |<!-- no August data -->| 53 | 74 | 329 | 26
| cap2 = 3500 | total2 = 16628 | 30 | 232 | 492 | 583 | 793 | 1024 | 1384 | 1583 | 1889 | 2478 | 2836 | 3281
| 3851 |<!-- no data after January, 2008 -->
| end = no <!-- keep table open -->
}}
{{Energy production
| start = no <!-- add onto previous table left open -->
| header = no
| year1 = 2010 <!-- skips 2009 -->
| cap1 = 4200 | | | | |<!-- no data before June, 2010 -->| 3152 | 3341 | 2786 | 2361 | 2574 | 1973 | 2169
}}
| Year | Capacity (nW) |
Total | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 | 475 | 636 | 0 | 0 | 43 | 95 | 12 | 4 | 53 | 74 | 329 | 26 | ||
| 2007 | 3500 | 16,628 | 30 | 232 | 492 | 583 | 793 | 1024 | 1384 | 1583 | 1889 | 2478 | 2836 | 3281 |
| 2008 | 3,851 | 3851 | ||||||||||||
| 2010 | 4200 | 18,356 | 3152 | 3341 | 2786 | 2361 | 2574 | 1973 | 2169 |