Template:Set if numeric

From Historical Hastings
Template documentation[view] [edit] [history] [purge]
Purpose
A simple template that takes a property name and value, verifies the value is numeric using formatnum and #expr, and then attempts to set the property to that value.
Placement
Anywhere where an attempt to set a non-numeric value may cause an error.
Usage
{{Set if numeric|property name|value}}