Template:ForRange

From Terraria Wiki
Jump to navigation Jump to search

Calls a template a given number of times (25 is the limit for now).

The template is still being tested, however initial tests were good.

Usage

{{ForRange| start count | end count | step | d/delim/delimiter=separates results (e.g.,{{!}}) | t/template=template name | parameter1{{!}}parameter2...}}

Parameters

1

start count

2

end count

3

step

delimiter/delim/d

Use a delimiter which isn't contained within any of the parameters. Good options are • and |.

template/t

template name

parameters

The parameters (parameter1, parameter2, etc.) passed to the template are passed as a single string; use #explode in the called template to extract the parameters.