Template:SpotSearch DC/sandbox

== USAGE ==
 * Use this template to represent spot and search DCs. All parameters are optional.
 * spf Highest failed spot check
 * sps Lowest successful spot check
 * sef Highest failed search check
 * ses Lowest successful search check

CODING
{{#iferror: {{#expr:{{{spf|}}}{{{sps|}}}}} | {{#switch: N/A | {{uc:{{{spf|}}}}} | {{uc:{{{sps|}}}}} = N/A | {{#vardefine:err|yes}} | {{#vardefine: lspf | {{#if: {{{spf|}}} | {{#switch: {{{spf|}}}{{{spfk|}}} | {{{spf|}}} | {{{spf|}}}{{{spf|}}} = {{{spf}}} | {{{spfk|}}} = {{{spfk}}} | {{#ifexpr: {{{spf}}} > {{{spfk}}} | {{{spf}}} | {{{spfk}}} }}}} | ? }}}}   {{#switch: {{#var:lspf}}{{#var:sps}} | ?? = ?        | {{#var:lspf}}? = {{#expr:{{#var:lspf}} + 1}}–? | ?{{#var:sps}} = ?–{{#var:sps}} | {{#var:lspf}}{{#expr:{{#var:lspf}} + 1}} = {{#var:sps}} | {{#ifexpr: {{#var:lspf}} >= {{#var:sps}} | {{Red|Inconsistent Observations!}} | {{#expr:{{#var:lspf}} + 1}}–{{#var:sps}} }}}}{{#vardefine:lspf|}}{{#vardefine:sps|}}}}