I modified the Outlier macro by Mark to add the above given switchable template by @etardiff
Here is the demo