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