67 247
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
(4 versioni intermedie di uno stesso utente non sono mostrate) | |||
Riga 79: | Riga 79: | ||
Cell:node(List) | Cell:node(List) | ||
else | else | ||
Cell | if type(Field[1]) == "table" then | ||
:wikitext(Field[1]) | Cell | ||
:wikitext(Field[1][1]) | |||
else | |||
Cell | |||
:wikitext(Field[1]) | |||
end | |||
end | end | ||
end | end | ||
Riga 241: | Riga 246: | ||
end | end | ||
--Removes suffix | --Removes suffix year or number specification | ||
FullName = FullName:gsub("%s%(%d+%)", "") | FullName = FullName:gsub("%s%(%d+%)", "") | ||
--Removes suffix registry number | |||
FullName = FullName:gsub("%s[^%s]+$", "") | FullName = FullName:gsub("%s[^%s]+$", "") | ||
Riga 286: | Riga 292: | ||
end | end | ||
if string.find(ParaString, "%[%[") == nil then | |||
-- There is no wikilink, plain text | |||
LIPattern = "<li>(.-)</li>" | |||
else | |||
-- A wikilink is present, discard surrounding text | |||
LIPattern = "<li>.-%[%[(.-)%]%].-</li>" | |||
end | |||
-- Determine if property is Assignment, so process a string like: | -- Determine if property is Assignment, so process a string like: |