Template:IfNumeric/doc

This template is a simple logic template that functions very similarly to other "if" parser functions. It tests the first (required) parameter for numericity, then either outputs the second (optional) parameter if the input is numeric, or outputs the third (optional) parameter if the output is not numeric. This is a more readable way of saying: {{#iferror:{{#expr:  * 1 }} |  |  }}

{	"params": { "1": {			"label": "Test Input", "description": "Input to test for numericity", "type": "string", "required": true },		"2": {			"label": "True Output", "description": "Output given if given input is numerical.", "suggested": true },		"3": {			"label": "False Output", "description": "Output given if given input is numerical.", "suggested": true }	},	"description": "" }

Usage: