${<field name> <modifiers> }For example, if your record has a field "title" you can set a tooltip with:
tooltip="Title: ${title}"There is also another property, selectPopup, that is a template like the tooltip but pops up a dialog when a record is clicked. Template Modifiers
${date_field format="yyyymmdd"}Other modifiers include:
//In the header/footer: ${totalCount} - total number of records ${selectedCount} - number of filtered records //In the pre record template - ${<field name>_min} ${<field name>_max} ${<field name>_total} ${<field name>_average}These are the values specified by the user in the filter widgets -
${filter_<field name>_min} //for numeric values ${filter_<field name>_max} ${filter_<field name>} //for enumerated and text values //If the user does not specify a text filter value then just show blank //If the user specifies some text filter value then wrap it with the prefix/suffix ${filter_<field name> prefix='some text prefix' suffix='some text suffix'}Template Examples
{The below display (from here) showing mass shooting data uses two different template displays as defined here.{display_template displayStyle="background:rgba(0,0,0,0);" headerTemplate="There are a total of ${selectedCount} peaks between ${filter_elev_min} and ${filter_elev_max} feet with elevation gain between ${filter_elev_gain_min} and ${filter_elev_gain_max} feet ${filter_class prefix=' of class '} ${filter_range prefix=' in the ' suffix=' range'}" filterFields="elev,elev_gain,distance,range,class" hideFilterWidget="true" }}
{{display_template headerTemplate="There have been a total of ${totalCount} mass shootings with ${fatalities_total} fatalities and ${injured_total} injured"}} { {display_template headerTemplate="Top 3 mass shootings: <br><table cellpadding=5><tr><td></td><td>Fatalities</td><td>Injured</td></tr>" template="<tr><td>${title}</td><td>${fatalities}</td><td>${injured}</td></tr>" footerTemplate="</table>" maxNumber="3" sortFields=fatalities sortAscending=false }}
headerText="<center>Showing pool and flux estimates ${attribute labels=\"with ranges,without ranges\" fields=\"range_low_km_3_comma_value_km_3_comma_range_high_km_3,value_km_3\"}, on a ${attribute labels=\"log scale,linear scale\" xAxisType=log,linear} </center>"This results in: Each macro is of the form:
{attribute labels="label1,label2,...,labelN" somefield1="value1,value2,...,valueN" somefield2="value1,value2,...,valueN"A menu is created with the labels. On user interaction with the menu the properties, e.g., somefield1, somefield2, will be set based on the corresponding value. In the above example this sets the "fields" property on the display to the specified value in the fields comma separated list (not some values contain commas which are escaped with _comma_). It also sets the xAxisType property to one of "log" or "linear".
function="total_ballots/active_voters" functionName="turnout"The full wiki text is:
{Percentage values can be calculated with the showPercent attribute. This sums up the values of all of the specified fields and uses the percent value.{display_areachart column="0" layoutHere="true" showTitle="true" title="Line Chart with Function" vAxisMinValue="0" vAxisMaxValue="1.0" padRight="true" function="total_ballots/active_voters" functionName="turnout"}}
{There are also scale and offset2 values supported where the end value is calculated as:{display_linechart offset1=-"273.15" unit="C" }}
value = (offset1+value)*scale + offset2
{{display_linechart Temperature_surface.offset1=-"273.15" Temperature_surface.unit="C" }}
{{displayProperty name="Temperature_surface.offset1" value="-273.15"}} { {displayProperty name="Temperature_surface.unit" value="C"}} { {displayProperty name="Pressure_surface.scale" value="0.01"}} { {displayProperty name="Pressure_surface.unit" value="hPa"}}
.... ${wikiproperty.<some property name> default="some default value"} ...For example, the CR1000 data logger entry type has default wiki text with the following wiki properties:
{If you wanted to override what fields are used simply go to Add Properties and select "Add Wiki Property" under the "Thumbnails, Page Style, Etc." section. The Key is the macro name without the "wikiproperty." prefix. The value is the text that is substituted for the macro. In the below case we are overriding the field that is displayed for the second line chart. If you wanted to have this property applied to a whole collection of CR1000 entries then add the property to the container folder and check off "Inherited". For the case of the CR1000 entries the number of records can also be specified with the "cr1000.count" property: To specify a wiki property system wide add a property definition with the fill property name to the repository.properties file in your RAMADDA home directory:{display_linechart fieldsPatterns="${wikiproperty.cr1000.field1 default=".*temp.*|.*hmo.*|.*flow.*|rpsdata_1|.*cell_1"}" lastRecords="${wikiproperty.cr1000.count default="5000"}"}} { {display_linechart fieldsPatterns="${wikiproperty.cr1000.field2 default=".*ph.*|.*rh.*|batt_volt_min|.*area.*|rpsdata_2"}" lastRecords="${wikiproperty.cr1000.count default="5000"}"}} { {display_linechart fieldsPatterns="${wikiproperty.cr1000.field2 default=".*depth.*|.*pres.*|baro.*|.*dewpt.*|.*vol.*|rpsdata_3"}" lastRecords="${wikiproperty.cr1000.count default="5000"}"}}
wikiproperty.cr1000.field1=some value
patternFilterField="field id" filterPattern="some string" numericFilterField="other field id" numericFilterValue="number" numericFilterOperator=">|>=|==|<|<="e.g.: below would only show data where the 1st matches the string "Texas" and the 3rd needs to be less that 5000.
{{display_sankey height="800" patternFilterField="#1" filterPattern="Texas" numericFilterField="#3" numericFilterValue="5000" numericFilterOperator=">" }}