This template uses Lua: |
The ClimateCommons module is an interface extending the {{Climate chart}} template. All features of that template are available, while adding the ability to retrieve weather data live from Wikimedia Commons.
This model can be used to easily generate a table containing historical climate data from data previously imported into Wikimedia Commons. This is particularly the case in Canada following the import of historical data from Environment and Climate Change Canada.
Copy the following code partially or entirely in the article where you want to insert the template.
{{ClimateCommons | title=Montreal Weather Report | données=Weather.gc.ca/Almanac/7025250.tab | source=Environment and Climate change Canada<ref>{{Cite web |url=https://climat.meteo.gc.ca/climate_normals/results_1981_2010_e.html?stnID=5415&dispBack=0 |title=Montreal / Pierre Elliot Trudeau International Airport - Weather Station |year=1981-2010 |editor=Environment and Climate change Canada |access-date=15 March 2021 }}</ref> }}
All parameters of {{Climate chart}} are accepted. This template only adds a single parameter:
The data needed to fill in the following lines will be calculated automatically for all fields left empty:
If the automatic filling of one or more values is not desired, it is possible to pass the character "-" to the corresponding field: the template will leave it empty at the time of display.
Script error: No such module "Module:Sandbox/Anon423/ClimateCommons".
Script error: No such module "Module:Sandbox/Anon423/ClimateCommons".
Script error: No such module "Module:Sandbox/Anon423/ClimateCommons".
This template passes directly to the {{#invoke:ClimateCommons|function}} module the parameters given to it.