From Pittsburgh Streets

The {{repeat}} template repeats a string up to 15 times.


Parameter Description
count The number of times to repeat the given string. If count is not specified, it defaults to 1. The value of count is evaluated inside an #ifexpr, so it can be a mathematical expression.

Usage examples

  • {{repeat|count=3|abc}} → abcabcabc
  • {{repeat|count=15|abc}} → abcabcabcabcabcabcabcabcabcabcabcabcabcabcabc
  • {{repeat|count=1+2|abc}} → abcabcabc
  • {{repeat|abc}} → abc
  • {{repeat|count=0|abc}}count out of range: 0
  • {{repeat|count=16|abc}}count out of range: 16