మాడ్యూల్:Routemap: కూర్పుల మధ్య తేడాలు

Content deleted Content added
Undid revision 678580717 by Sameboat (talk)
దిద్దుబాటు సారాంశం లేదు
పంక్తి 362:
rows = mw.text.split(rows, '\n')
-- rows is the string argument (don't split it)
local i, j = next(rows), next(rows, i)--removing empty lines
local index = 0
while j ~= nil do
for row in rows:gmatch('([^\n]*)\n?') do
if mw.text.trim(rows[j]) == '' then table.remove(rows, j) else i = j end
row = mw.text.trim(row)
j = next(rows, i)
if row ~= '' endthen
index = index + 1
local keyword = q.isKeyword(row, index, rows)
if type(keyword) ~= "string" then table.insert(tmp, row(row, nil, nil)) else table.insert(tmp, keyword) end
end
-- Perhaps omit the earlier "if rows == '' then..." test and use the following.
-- The following checks that at least one row was non-blank.
if index == 0 then return formaterror('parameter-missing') end
end
for i, v in ipairs(rows) do
"https://te.wikipedia.org/wiki/మాడ్యూల్:Routemap" నుండి వెలికితీశారు