Template:Count/doc

From Pittsburgh Streets

The {{count}} template counts the number of its nonempty arguments (up to 20).

Usage examples

  • {{count}} → 0
  • {{count|one}} → 1
  • {{count|one|two}} → 2
  • {{count|one|two|three}} → 3
  • {{count|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty}} → 20
  • {{count|one||three||five|||||ten}} → 4
  • {{count||two||four||six||||||twelve||||||||twenty}} → 5