Anonymous user
Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
use a repeat ... until loop to avoid creating an unnecessary blank table
(Ok, I think this got it) |
(use a repeat ... until loop to avoid creating an unnecessary blank table) |
||
Line 14:
-- Get the args table and work out the maximum arg key.
local origArgs = frame:getParent().args
local args = {}
Line 25 ⟶ 24:
if v ~= '' then
args[k] = v
end
end
Line 51 ⟶ 41:
local iArg = 0
local iData = 1
repeat
while iArg < maxArg do▼
iArg = iArg + 2
local useTable = data[iData] or {}
Line 65 ⟶ 55:
iData = iData + 1
end
-- Create the options table.
|