This is a documentation subpage for User:Anon423/ClimateCommons. It may contain usage information, categories and other content that is not part of the original user template page. |
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.
Usage
editThis 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.
Syntax
editCopy 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> }}
Parameters
editAll parameters of {{Climate chart}} are accepted. This template only adds a single parameter:
- data: list of resources present in the Wikimedia Commons Data namespace, separated by a space.
The data needed to fill in the following lines will be calculated automatically for all fields left empty:
- Cold extreme (℃)
- Heat extreme (℃)
- Rain extreme in 24h (mm)
- Snow extreme in 24h (cm)
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.
Examples
editModèle avec les seuls champs automatiques
editScript error: No such module "Module:Sandbox/Anon423/ClimateCommons".
Modèle avec les températures record
editScript error: No such module "Module:Sandbox/Anon423/ClimateCommons".
Modèle sans les records de neige automatiques
editScript error: No such module "Module:Sandbox/Anon423/ClimateCommons".
Operation
editThis template passes directly to the {{#invoke:ClimateCommons|function}} module the parameters given to it.