Template:Repeat

From QED

Jump to: navigation, search


Emit COUNT sequential copies of TEXT, which is subject to template expansion.

Syntax

{{repeat|TEXT|COUNT}}

where:

  • TEXT defaults to _
  • COUNT is an integer from 0 to 400, and defaults to 2.

If the string to be repeated contains any of the characters "{|}", then they may have to be escaped. See Template:! for details.

Examples

{{repeat|x|5}} produces xxxxx.

{{repeat|x |5}} produces x x x x x .

{{repeat|x |5}} produces x x x x x.

{{repeat|{{blackbox}}|10}} produces ∎∎∎∎∎∎∎∎∎∎

{{repeat|{{repeat|{{blackbox}}}}}} produces ∎∎∎∎

{{repeat|.|40}} produces ........................................

"{{repeat|…|4}}" produces "…………".

See also

Personal tools