Jump to content

ແມ່ແບບ:For loop/doc

ຈາກ ວິກິພີເດຍ

This template produces a for loop. Or more accurately, it is a quasi-for-loop, as the value for each iteration must be explicitly specified. This is a legacy template, and exists for reasons of backwards compatibility. If you need to use a for loop, it is almost always better to implement it as a Lua module.

The template calls a specified template a set number of times, where one parameter takes each of a list of values; in addition to the variable parameter, fixed parameters can be specified for each iteration.