Module:Redirect hatnote: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
initial version of a Template:Redirect replacement; needs debugging
 
still wrong, but slightly less wrong?
Line 43:
iArg = iArg + 1
local useTable = data[iData] or {}
local use, page, isLastUse
if iArg % 2 == 0 then
use = args[iArg]
if use ~= 'and' then
useTable.use = use
iDataisLastUse = iData + 1true
end
else
page = args[iArg]
useTable[#useTable + 1] = page
end
data[iData] = useTable
if isLastUse then
iData = iData + 1
end
end