Template:Energy production

From blackwiki
Jump to navigation Jump to search
Power generation
Year Capacity
(MW)
Total Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Template documentation[view] [edit] [history] [purge]

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 (use "none" for no title; default = Energy production)
| units = unit of energy production (optional; default = MW)
| year1 = first year (mandatory, subsequent years automatically calculated)
| 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.
| end = yes/no (See #Continuing tables, below; default "yes") | start = yes/no (See #Continuing tables, below; default "yes") | header = yes/no (See #Continuing tables, below; default "yes") }}

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 values of "0", but not blank.

Continuing tables

A single call of this template can create a table of 10 consecutive years of data. If you wish to skip years or make a table of more than 10 years, you will need to use multiple template calls and the header, end, and start parameters. For each template call except the last, you should set end = no, and for all but the first template call, you should set start = no. The table title will be ignored for all but the first use of the template, and header = no can be used to suppress repeating the column labels. All three parameters have a default value of "yes", and should not be used unless making continuing tables.

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
}}


North Dakota tidal power
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