మాడ్యూల్:Routemap: కూర్పుల మధ్య తేడాలు
Content deleted Content added
దిద్దుబాటు సారాంశం లేదు |
|||
పంక్తి 362:
rows = mw.text.split(rows, '\n')
-- rows is the string argument (don't split it)
local index = 0
for row in rows:gmatch('([^\n]*)\n?') do
row = mw.text.trim(row)
if row ~= ''
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
|