FANDOM


[edit] Template-info Template documentation


This template is primarily used for statistical samples within the WikiProject Statistics and evaluates a given sample size as ok/warning/critical according to predefined or custom threshold values. It uses {{Icon status}} to display a green/yellow/red icon which links to Sample.

Usage

{{Evaluate sample size
  | sample size
  | excellent
  | good
  | acceptable
  | category =
  | size =
  | notext =
}}

Parameters

sample size

  • Required. The number to evaluate. Can be provided with or without thousands separators.

excellent

  • Optional. If sample size is >= excellent, the result is "excellent".
  • Defaults to {{sample size|excellent}} = 1,000 if omitted.

good

  • Optional. If sample size is >= good, the result is "good".
  • Defaults to {{sample size|good}} = 600 if omitted.

acceptable

  • Optional.
  • If sample size is >= acceptable, but < good, the result is "acceptable".
  • If sample size is < acceptable, the result is "critical".
  • Defaults to {{sample size|acceptable}} = 200 if omitted.

category

size

  • Optional. Image size like in [[File:]] tags. Defaults to x15px.

notext

  • Optional. If set to 1 or yes, the icon is displayed without text. Defaults to no.

Examples

  • {{Evaluate sample size|2000}}Icon excellent Excellent: Sample size >= 1,000
  • <small>{{Evaluate sample size|600|size=x12px}}</small>Icon ok Good: Sample size >= 600
  • {{Evaluate sample size|599}}Icon warning Acceptable: Sample size >= 200
  • {{Evaluate sample size|300|5,000}}Icon warning Acceptable: Sample size >= 200
  • {{Evaluate sample size|300|5,000|2000|1000}}Icon critical Critical: Sample size < 1,000
  • {{Evaluate sample size|300|5,000|2000|1000|notext=1}}Icon critical

See also

Community content is available under CC-BY-SA unless otherwise noted.