Modul:Redirect hatnote: Unterschied zwischen den Versionen
use the next use variable; still not quite there
(increment iArg two at a time; better but still buggy) |
(use the next use variable; still not quite there) |
||
Zeile 56: | Zeile 56: | ||
local use = args[iArg] | local use = args[iArg] | ||
local page = args[iArg + 1] | local page = args[iArg + 1] | ||
local nextUse = args[iArg + 2] | |||
useTable[#useTable + 1] = page | useTable[#useTable + 1] = page | ||
data[iData] = useTable | data[iData] = useTable | ||
if use ~= 'and' then | if use ~= 'and' then | ||
useTable.use = use | useTable.use = use | ||
elseif nextUse ~= 'and' then | |||
iData = iData + 1 | iData = iData + 1 | ||
end | end |