Webtags/Parameters (preserving history): Difference between revisions
From Cumulus Wiki
Jump to navigationJump to search
Line 53: | Line 53: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
!style="width: | !style="width:15px" | Web Tags | ||
!style="width:100px" | Values Available | !style="width:100px" | Values Available | ||
!style="width: | !style="width:200px" | Input Modification Parameters | ||
!style="width:60px" | Introduced | !style="width:60px" | Introduced | ||
!style="width:500px" | Examples | !style="width:500px" | Examples | ||
!style="width: | !style="width:900px" | Description | ||
|- | |- | ||
| [[Webtags#Recent_History|'''recent history tags''']] | ! scope="row"| [[Webtags#Recent_History|'''recent history tags''']] | ||
| One value for each minute in last 7 days | | One value for each minute in last 7 days | ||
| '''d''' specifies number of days ago, '''h''' specifies number of hours ago, and '''m''' specifies number of minutes ago. | | '''d''' specifies number of days ago, '''h''' specifies number of hours ago, and '''m''' specifies number of minutes ago. | ||
Line 80: | Line 80: | ||
'''Beware: If you use <code><#RecentRainToday d=2></code> remember that rainfall can accumulate during a day, so "d=2" returns an estimate of the rain between rollover 2 days ago and the same time as now 48 hours ago, it does not return the total rainfall 2 days ago!''' | '''Beware: If you use <code><#RecentRainToday d=2></code> remember that rainfall can accumulate during a day, so "d=2" returns an estimate of the rain between rollover 2 days ago and the same time as now 48 hours ago, it does not return the total rainfall 2 days ago!''' | ||
|- | |- | ||
| [[Webtags#Monthly_All_Time_Records|'''monthly all-time extreme records''']] | ! scope="row"| [[Webtags#Monthly_All_Time_Records|'''monthly all-time extreme records''']] | ||
| These exist for all occurrences of the current month, and for all occurrences of each month | | These exist for all occurrences of the current month, and for all occurrences of each month | ||
| '''mon=N''' where N is the index of the month of the year that you want the value for (1 =January, and so on, to 12 =December) | | '''mon=N''' where N is the index of the month of the year that you want the value for (1 =January, and so on, to 12 =December) | ||
Line 91: | Line 91: | ||
* If you don't supply an input parameter (or supply an invalid value like zero) the current month will be used. This is useful if you want to write a template that will always supply values for the current month and don't want to process a script, to calculate the correct input parameter, before Cumulus processes the template. | * If you don't supply an input parameter (or supply an invalid value like zero) the current month will be used. This is useful if you want to write a template that will always supply values for the current month and don't want to process a script, to calculate the correct input parameter, before Cumulus processes the template. | ||
|- | |- | ||
| Only <#SunshineHoursMonth> and <#SunshineHoursYear> | ! scope="row"| [[Webtags#Monthly|Only <#SunshineHoursMonth>]] and [[webtags#Yearly|Only <#SunshineHoursYear>]] | ||
| Values available for current month/year, and for past month/year | | Values available for current month/year, and for past month/year | ||
| | | Listed web tags take '''r=-ww''' | ||
* Monthly tags also take: '''m=N y=nnnn''' | * Monthly tags also take: '''m=N y=nnnn''' | ||
* Yearly tags also take: '''y=nnnn''' | * Yearly tags also take: '''y=nnnn''' |