67 741
contributi
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 270: | Riga 270: | ||
local PropName | local PropName | ||
local PropValue | local PropValue | ||
local LIPattern | |||
if frame.args[1] == nil then | if frame.args[1] == nil then | ||
Riga 280: | Riga 281: | ||
ParaString = frame.args[2] | ParaString = frame.args[2] | ||
if string.find(ParaString, "<li>") ~= nil then | if string.find(ParaString, "<li>") ~= nil then | ||
-- Look for <i> to determine if property is Assignment | |||
if string.find(ParaString, "<i>") == nil then | |||
LIPattern = "<li>.-%[%[(.-)%]%].-</li>" | |||
else | |||
LIPattern = "<li>.-<i>%[%[(.-)%]%]</i>.-</li>" | |||
end | |||
--Process UL or OL | --Process UL or OL | ||
for Item in string.gmatch(ParaString, | for Item in string.gmatch(ParaString, LIPattern) do | ||
Item = string.gsub(Item, "(|.*)%]%]", "") | Item = string.gsub(Item, "(|.*)%]%]", "") | ||
table.insert(FinalArray, Item) | table.insert(FinalArray, Item) |