ແມ່ແບບ:For loop/doc
ຮູບຮ່າງການສະແດງຜົນ
| ນີ້ແມ່ນໜ້າຍ່ອຍເອກະສານກຳກັບຂອງ ແມ່ແບບ:For loop ໃຊ້ໃນການຂຽນຄຳອະທິບາຍວິທີການໃຊ້ງານ ຈັດໝວດ ແລະ ເນື້ອຫາອື່ນໆ ທີ່ບໍ່ໄດ້ເປັນສ່ວນໜຶ່ງຂອງໜ້າແມ່ແບບຕົ້ນສະບັບ |
| ແມ່ແບບນີ້ໃຊ້ລູອາ |
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.